当前位置:网站首页>在{{}}中拼接字符
在{{}}中拼接字符
2022-07-02 04:58:00 【走出自闭的鸟儿】
在{ {}}中拼接字符
后端返回这样的数据
[ { "addressId": 35, "city": "北京市", "createTime": null, "district": "西城区", "houseNumber": "a区1号12层230", "officeName": "北京大学第一医院-地下停车场", "province": "北京市", "recordStatus": 0, "userCode": "", "workAddress": "北京市西城区爱民一巷2号(北海北地铁站A西北口步行440米)", "workLatitude": 39.932312, "workLongitude": 116.380994 }, { "addressId": 36, "city": "北京市", "createTime": null, "district": "西城区", "houseNumber": "a区1号12层230", "officeName": "北京大学第一医院-地下停车场", "province": "北京市", "recordStatus": 0, "userCode": "", "workAddress": "北京市西城区爱民一巷2号(北海北地铁站A西北口步行440米)", "workLatitude": 39.932312, "workLongitude": 116.380994 } ]
使用elementui的el-table渲染数据时,prop只能显示一个属性,我想一次取city和district两个属性进行显示,此时可以采用插槽clot-scope获取到这行的数据,再将两个属性进行拼接
<el-table
:data="addressInfo"
style="width: 100%">
<el-table-column
prop="officeName"
label="地址">
</el-table-column>
<el-table-column
label="区域">
<template slot-scope="scope">
{
{ scope.row.city+"·"+scope.row.district}}
</template>
</el-table-column>
</el-table>
边栏推荐
- idea自動導包和自動删包設置
- Embedded-c language-8-character pointer array / large program implementation
- Common errors of dmrman offline backup
- Geotrust OV Multi - Domain Domain SSL Certificate rmb2100 per year contains several Domain names?
- 数学问题(数论)试除法做质数的判断、分解质因数,筛质数
- Knowledge arrangement about steam Education
- Introduction to Luogu 3 [circular structure] problem list solution
- Line by line explanation of yolox source code of anchor free series network (7) -- obj in head_ loss、Cls_ Loss and reg_ Calculation and reverse transmission of loss I
- How to write a client-side technical solution
- oracle 存储过程与job任务设置
猜你喜欢

List of common bugs in software testing

Express logistics quick query method, set the unsigned doc No. to refresh and query automatically

Summary of common string processing functions in C language

Cache consistency solution - how to ensure the consistency between the cache and the data in the database when changing data

AcrelEMS高速公路微电网能效管理平台与智能照明解决方案智慧点亮隧道

正大美欧4的主账户关注什么数据?

Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products

2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas

Steam教育的实际问题解决能力

How to recover deleted data in disk
随机推荐
ansible安装与使用
C - derived classes and constructors
Cannot activate CONDA virtual environment in vscode
[high speed bus] Introduction to jesd204b
Oracle stored procedure and job task setting
Promise all()
Go GC garbage collection notes (three color mark)
geotrust ov多域名ssl证书一年两千一百元包含几个域名?
leetcode存在重复元素go实现
Leetcode basic programming: array
農業生態領域智能機器人的應用
Change deepin to Alibaba image source
geotrust ov多域名ssl證書一年兩千一百元包含幾個域名?
Basic differences between Oracle and MySQL (entry level)
LeetCode-对链表进行插入排序
2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路
培养中小学生对教育机器人的热爱之心
Idea automatic package import and automatic package deletion settings
数学知识(欧拉函数)
正大美欧4的主账户关注什么数据?