当前位置:网站首页>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(',')
边栏推荐
- AIRIOT物联网平台赋能集装箱行业构建【焊接工位信息监控系统】
- Use map function and split function to type multiple elements in one line
- 青龙面板最近的库
- JDBC详解
- 上海部分招工市場對新冠陽性康複者拒絕招錄
- Characteristic colleges and universities, jointly build Netease Industrial College
- The second day of rhcsa study
- 朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
- 包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
- 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
猜你喜欢

如何提高网站权重

Human bone point detection: top-down (part of the theory)
![Deep circulation network long-term blood pressure prediction [translation]](/img/9c/c1ed28242a4536c1e8fde3414f82a8.png)
Deep circulation network long-term blood pressure prediction [translation]

史上超级详细,想找工作的你还不看这份资料就晚了

Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller

Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers

快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数

ROS custom message publishing subscription example

Implementation of AVL tree

Binary search tree
随机推荐
About static type, dynamic type, ID, instancetype
Test technology stack arrangement -- self cultivation of test development engineers
test about BinaryTree
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
Optical blood pressure estimation based on PPG and FFT neural network [translation]
Airiot IOT platform enables the container industry to build [welding station information monitoring system]
Solve DoS attack production cases
【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
Wx applet learning notes day01
Handwritten online chat system (principle part 1)
Some recruitment markets in Shanghai refuse to recruit patients with covid-19 positive
Pytorch common loss function
pychrm社区版调用matplotlib.pyplot.imshow()函数图像不弹出的解决方法
Php+redis realizes the function of canceling orders over time
Multithreading Basics: basic concepts of threads and creation of threads
A method of removing text blur based on pixel repair
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
星诺奇科技IPO被终止:曾拟募资3.5亿元 年营收3.67亿
Leetcode topic [array] - 119 Yang Hui triangle II
Implementation of AVL tree