From 2ff272549b1e7ca1c8f82569aa8399dcc9c59460 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期三, 29 十一月 2023 10:12:53 +0800 Subject: [PATCH] modified: src/views/warehouse/pallettransports/index.vue modified: vue.config.js --- vue.config.js | 5 ++--- src/views/warehouse/pallettransports/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/warehouse/pallettransports/index.vue b/src/views/warehouse/pallettransports/index.vue index 606ff6a..9a4dda2 100644 --- a/src/views/warehouse/pallettransports/index.vue +++ b/src/views/warehouse/pallettransports/index.vue @@ -708,7 +708,7 @@ this.palletTransportsMaterialMultipleSelection = val let ids =[] this.palletTransportsMaterialMultipleSelection.forEach(el =>{ids.push(el.id)}) - let pId = ids.length>0 ? [ids.length - 1] : null; + let pId = ids[ids.length - 1]; console.log(pId); if(pId!=null){ selectAll({ @@ -716,7 +716,7 @@ transportsMaterialId: pId }).then((res) =>{ console.log(res); - if(res.status===200 && res.data.data!=null){ + if(res.data.data){ this.palletTransportsDetailData.push(res.data.data) }else{ this.palletTransportsDetailData = [] diff --git a/vue.config.js b/vue.config.js index cd548ee..627b473 100644 --- a/vue.config.js +++ b/vue.config.js @@ -2,12 +2,11 @@ * 閰嶇疆鍙傝��: * https://cli.vuejs.org/zh/config/ */ -// const url = 'http://192.168.2.7:9999' +const url = 'http://192.168.2.7:9999' //const url = 'http://192.168.32.45:9999' // const url = 'http://192.168.0.23:9999' -// const url = 'http://192.168.83.249:9999' - const url = 'http://localhost:9999' +// const url = 'http://localhost:9999' // const url = 'http://ztt-gateway:9999' const localUrl = 'http://localhost:8089' -- Gitblit v1.9.3