当前位置:网站首页>Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
2022-07-06 19:19:00 【Vegetable bird yard live】
<el-table :data="zdlxList" border style="width: 100%" max-height="250">
<el-table-column prop="zdlb" label=" Field list ">
<template #default="scope">
<el-input v-model="scope.row.zdlb" type="textarea" placeholder=" Please enter the field list " />
</template>
</el-table-column>
<el-table-column prop="zdsm" label=" Field description ">
<template #default="scope">
<el-input v-model="scope.row.zdsm" type="textarea" placeholder=" Please enter the field description " />
</template>
</el-table-column>
<el-table-column prop="zdlx" label=" Field type ">
<template #default="scope">
<el-select v-model="scope.row.zdlx" :style="{ width: '100%' }" placeholder=" Please select ">
<el-option
v-for="item in zdlxTpye"
:key="item.value"
:label="item.label"
:value="item.label"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label=" operation " width="100">
<template #default="scope">
<el-button link type="primary" size="small" @click.prevent="deleteRow(scope.$index)">
Delete
</el-button>
</template>
</el-table-column>
</el-table>
js part
const aa = zdlxList.value.map(a => {
return a.zdlx
})
const bb = zdlxList.value.map(a => {
return a.zdlb
})
const cc = zdlxList.value.map(a => {
return a.zdsm
})
data.form.fieldTypeList = aa.join(',')
data.form.fieldList = bb.join(',')
data.form.fieldDescList = cc.join(',')
边栏推荐
- How word displays modification traces
- ModuleNotFoundError: No module named ‘PIL‘解决方法
- Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic
- R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
- Wx applet learning notes day01
- A popular explanation will help you get started
- 五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长
- JDBC详解
- Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
- Swagger2 reports an error illegal DefaultValue null for parameter type integer
猜你喜欢

ACTF 2022圆满落幕,0ops战队二连冠!!

MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!

倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告
![Airiot IOT platform enables the container industry to build [welding station information monitoring system]](/img/52/88e3c7b7a60867282921d9bb5c96da.jpg)
Airiot IOT platform enables the container industry to build [welding station information monitoring system]

Xingnuochi technology's IPO was terminated: it was planned to raise 350million yuan, with an annual revenue of 367million yuan

Online notes

A popular explanation will help you get started

Cereals Mall - Distributed Advanced p129~p339 (end)

Black Horse - - Redis Chapter

Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
随机推荐
LeetCode-1279. 红绿灯路口
CCNP Part 11 BGP (III) (essence)
tensorflow和torch代码验证cuda是否安装成功
A popular explanation will help you get started
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
Abstract classes and abstract methods
Dark horse -- redis
The list of people who passed the fifth phase of personal ability certification assessment was published
Is not a drawable (color or path): the vector graph downloaded externally cannot be called when it is put into mipmap, and the calling error program crashes
[depth first search] Ji suanke: Square
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图
Take a look at how cabloyjs workflow engine implements activiti boundary events
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
Precautions for binding shortcut keys of QPushButton
Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
MATLAB中deg2rad和rad2deg函数的使用
Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
If you have any problems, you can contact me. A rookie ~
helm部署etcd集群
About NPM install error 1