当前位置:网站首页>map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
2022-07-06 11:23:00 【小菜鸟码住】
<el-table :data="zdlxList" border style="width: 100%" max-height="250">
<el-table-column prop="zdlb" label="字段列表">
<template #default="scope">
<el-input v-model="scope.row.zdlb" type="textarea" placeholder="请输入字段列表" />
</template>
</el-table-column>
<el-table-column prop="zdsm" label="字段说明">
<template #default="scope">
<el-input v-model="scope.row.zdsm" type="textarea" placeholder="请输入字段说明" />
</template>
</el-table-column>
<el-table-column prop="zdlx" label="字段类型">
<template #default="scope">
<el-select v-model="scope.row.zdlx" :style="{ width: '100%' }" placeholder="请选择">
<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="操作" width="100">
<template #default="scope">
<el-button link type="primary" size="small" @click.prevent="deleteRow(scope.$index)">
删除
</el-button>
</template>
</el-table-column>
</el-table>
js部分
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(',')
边栏推荐
- Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
- 2022.2.12
- [depth first search] Ji suanke: Square
- 三面蚂蚁金服成功拿到offer,Android开发社招面试经验
- 助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
- test about BinaryTree
- 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
- 数学知识——高斯消元(初等行变换解方程组)代码实现
- Camel case with Hungarian notation
- wx小程序学习笔记day01
猜你喜欢
Digital "new" operation and maintenance of energy industry
五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长
美庐生物IPO被终止:年营收3.85亿 陈林为实控人
Solve DoS attack production cases
[paper notes] transunet: transformers make strongencoders for medical image segmentation
Binary search tree
How to type multiple spaces when editing CSDN articles
Describe the process of key exchange
RT-Thread 组件 FinSH 使用时遇到的问题
When visual studio code starts, it prompts "the code installation seems to be corrupt. Please reinstall." Solution to displaying "unsupported" information in the title bar
随机推荐
On AAE
LeetCode-1279. 红绿灯路口
能源行业的数字化“新”运维
How to improve website weight
A method of removing text blur based on pixel repair
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
ModuleNotFoundError: No module named ‘PIL‘解决方法
The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
第五期个人能力认证考核通过名单公布
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
[depth first search] Ji suanke: Square
驼峰式与下划线命名规则(Camel case With hungarian notation)
RT-Thread 组件 FinSH 使用时遇到的问题
Multithreading Basics: basic concepts of threads and creation of threads
Fast power template for inverse element, the role of inverse element and example [the 20th summer competition of Shanghai University Programming League] permutation counting
[paper notes] transunet: transformers make strongencoders for medical image segmentation
上海部分招工市場對新冠陽性康複者拒絕招錄
Pychrm Community Edition calls matplotlib pyplot. Solution of imshow() function image not popping up
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
史上超级详细,想找工作的你还不看这份资料就晚了