应用资源详情bug修改

This commit is contained in:
851673013@qq.com 2022-06-14 15:39:04 +08:00
parent 904aecc6da
commit 3bd8e574bb
2 changed files with 59 additions and 8 deletions

View File

@ -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;
}
}
}

View File

@ -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)