Commit 7f1c4bf9 authored by 李苏's avatar 李苏 💬

多选

parent e8f2cd4f
......@@ -45,7 +45,7 @@
label: '工位类型',
prop: 'type',
span: 12,
type: 'RelSelect',
type: 'RelMulSelect',
typeConfig: {
src: "lxyl/jcsj/ugw/init/gwlx"
},
......
......@@ -17,6 +17,7 @@
data() {
return {
taskTypeMap:{},
typeMap:{},
config: {
showqt:true,
/* 基本配置*/
......@@ -61,10 +62,16 @@
title: "类型",
field: "type",
width: 140,
"transform": {
"url": "lxyl/jcsj/ugw/init/gwlx",
"label": "name",
"value": "id"
formatter:(a,b,v)=>{
let showZd=''
if(v){
let vArr=v.split(',')
vArr.forEach(item=>{
console.log(item,this.typeMap)
showZd=showZd+this.typeMap[item]+';'
})
}
return showZd||'未设置'
}
},
{
......@@ -133,6 +140,12 @@
})
})
this.$post('lxyl/jcsj/ugw/init/gwlx',{}).then(res=>{
res.data.records.forEach(item=>{
this.typeMap[item.id]=item.name
})
})
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment