当前位置:网站首页>在{{}}中拼接字符
在{{}}中拼接字符
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>
边栏推荐
- Leetcode basic programming: array
- Mapping settings in elk (8) es
- How to write a client-side technical solution
- Let正版短信测压开源源码
- Gin framework learning code
- Online incremental migration of DM database
- 正大留4的主账户信息汇总
- Cannot activate CONDA virtual environment in vscode
- 面试会问的 Promise.all()
- Feign realizes file uploading and downloading
猜你喜欢
Tawang food industry insight | current situation, consumption data and trend analysis of domestic infant complementary food market
Embedded-c language-9-makefile/ structure / Consortium
Summary of database problems
win10 磁盘管理 压缩卷 无法启动问题
How to modify data file path in DM database
10 minute quick start UI automation ----- puppeter
Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
How to write a client-side technical solution
Pit encountered in win11 pytorch GPU installation
Application d'un robot intelligent dans le domaine de l'agroécologie
随机推荐
農業生態領域智能機器人的應用
MySQL table insert Chinese change? Solution to the problem of No
National all Chinese Automatic Test Software apifox
Oracle和MySQL的基本区别(入门级)
数据库问题汇总
VMware installation win10 reports an error: operating system not found
Comp 250 parsing
What data does the main account of Zhengda Meiou 4 pay attention to?
C case of communication between server and client based on mqttnet
UNET deployment based on deepstream
Leetcode- insert and sort the linked list
Go Chan's underlying principles
LeetCode-对链表进行插入排序
Mapping settings in elk (8) es
数学知识——快速幂的理解及例题
C # picture display occupancy problem
Idea automatic package import and automatic package deletion settings
Getting started with pytest -- description of fixture parameters
解决:代理抛出异常错误
TypeScript函数详解