当前位置:网站首页>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(',')
边栏推荐
- 提前解锁 2 大直播主题!今天手把手教你如何完成软件包集成?|第 29-30 期
- ROS自定义消息发布订阅示例
- Method of accessing mobile phone storage location permission under non root condition
- 基于蝴蝶种类识别
- Multithreading Basics: basic concepts of threads and creation of threads
- 抽象类与抽象方法
- LeetCode-1279. Traffic light intersection
- Synchronous development of business and application: strategic suggestions for application modernization
- Deep circulation network long-term blood pressure prediction [translation]
- AutoCAD - what is the default lineweight for centerline drawing and CAD? Can I modify it?
猜你喜欢
Interface test tool - postman
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
[matlab] Simulink the input and output variables of the same module cannot have the same name
AUTOCAD——中心线绘制、CAD默认线宽是多少?可以修改吗?
A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million
How to improve website weight
Detailed idea and code implementation of infix expression to suffix expression
随机推荐
Optical blood pressure estimation based on PPG and FFT neural network [translation]
JDBC详解
Understanding disentangling in β- VAE paper reading notes
PMP practice once a day | don't get lost in the exam -7.6
Master Xuan joined hands with sunflower to remotely control enabling cloud rendering and GPU computing services
openmv4 学习笔记1----一键下载、图像处理背景知识、LAB亮度-对比度
主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
使用map函数、split函数一行键入多个元素
Tensorflow and torch code verify whether CUDA is successfully installed
应用使用Druid连接池经常性断链问题分析
Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]
数学知识——高斯消元(初等行变换解方程组)代码实现
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
helm部署etcd集群
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
Pytorch common loss function
pytorch常见损失函数
C#/VB. Net to add text / image watermarks to PDF documents
【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
RT-Thread 组件 FinSH 使用时遇到的问题