From ef408d6a8bbef12d1df69fd5b0ca61849ff25853 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 29 八月 2024 17:31:53 +0800 Subject: [PATCH] 设备新增bug修改 --- src/main.js | 8 ++++---- src/components/view/a6-device-management.vue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/view/a6-device-management.vue b/src/components/view/a6-device-management.vue index f28e1bc..0cc801f 100644 --- a/src/components/view/a6-device-management.vue +++ b/src/components/view/a6-device-management.vue @@ -838,7 +838,7 @@ this.$message.error('鏈緭鍏ュ惎鐢ㄦ棩鏈�') return } - if(!this.formData2.deviceStatus){ + if(this.formData2.deviceStatus==='' || this.formData2.deviceStatus===null){ this.$message.error('鏈�夋嫨褰撳墠鐘舵��') return } @@ -847,7 +847,7 @@ return } this.upLoad2 = true; - this.formData2.insProductIds = this.formData2.insProductIds.join() + this.formData2.insProductIds = this.formData2.insProductIds?this.formData2.insProductIds.join():'' this.$axios.post(this.$api.deviceScope.addDeviceParameter, this.formData2, { headers: { 'Content-Type': 'application/json' diff --git a/src/main.js b/src/main.js index cc6bbed..e9bae15 100644 --- a/src/main.js +++ b/src/main.js @@ -18,13 +18,13 @@ Vue.prototype.PROJECT = '妫�娴嬩腑蹇�' // Vue.prototype.PROJECT = '瑁呭鐢电紗' //鏈湴 -// Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; -// const javaApi = 'http://127.0.0.1:8001'; +Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; +const javaApi = 'http://127.0.0.1:8001'; // const javaApi = 'http://192.168.0.104:8001'; // //閫氫俊娴嬭瘯搴� -Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080"; -const javaApi = 'http://10.1.13.77:8001'; +// Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080"; +// const javaApi = 'http://10.1.13.77:8001'; //浜� // Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080"; -- Gitblit v1.9.3