当前位置:网站首页>Splice characters in {{}}
Splice characters in {{}}
2022-07-02 05:00:00 【Out of the autistic bird】
stay { {}} Middle concatenated character
The back end returns such data
[ { "addressId": 35, "city": " The Beijing municipal ", "createTime": null, "district": " Xicheng district ", "houseNumber": "a District 1 Number 12 layer 230", "officeName": " The first hospital of Peking University - Basement Parking ", "province": " The Beijing municipal ", "recordStatus": 0, "userCode": "", "workAddress": " Aimin 1st lane, Xicheng District, Beijing 2 Number ( Beihai North subway station A Walk to the northwest entrance 440 rice )", "workLatitude": 39.932312, "workLongitude": 116.380994 }, { "addressId": 36, "city": " The Beijing municipal ", "createTime": null, "district": " Xicheng district ", "houseNumber": "a District 1 Number 12 layer 230", "officeName": " The first hospital of Peking University - Basement Parking ", "province": " The Beijing municipal ", "recordStatus": 0, "userCode": "", "workAddress": " Aimin 1st lane, Xicheng District, Beijing 2 Number ( Beihai North subway station A Walk to the northwest entrance 440 rice )", "workLatitude": 39.932312, "workLongitude": 116.380994 } ]
Use elementui Of el-table When rendering data ,prop Only one attribute can be displayed , I want to pick it up once city and district Two properties are displayed , Slots can be used at this time clot-scope Get this line of data , Then splice the two attributes
<el-table
:data="addressInfo"
style="width: 100%">
<el-table-column
prop="officeName"
label=" Address ">
</el-table-column>
<el-table-column
label=" Area ">
<template slot-scope="scope">
{
{ scope.row.city+"·"+scope.row.district}}
</template>
</el-table-column>
</el-table>
边栏推荐
- I sorted out some basic questions about opencv AI kit.
- Use of typescript classes
- DMA Porter
- Domestic all Chinese automatic test software apifox
- C# 基于MQTTNet的服务端与客户端通信案例
- Video multiple effects production, fade in effect and border background are added at the same time
- Several methods of capturing packets under CS framework
- TypeScript函数详解
- How do I interview for a successful software testing position? If you want to get a high salary, you must see the offer
- 【ClickHouse】How to create index for Map Type Column or one key of it?
猜你喜欢
记录一次Unity 2020.3.31f1的bug
数学问题(数论)试除法做质数的判断、分解质因数,筛质数
Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
奠定少儿编程成为基础学科的原理
Leetcode merge sort linked list
DMA Porter
How to write a client-side technical solution
The underlying principle of go map (storage and capacity expansion)
Gin framework learning code
[common error] the DDR type of FPGA device is selected incorrectly
随机推荐
删除排序数组中的重复项go语言实现
VMware installation win10 reports an error: operating system not found
C# 图片显示占用问题
How to recover deleted data in disk
Application d'un robot intelligent dans le domaine de l'agroécologie
Oracle stored procedure and job task setting
Mouse events in JS
06 装饰(Decorator)模式
win11安装pytorch-gpu遇到的坑
Several methods of capturing packets under CS framework
LM09丨费雪逆变换反转网格策略
How to modify data file path in DM database
06 decorator mode
Federal learning: dividing non IID samples according to Dirichlet distribution
I sorted out some basic questions about opencv AI kit.
GeoTrust ov multi domain SSL certificate is 2100 yuan a year. How many domain names does it contain?
What are the rules and trading hours of agricultural futures contracts? How much is the handling fee deposit?
June book news | 9 new books are listed, with a strong lineup and eyes closed!
函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
Online incremental migration of DM database