diff --git a/src/components/DialogCarPayload.vue b/src/components/DialogCarPayload.vue index c787222..2dc955a 100644 --- a/src/components/DialogCarPayload.vue +++ b/src/components/DialogCarPayload.vue @@ -1,13 +1,18 @@ @@ -143,6 +145,7 @@ export default { dataList: [], tableLoading: false, refreshLayoutKey: null, + updateCarPayloadKey: 1 }; }, inject: ["urls"], @@ -191,7 +194,7 @@ export default { this.dataList = res.data.list; this.totalPage = res.data.total; } else if (Array.isArray(res.data)) { - this.dataList = res.data + this.dataList = res.data; this.totalPage = null; } else { this.dataList.splice(0); diff --git a/src/views/modules/pms/detectionPlatform/config.js b/src/views/modules/pms/detectionPlatform/config.js index 1094b41..9c260e1 100644 --- a/src/views/modules/pms/detectionPlatform/config.js +++ b/src/views/modules/pms/detectionPlatform/config.js @@ -23,7 +23,7 @@ export default function () { subcomponent: TableOperaionComponent, options: [ { name: "to-car-payload", label: "装载详情", icon: 'document' }, - { name: "edit-payload", label: "输入载砖详情", icon: 'edit' }, + // { name: "edit-payload", label: "输入载砖详情", icon: 'edit' }, ], }, ]; @@ -206,6 +206,7 @@ export default function () { }; const carPayloadDialogConfigs = { + showAdd: true, // 是否显示新增 装载详情,默认为 否 dialogWidth: '70%', carPayloadDialog: true, clickModalToClose: true, diff --git a/src/views/modules/pms/palletizingLine/components/ListViewWithHead.vue b/src/views/modules/pms/palletizingLine/components/ListViewWithHead.vue index aabcdb3..6752e44 100644 --- a/src/views/modules/pms/palletizingLine/components/ListViewWithHead.vue +++ b/src/views/modules/pms/palletizingLine/components/ListViewWithHead.vue @@ -40,15 +40,17 @@ v-if="!!carPayloadAddConfigs" :dialog-visible.sync="carPayloadAddVisible" :configs="carPayloadAddConfigs" - @refreshDataList="getList" + @refreshDataList="updateCarPayloadKey = Math.random()" /> @@ -143,6 +145,7 @@ export default { dataList: [], tableLoading: false, refreshLayoutKey: null, + updateCarPayloadKey: 1 }; }, inject: ["urls"], @@ -191,7 +194,7 @@ export default { this.dataList = res.data.list; this.totalPage = res.data.total; } else if (Array.isArray(res.data)) { - this.dataList = res.data + this.dataList = res.data; this.totalPage = null; } else { this.dataList.splice(0); diff --git a/src/views/modules/pms/palletizingLine/config.js b/src/views/modules/pms/palletizingLine/config.js index 2fac311..6424cee 100644 --- a/src/views/modules/pms/palletizingLine/config.js +++ b/src/views/modules/pms/palletizingLine/config.js @@ -23,7 +23,7 @@ export default function () { subcomponent: TableOperaionComponent, options: [ { name: "to-car-payload", label: "装载详情", icon: 'document' }, - { name: "edit-payload", label: "输入载砖详情", icon: 'edit' }, + // { name: "edit-payload", label: "输入载砖详情", icon: 'edit' }, ], }, ]; @@ -196,6 +196,7 @@ export default function () { }; const carPayloadDialogConfigs = { + showAdd: true, dialogWidth: '70%', carPayloadDialog: true, clickModalToClose: true,