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

View File

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