应用资源详情bug

This commit is contained in:
851673013@qq.com 2022-06-14 16:11:52 +08:00
parent 0bc59716ad
commit ddd1d13333
2 changed files with 31 additions and 1 deletions

View File

@ -169,7 +169,10 @@
margin-right: 0.7rem; margin-right: 0.7rem;
color: rgba(33, 41, 86, 0.8); color: rgba(33, 41, 86, 0.8);
font-size: 0.2rem; font-size: 0.2rem;
max-width: 5660px; max-width: 9.35rem;
overflow: hidden; /*超出的隐藏*/
white-space: nowrap;
text-overflow: ellipsis; /*超出的设置为省略号*/
} }
} }
} }

View File

@ -77,10 +77,19 @@
) { ) {
if (item.attrType === '服务商' || item.attrType === '服务商名') { if (item.attrType === '服务商' || item.attrType === '服务商名') {
dataFrom.value.content[1].childrenContent[0] = item 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 === '服务商联系人') { } else if (item.attrType === '服务商联系人') {
dataFrom.value.content[1].childrenContent[1] = item 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 === '服务商联系电话') { } else if (item.attrType === '服务商联系电话') {
dataFrom.value.content[1].childrenContent[2] = item 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 === '服务商名') { if (item.attrType === '服务商' || item.attrType === '服务商名') {
dataFrom.value.content[1].childrenContent.push(item) 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 === '服务商联系人') { } else if (item.attrType === '服务商联系人') {
dataFrom.value.content[1].childrenContent[1] = item 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 === '服务商联系电话') { } else if (item.attrType === '服务商联系电话') {
dataFrom.value.content[1].childrenContent[2] = item dataFrom.value.content[1].childrenContent[2] = item
if (
dataFrom.value.content[1].childrenContent[2].attrValue == ''
) {
dataFrom.value.content[1].childrenContent[2].attrValue =
'------'
}
} }
} }
}) })