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

修改页面列表显示

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