diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index 3d6f7e7b..56036349 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -102,24 +102,24 @@ if (!obj) { flag.value = false } else { - dataFrom.value.content[0].childrenContent[0].attrValue = - props.dataList.deptContacts dataFrom.value.content[0].childrenContent[1].attrValue = - props.dataList.deptPhone + props.dataList.deptContacts dataFrom.value.content[0].childrenContent[2].attrValue = + props.dataList.deptPhone + dataFrom.value.content[0].childrenContent[0].attrValue = props.dataList.deptName props.dataList.infoList.map((item) => { if (item.attrType == '组件地址') { dataFrom.value.link = item.attrValue } else if (item.attrType == '服务商联系人') { - dataFrom.value.content[1].childrenContent[0].attrValue = - item.attrValue - } else if (item.attrType == '服务商联系电话') { dataFrom.value.content[1].childrenContent[1].attrValue = item.attrValue - } else if (item.attrType == '服务商' || item.attrType == '服务商名') { + } else if (item.attrType == '服务商联系电话') { dataFrom.value.content[1].childrenContent[2].attrValue = item.attrValue + } else if (item.attrType == '服务商' || item.attrType == '服务商名') { + dataFrom.value.content[1].childrenContent[0].attrValue = + item.attrValue } }) } @@ -164,26 +164,26 @@ if (!obj) { flag.value = false } else { - dataFrom.value.content[0].childrenContent[0].attrValue = - props.dataList.deptContacts dataFrom.value.content[0].childrenContent[1].attrValue = - props.dataList.deptPhone + props.dataList.deptContacts dataFrom.value.content[0].childrenContent[2].attrValue = + props.dataList.deptPhone + dataFrom.value.content[0].childrenContent[0].attrValue = props.dataList.deptName props.dataList.infoList.map((item) => { if (item.attrType == '组件地址') { dataFrom.value.link = item.attrValue } else if (item.attrType == '服务商联系人') { - dataFrom.value.content[1].childrenContent[0].attrValue = + dataFrom.value.content[1].childrenContent[1].attrValue = item.attrValue } else if (item.attrType == '服务商联系电话') { - dataFrom.value.content[1].childrenContent[1].attrValue = + dataFrom.value.content[1].childrenContent[2].attrValue = item.attrValue } else if ( item.attrType == '服务商' || item.attrType == '服务商名' ) { - dataFrom.value.content[1].childrenContent[2].attrValue = + dataFrom.value.content[1].childrenContent[0].attrValue = item.attrValue } }) @@ -204,11 +204,11 @@ } .content { display: flex; - width: 13rem; + width: 14rem; justify-content: space-between; .content-card { height: 1.8rem; - width: 6.2rem; + width: 6.6rem; border-radius: 0.2rem; background: linear-gradient( to right, @@ -242,11 +242,18 @@ max-width: 2.8rem; div { max-width: 2.8rem; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 1; + // overflow: hidden; + // text-overflow: ellipsis; + // display: -webkit-box; + // -webkit-box-orient: vertical; + // -webkit-line-clamp: 1; + & > span:last-child { + display: inline-block; + width: 1.19rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } } }