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 = + '------' + } } } })