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