Commit 5edf3857 authored by 周毅's avatar 周毅

修改页面列表显示

parent 7f1c4bf9
...@@ -35,12 +35,6 @@ ...@@ -35,12 +35,6 @@
type: 'input', type: 'input',
required: true, required: true,
}, },
{
label: '工位别名',
prop: 'alias',
span: 12,
type: 'input',
},
{ {
label: '工位类型', label: '工位类型',
prop: 'type', prop: 'type',
......
...@@ -16,10 +16,17 @@ ...@@ -16,10 +16,17 @@
export default { export default {
data() { data() {
return { return {
typeMap:{},
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/jcsj/ulkcrksz', url: 'lxyl/jcsj/ulkcrksz',
tableTitle: [{ tableTitle: [
{
title: "设备",
field: "hjName",
width: 140
},
{
title: "工位", title: "工位",
field: "gwName", field: "gwName",
width: 140 width: 140
...@@ -29,16 +36,7 @@ ...@@ -29,16 +36,7 @@
field: "gwCode", field: "gwCode",
width: 140 width: 140
}, },
{
title: "货架",
field: "hjName",
width: 140
},
{
title: "货架编码",
field: "hjCode",
width: 140
},
{ {
title: "垛机取货工位", title: "垛机取货工位",
field: "rkgwid", field: "rkgwid",
...@@ -53,10 +51,16 @@ ...@@ -53,10 +51,16 @@
title: "类型", title: "类型",
field: "gwType", field: "gwType",
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||'未设置'
} }
}, },
{ {
...@@ -98,6 +102,15 @@ ...@@ -98,6 +102,15 @@
} }
} }
},
mounted() {
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