From ddd1d13333bd85cffaac8e5c81a3e609d85cc1dd Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Tue, 14 Jun 2022 16:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90=E8=AF=A6?= =?UTF-8?q?=E6=83=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationDeploymentAndSecurity.vue | 5 +++- ...tionOwningDepartmentAndServiceProvider.vue | 27 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue index 35ea7248..9449182a 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue @@ -169,7 +169,10 @@ margin-right: 0.7rem; color: rgba(33, 41, 86, 0.8); font-size: 0.2rem; - max-width: 5660px; + max-width: 9.35rem; + overflow: hidden; /*超出的隐藏*/ + white-space: nowrap; + text-overflow: ellipsis; /*超出的设置为省略号*/ } } } diff --git a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue index abb654d3..e9787da0 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue @@ -77,10 +77,19 @@ ) { if (item.attrType === '服务商' || item.attrType === '服务商名') { dataFrom.value.content[1].childrenContent[0] = item + if (dataFrom.value.content[1].childrenContent[0].attrValue == '') { + dataFrom.value.content[1].childrenContent[0].attrValue = '------' + } } else if (item.attrType === '服务商联系人') { dataFrom.value.content[1].childrenContent[1] = item + if (dataFrom.value.content[1].childrenContent[1].attrValue == '') { + dataFrom.value.content[1].childrenContent[1].attrValue = '------' + } } else if (item.attrType === '服务商联系电话') { dataFrom.value.content[1].childrenContent[2] = item + if (dataFrom.value.content[1].childrenContent[2].attrValue == '') { + dataFrom.value.content[1].childrenContent[2].attrValue = '------' + } } } }) @@ -116,10 +125,28 @@ ) { if (item.attrType === '服务商' || item.attrType === '服务商名') { dataFrom.value.content[1].childrenContent.push(item) + if ( + dataFrom.value.content[1].childrenContent[0].attrValue == '' + ) { + dataFrom.value.content[1].childrenContent[0].attrValue = + '------' + } } else if (item.attrType === '服务商联系人') { dataFrom.value.content[1].childrenContent[1] = item + if ( + dataFrom.value.content[1].childrenContent[1].attrValue == '' + ) { + dataFrom.value.content[1].childrenContent[1].attrValue = + '------' + } } else if (item.attrType === '服务商联系电话') { dataFrom.value.content[1].childrenContent[2] = item + if ( + dataFrom.value.content[1].childrenContent[2].attrValue == '' + ) { + dataFrom.value.content[1].childrenContent[2].attrValue = + '------' + } } } })