diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue index 5465dfbc..46a2b0ce 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue @@ -52,7 +52,11 @@ }) if (props.dataList.infoList) { props.dataList.infoList.map((item) => { - if (item.attrType === '部署区域' || item.attrType === '是否统一登录') { + if ( + item.attrType === '部署区域' || + item.attrType === '是否统一登录' || + item.attrType === '部署位置' + ) { dataFrom.value.content[0].childrenContent.push(item) } else if ( item.attrType === '是否等保备案' || @@ -61,6 +65,22 @@ dataFrom.value.content[1].childrenContent.push(item) } }) + if (dataFrom.value.content[1].childrenContent.length <= 0) { + let data = [ + { + attrType: '是否等保备案', + attrValue: '------', + }, + { + attrType: '等保定级', + attrValue: '------', + }, + ] + data.map((itemContent) => { + dataFrom.value.content[1].childrenContent.push(itemContent) + }) + } + let obj = { attrType: '访问地址', attrValue: props.dataList.link, @@ -76,7 +96,8 @@ props.dataList.infoList.map((item) => { if ( item.attrType === '部署区域' || - item.attrType === '是否统一登录' + item.attrType === '是否统一登录' || + item.attrType === '部署位置' ) { dataFrom.value.content[0].childrenContent.push(item) } else if ( @@ -86,6 +107,21 @@ dataFrom.value.content[1].childrenContent.push(item) } }) + if (dataFrom.value.content[1].childrenContent.length <= 0) { + let data = [ + { + attrType: '是否等保备案', + attrValue: '------', + }, + { + attrType: '等保定级', + attrValue: '------', + }, + ] + data.map((itemContent) => { + dataFrom.value.content[1].childrenContent.push(itemContent) + }) + } let obj = { attrType: '访问地址', attrValue: props.dataList.link, @@ -133,6 +169,7 @@ margin-right: 0.7rem; color: rgba(33, 41, 86, 0.8); font-size: 0.2rem; + max-width: 5660px; } } } diff --git a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue index c575dafd..229283a5 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationOwningDepartmentAndServiceProvider.vue @@ -72,9 +72,16 @@ if ( item.attrType === '服务商' || item.attrType === '服务商联系人' || - item.attrType === '服务商联系电话' + item.attrType === '服务商联系电话' || + item.attrType === '服务商名' ) { - dataFrom.value.content[1].childrenContent.push(item) + if (item.attrType === '服务商' || item.attrType === '服务商名') { + dataFrom.value.content[1].childrenContent[0] = item + } else if (item.attrType === '服务商联系人') { + dataFrom.value.content[1].childrenContent[1] = item + } else if (item.attrType === '服务商联系电话') { + dataFrom.value.content[1].childrenContent[2] = item + } } }) console.log('obj', dataFrom.value) @@ -83,8 +90,8 @@ () => props.dataList, (val) => { if (val) { - dataFrom.value.content[0].childrenContent = [] - dataFrom.value.content[1].childrenContent = [] + // dataFrom.value.content[0].childrenContent = [] + // dataFrom.value.content[1].childrenContent = [] let obj = { attrType: '部门名称', attrValue: props.dataList.deptName, @@ -104,9 +111,16 @@ if ( item.attrType === '服务商' || item.attrType === '服务商联系人' || - item.attrType === '服务商联系电话' + item.attrType === '服务商联系电话' || + item.attrType === '服务商名' ) { - dataFrom.value.content[1].childrenContent.push(item) + if (item.attrType === '服务商' || item.attrType === '服务商名') { + dataFrom.value.content[1].childrenContent.push(item) + } else if (item.attrType === '服务商联系人') { + dataFrom.value.content[1].childrenContent[1] = item + } else if (item.attrType === '服务商联系电话') { + dataFrom.value.content[1].childrenContent[2] = item + } } }) console.log('obj', dataFrom.value)