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

多选

parent e8f2cd4f
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
label: '工位类型', label: '工位类型',
prop: 'type', prop: 'type',
span: 12, span: 12,
type: 'RelSelect', type: 'RelMulSelect',
typeConfig: { typeConfig: {
src: "lxyl/jcsj/ugw/init/gwlx" src: "lxyl/jcsj/ugw/init/gwlx"
}, },
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
data() { data() {
return { return {
taskTypeMap:{}, taskTypeMap:{},
typeMap:{},
config: { config: {
showqt:true, showqt:true,
/* 基本配置*/ /* 基本配置*/
...@@ -61,10 +62,16 @@ ...@@ -61,10 +62,16 @@
title: "类型", title: "类型",
field: "type", field: "type",
width: 140, width: 140,
"transform": { formatter:(a,b,v)=>{
"url": "lxyl/jcsj/ugw/init/gwlx", let showZd=''
"label": "name", if(v){
"value": "id" let vArr=v.split(',')
vArr.forEach(item=>{
console.log(item,this.typeMap)
showZd=showZd+this.typeMap[item]+';'
})
}
return showZd||'未设置'
} }
}, },
{ {
...@@ -133,6 +140,12 @@ ...@@ -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: { 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