当前位置:网站首页>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(',')
边栏推荐
- R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
- R语言使用dt函数生成t分布密度函数数据、使用plot函数可视化t分布密度函数数据(t Distribution)
- 史上超级详细,想找工作的你还不看这份资料就晚了
- tensorflow和torch代码验证cuda是否安装成功
- Problems encountered in using RT thread component fish
- Binary search tree
- R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
- Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
- 黑马--Redis篇
- When visual studio code starts, it prompts "the code installation seems to be corrupt. Please reinstall." Solution to displaying "unsupported" information in the title bar
猜你喜欢

如何提高网站权重

Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers

数学知识——高斯消元(初等行变换解方程组)代码实现

黑馬--Redis篇

About static type, dynamic type, ID, instancetype

Xingnuochi technology's IPO was terminated: it was planned to raise 350million yuan, with an annual revenue of 367million yuan

LeetCode-1279. 红绿灯路口

反射及在运用过程中出现的IllegalAccessException异常

It's super detailed in history. It's too late for you to read this information if you want to find a job

IC设计流程中需要使用到的文件
随机推荐
Excel 中VBA脚本的简单应用
助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
Word如何显示修改痕迹
Synchronous development of business and application: strategic suggestions for application modernization
AUTOCAD——中心线绘制、CAD默认线宽是多少?可以修改吗?
PMP每日一练 | 考试不迷路-7.6
Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
English topic assignment (25)
ModuleNotFoundError: No module named ‘PIL‘解决方法
Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
Detailed idea and code implementation of infix expression to suffix expression
[depth first search] Ji suanke: Square
Interview assault 63: how to remove duplication in MySQL?
The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
Test technology stack arrangement -- self cultivation of test development engineers
Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic
Benefit a lot, Android interview questions
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
Druid 数据库连接池 详解