From a8b413334e395f05e6f6ccaa0df08dce59dd99e9 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Thu, 21 Sep 2023 10:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=80=89=E6=8B=A9=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/technology/process/content.vue | 2 +- src/views/technology/process/index.vue | 4 ++-- src/views/technology/recipe/content.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/technology/process/content.vue b/src/views/technology/process/content.vue index 3ec3735..8d77f60 100644 --- a/src/views/technology/process/content.vue +++ b/src/views/technology/process/content.vue @@ -207,7 +207,7 @@ export default { console.log("device是空,if获取的device",this.form.device); this.form.device = obj; }else{ - if(obj != undefined && obj != null){ + if(obj != undefined && obj != null && obj != "" ){ const a = obj.split(','); const len = obj.split(',').length; console.log('切割的数组',obj.split(',')); diff --git a/src/views/technology/process/index.vue b/src/views/technology/process/index.vue index 2ed0723..d337360 100644 --- a/src/views/technology/process/index.vue +++ b/src/views/technology/process/index.vue @@ -831,13 +831,13 @@ export default { }, //新增 设备选择弹出框 onItemSelectedEquipment(obj) { - if (this.form.equipment == null) { + if (this.form.equipment == null || this.form.equipment == "") { console.log("equipment是空,if获取的obj", obj); console.log("device是空,if获取的equipment", this.form.equipment); this.form.equipment = obj; this.selectMaterielListtag = obj.split(","); } else { - if (obj != undefined && obj != null) { + if (obj != undefined && obj != null && obj != "") { const a = obj.split(","); const len = obj.split(",").length; console.log("切割的数组", obj.split(",")); diff --git a/src/views/technology/recipe/content.vue b/src/views/technology/recipe/content.vue index 36f274c..0436286 100644 --- a/src/views/technology/recipe/content.vue +++ b/src/views/technology/recipe/content.vue @@ -318,7 +318,7 @@ export default { console.log("device是空,if获取的device",this.form.device); this.form.device = obj; }else{ - if(obj != undefined && obj != null){ + if(obj != undefined && obj != null && obj != ""){ const a = obj.split(','); console.log('切割的数组',obj.split(',')); a.forEach(item => { @@ -347,7 +347,7 @@ export default { console.log("material是空,if获取的material",this.form.material); this.form.material = obj; }else{ - if(obj != undefined && obj != null){ + if(obj != undefined && obj != null && obj !=""){ const a = obj.split(','); const len = obj.split(',').length; console.log('切割的数组',obj.split(','));