From 5035cc074a8132f6c5c25925ce608c30ef428660 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Wed, 6 Jul 2022 13:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationDeploymentAndSecurity.vue | 294 +++++++++--------- ...tionOwningDepartmentAndServiceProvider.vue | 13 +- 2 files changed, 160 insertions(+), 147 deletions(-) diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue index f5d5c2a8..02ac23fc 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue @@ -2,17 +2,10 @@ diff --git a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue index 41e214bb..c878f35e 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue @@ -53,12 +53,12 @@ if (props.dataList.infoList) { dataFrom.value.content[0].childrenContent[0] = obj let deptContacts = { attrType: '部门联系人', - attrValue: props.dataList.deptContacts || '------', + attrValue: '', } dataFrom.value.content[0].childrenContent[1] = deptContacts let deptPhone = { attrType: '部门联系电话', - attrValue: props.dataList.deptPhone || '------', + attrValue: '', } dataFrom.value.content[0].childrenContent[2] = deptPhone props.dataList.infoList.map((item) => { @@ -87,8 +87,13 @@ if (props.dataList.infoList) { dataFrom.value.content[1].childrenContent[2].attrValue = '------' } } + } else if (item.attrType === '部门联系人') { + deptContacts.attrValue = item.attrValue || '------' + } else if (item.attrType === '部门联系人电话') { + deptPhone.attrValue = item.attrValue || '------' } }) + console.log('obj', dataFrom.value) } watch( @@ -147,6 +152,10 @@ watch( '------' } } + } else if (item.attrType === '部门联系人') { + deptContacts.attrValue = item.attrValue || '------' + } else if (item.attrType === '部门联系人电话') { + deptPhone.attrValue = item.attrValue || '------' } }) console.log('obj', dataFrom.value)