当前位置:网站首页>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(',')
边栏推荐
- C # use Marshall to manually create unmanaged memory in the heap and use
- Characteristic colleges and universities, jointly build Netease Industrial College
- An error occurs when installing MySQL: could not create or access the registry key needed for the
- About static type, dynamic type, ID, instancetype
- Fast power template for inverse element, the role of inverse element and example [the 20th summer competition of Shanghai University Programming League] permutation counting
- Yutai micro rushes to the scientific innovation board: Huawei and Xiaomi fund are shareholders to raise 1.3 billion
- 渲大师携手向日葵,远控赋能云渲染及GPU算力服务
- Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers
- C language daily practice - day 22: Zero foundation learning dynamic planning
- Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
猜你喜欢
Word如何显示修改痕迹
助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
pytorch常见损失函数
Looting iii[post sequence traversal and backtracking + dynamic planning]
全套教学资料,阿里快手拼多多等7家大厂Android面试真题
中缀表达式转后缀表达式详细思路及代码实现
Druid 数据库连接池 详解
保证接口数据安全的10种方案
Black Horse - - Redis Chapter
Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
随机推荐
Black Horse - - Redis Chapter
2022.2.12
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
About static type, dynamic type, ID, instancetype
usb host 驱动 - UVC 掉包
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
R语言ggplot2可视化时间序列柱形图:通过双色渐变配色颜色主题可视化时间序列柱形图
Problems encountered in using RT thread component fish
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
How to type multiple spaces when editing CSDN articles
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
Dark horse -- redis
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
PMP每日一练 | 考试不迷路-7.6
How can my Haskell program or library find its version number- How can my Haskell program or library find its version number?
Analysis of frequent chain breaks in applications using Druid connection pools
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
[depth first search] Ji suanke: a joke of replacement
CCNP Part 11 BGP (III) (essence)