当前位置:网站首页>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(',')
边栏推荐
- Installation and management procedures
- Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
- R语言使用order函数对dataframe数据进行排序、基于单个字段(变量)进行降序排序(DESCENDING)
- Word如何显示修改痕迹
- [translation] a GPU approach to particle physics
- [depth first search] Ji suanke: a joke of replacement
- Druid 数据库连接池 详解
- PMP每日一练 | 考试不迷路-7.6
- 三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
- 五金机电行业智能供应链管理系统解决方案:数智化供应链为传统产业“造新血”
猜你喜欢

pytorch常见损失函数

Problems encountered in using RT thread component fish

Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
![打家劫舍III[后序遍历与回溯+动态规划]](/img/9b/e9eeed138e46afdeed340bf2629ee1.png)
打家劫舍III[后序遍历与回溯+动态规划]

LeetCode-1279. 红绿灯路口

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

中缀表达式转后缀表达式详细思路及代码实现

应用使用Druid连接池经常性断链问题分析

Online notes

Synchronous development of business and application: strategic suggestions for application modernization
随机推荐
[paper notes] transunet: transformers make strongencoders for medical image segmentation
Translation D28 (with AC code POJ 26:the nearest number)
C#/VB. Net to add text / image watermarks to PDF documents
Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
驼峰式与下划线命名规则(Camel case With hungarian notation)
能源行业的数字化“新”运维
Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million
使用map函数、split函数一行键入多个元素
pytorch常见损失函数
打家劫舍III[后序遍历与回溯+动态规划]
[depth first search] Ji suanke: Square
Word如何显示修改痕迹
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
A popular explanation will help you get started
A method of removing text blur based on pixel repair
第五期个人能力认证考核通过名单公布
ACTF 2022圆满落幕,0ops战队二连冠!!
LeetCode-1279. Traffic light intersection
Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic