当前位置:网站首页>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(',')
边栏推荐
- pychrm社区版调用matplotlib.pyplot.imshow()函数图像不弹出的解决方法
- AIRIOT物联网平台赋能集装箱行业构建【焊接工位信息监控系统】
- Analysis of frequent chain breaks in applications using Druid connection pools
- 打家劫舍III[后序遍历与回溯+动态规划]
- Understanding disentangling in β- VAE paper reading notes
- 助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
- Swagger2 reports an error illegal DefaultValue null for parameter type integer
- 应用使用Druid连接池经常性断链问题分析
- How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
- An error occurs when installing MySQL: could not create or access the registry key needed for the
猜你喜欢
Dark horse -- redis
Online notes
A method of removing text blur based on pixel repair
[matlab] Simulink the input and output variables of the same module cannot have the same name
三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic
Take a look at how cabloyjs workflow engine implements activiti boundary events
ACTF 2022圆满落幕,0ops战队二连冠!!
ROS自定义消息发布订阅示例
Actf 2022 came to a successful conclusion, and 0ops team won the second consecutive championship!!
随机推荐
Is not a drawable (color or path): the vector graph downloaded externally cannot be called when it is put into mipmap, and the calling error program crashes
swagger2报错Illegal DefaultValue null for parameter type integer
QPushButton绑定快捷键的注意事项
受益匪浅,安卓面试问题
Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
打家劫舍III[后序遍历与回溯+动态规划]
谷粒商城--分布式高级篇P129~P339(完结)
A popular explanation will help you get started
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
Cereals Mall - Distributed Advanced p129~p339 (end)
Precautions for binding shortcut keys of QPushButton
Master Xuan joined hands with sunflower to remotely control enabling cloud rendering and GPU computing services
R语言dplyr包进行数据分组聚合统计变换(Aggregating transforms)、计算dataframe数据的分组均值(mean)
Multithreading Basics: basic concepts of threads and creation of threads
Based on butterfly species recognition
R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
GCC【7】- 编译检查的是函数的声明,链接检查的是函数的定义bug
ModuleNotFoundError: No module named ‘PIL‘解决方法
RT-Thread 组件 FinSH 使用时遇到的问题