bug修改

This commit is contained in:
gaoyuanwei 2022-07-01 19:32:48 +08:00
parent 3f77db2ff8
commit c4a2acd8a7
2 changed files with 23 additions and 7 deletions

View File

@ -23,7 +23,9 @@
</div>
<div class="content-card">
<div v-for="(item, index) in dataFrom.content" :key="index">
<div class="card-title">{{ item.childrenTitle }}</div>
<div class="card-title">
{{ item.childrenTitle }}
</div>
<div class="card-content">
<div v-for="carditem in item.childrenContent" :key="carditem">
<div>
@ -63,6 +65,10 @@
attrType: '联系人电话',
attrValue: '------',
},
{
attrType: '归属部门名称',
attrValue: '------',
},
],
},
{
@ -76,6 +82,10 @@
attrType: '联系人电话',
attrValue: '------',
},
{
attrType: '服务商名称',
attrValue: '------',
},
],
},
],
@ -96,6 +106,8 @@
props.dataList.deptContacts
dataFrom.value.content[0].childrenContent[1].attrValue =
props.dataList.deptPhone
dataFrom.value.content[0].childrenContent[2].attrValue =
props.dataList.deptName
props.dataList.infoList.map((item) => {
if (item.attrType == '组件地址') {
dataFrom.value.link = item.attrValue
@ -153,6 +165,8 @@
props.dataList.deptContacts
dataFrom.value.content[0].childrenContent[1].attrValue =
props.dataList.deptPhone
dataFrom.value.content[0].childrenContent[2].attrValue =
props.dataList.deptName
props.dataList.infoList.map((item) => {
if (item.attrType == '组件地址') {
dataFrom.value.link = item.attrValue
@ -184,7 +198,7 @@
width: 13rem;
justify-content: space-between;
.content-card {
height: 1.5rem;
height: 1.8rem;
width: 6.2rem;
border-radius: 0.2rem;
background: linear-gradient(
@ -196,7 +210,6 @@
display: flex;
align-items: center;
& > div {
height: 0.9rem;
width: 3.1rem;
padding-left: 0.3rem;
}
@ -213,7 +226,7 @@
.card-content {
white-space: nowrap;
div {
display: inline-block;
display: block;
margin-right: 0.2rem;
color: rgba(33, 41, 86, 0.8);
font-size: 0.2rem;
@ -227,9 +240,6 @@
-webkit-line-clamp: 1;
}
}
div:first-child {
display: block;
}
}
}
.content-card:first-child {

View File

@ -159,6 +159,12 @@
text-align: center;
font-size: 0.16rem;
color: #212121;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.text {
width: 100%;