From 1cd5db6444d41e6b5a50a290dfece23303af326d Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Mon, 1 Aug 2022 14:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=BD=93=E5=89=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=98=AF=E5=90=A6=E6=8B=A5=E6=9C=89=E5=BD=92=E5=B1=9E?= =?UTF-8?q?=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/capacityOnTheShelf/Algorithm.vue | 4 +++- front/src/views/capacityOnTheShelf/Application.vue | 4 +++- front/src/views/capacityOnTheShelf/BusinessComponent.vue | 4 +++- front/src/views/capacityOnTheShelf/DevelopmentComponents.vue | 4 +++- front/src/views/capacityOnTheShelf/LayerServices.vue | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/Algorithm.vue b/front/src/views/capacityOnTheShelf/Algorithm.vue index 4e9898e7..893d73dd 100644 --- a/front/src/views/capacityOnTheShelf/Algorithm.vue +++ b/front/src/views/capacityOnTheShelf/Algorithm.vue @@ -677,7 +677,9 @@ break case '归属部门': dataFrom.value.deptId = obj.attrValue - dataFrom.value.deptName = obj.attrValueTwo.label + if (obj.attrValueTwo) { + dataFrom.value.deptName = obj.attrValueTwo.label + } break case '部门联系人': dataFrom.value.deptContacts = obj.attrValue diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index 16812205..5edbd35a 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -522,7 +522,9 @@ break case '归属部门': dataFrom.value.deptId = obj.attrValue - dataFrom.value.deptName = obj.attrValueTwo.label + if (obj.attrValueTwo) { + dataFrom.value.deptName = obj.attrValueTwo.label + } break case '部门联系人': dataFrom.value.deptContacts = obj.attrValue diff --git a/front/src/views/capacityOnTheShelf/BusinessComponent.vue b/front/src/views/capacityOnTheShelf/BusinessComponent.vue index 607718da..45cd0117 100644 --- a/front/src/views/capacityOnTheShelf/BusinessComponent.vue +++ b/front/src/views/capacityOnTheShelf/BusinessComponent.vue @@ -600,7 +600,9 @@ break case '归属部门': dataFrom.value.deptId = obj.attrValue - dataFrom.value.deptName = obj.attrValueTwo.label + if (obj.attrValueTwo) { + dataFrom.value.deptName = obj.attrValueTwo.label + } break case '部门联系人': dataFrom.value.deptContacts = obj.attrValue diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue index b3533225..c4faeb25 100644 --- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue +++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue @@ -599,7 +599,9 @@ break case '归属部门': dataFrom.value.deptId = obj.attrValue - dataFrom.value.deptName = obj.attrValueTwo.label + if (obj.attrValueTwo) { + dataFrom.value.deptName = obj.attrValueTwo.label + } break case '部门联系人': dataFrom.value.deptContacts = obj.attrValue diff --git a/front/src/views/capacityOnTheShelf/LayerServices.vue b/front/src/views/capacityOnTheShelf/LayerServices.vue index bca26c23..9aef15d7 100644 --- a/front/src/views/capacityOnTheShelf/LayerServices.vue +++ b/front/src/views/capacityOnTheShelf/LayerServices.vue @@ -496,7 +496,9 @@ break case '归属部门': dataFrom.value.deptId = obj.attrValue - dataFrom.value.deptName = obj.attrValueTwo.label + if (obj.attrValueTwo) { + dataFrom.value.deptName = obj.attrValueTwo.label + } break case '部门联系人': dataFrom.value.deptContacts = obj.attrValue