当前位置:网站首页>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(',')
边栏推荐
- The list of people who passed the fifth phase of personal ability certification assessment was published
- PMP practice once a day | don't get lost in the exam -7.6
- JDBC详解
- 三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
- Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
- Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
- Multithreading Basics: basic concepts of threads and creation of threads
- 主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
- A method of removing text blur based on pixel repair
- Test technology stack arrangement -- self cultivation of test development engineers
猜你喜欢

Problems encountered in using RT thread component fish

五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长

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

Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!

Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast

安装Mysql报错:Could not create or access the registry key needed for the...

Abstract classes and abstract methods

helm部署etcd集群

倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告

Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
随机推荐
应用使用Druid连接池经常性断链问题分析
pytorch常见损失函数
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Modulenotfounderror: no module named 'PIL' solution
Tensorflow and torch code verify whether CUDA is successfully installed
Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
R语言dplyr包进行数据分组聚合统计变换(Aggregating transforms)、计算dataframe数据的分组均值(mean)
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
Druid 数据库连接池 详解
Pychrm Community Edition calls matplotlib pyplot. Solution of imshow() function image not popping up
ROS custom message publishing subscription example
Implementation of AVL tree
渲大师携手向日葵,远控赋能云渲染及GPU算力服务
About static type, dynamic type, ID, instancetype
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
关于静态类型、动态类型、id、instancetype
打家劫舍III[后序遍历与回溯+动态规划]
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
[paper notes] transunet: transformers make strongencoders for medical image segmentation