当前位置:网站首页>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(',')
边栏推荐
- Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
- Leetcode topic [array] - 119 Yang Hui triangle II
- pytorch常见损失函数
- Method of accessing mobile phone storage location permission under non root condition
- Optical blood pressure estimation based on PPG and FFT neural network [translation]
- 提前解锁 2 大直播主题!今天手把手教你如何完成软件包集成?|第 29-30 期
- Computer network: sorting out common network interview questions (I)
- About static type, dynamic type, ID, instancetype
- short i =1; i=i+1与short i=1; i+=1的区别
- R language ggplot2 visualization: use ggviolin function of ggpubr package to visualize violin diagram
猜你喜欢

美庐生物IPO被终止:年营收3.85亿 陈林为实控人

Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview

The list of people who passed the fifth phase of personal ability certification assessment was published

Php+redis realizes the function of canceling orders over time

渲大师携手向日葵,远控赋能云渲染及GPU算力服务

手写一个的在线聊天系统(原理篇1)

Simple understanding of MySQL database

Human bone point detection: top-down (part of the theory)
![[translation] a GPU approach to particle physics](/img/07/57036c925155cab36678c696e89440.jpg)
[translation] a GPU approach to particle physics

JDBC详解
随机推荐
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
中缀表达式转后缀表达式详细思路及代码实现
Optical blood pressure estimation based on PPG and FFT neural network [translation]
基于蝴蝶种类识别
pytorch常见损失函数
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
AIRIOT物联网平台赋能集装箱行业构建【焊接工位信息监控系统】
Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
Pytorch common loss function
PMP每日一练 | 考试不迷路-7.6
倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告
Fast power template for inverse element, the role of inverse element and example [the 20th summer competition of Shanghai University Programming League] permutation counting
R language uses rchisq function to generate random numbers that conform to Chi square distribution, and uses plot function to visualize random numbers that conform to Chi square distribution
Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million
About NPM install error 1
CCNP Part 11 BGP (III) (essence)