| | |
| | | <div class="flex2 flex"> |
| | | <div class="label dept"> |
| | | 设备租赁单位 |
| | | </div> |
| | | <div class="value" v-if="filteredRentalUnits.length >= 1"> |
| | | {{ |
| | | filteredRentalUnits[0][ |
| | | "工程起重机械租赁单位" |
| | | ] || "-" |
| | | }} |
| | | </div> |
| | | <el-tooltip |
| | | style="margin-left: 10px" |
| | | v-if="filteredRentalUnits.length > 1" |
| | | placement="top" |
| | | effect="dark" |
| | |
| | | filteredRentalUnits.length |
| | | }}</span> |
| | | </el-tooltip> |
| | | </div> |
| | | <div class="value" v-if="filteredProperties.length ==1"> |
| | | {{ |
| | | filteredProperties[0][ |
| | | "工程起重机械租赁单位" |
| | | ] || "-" |
| | | }} |
| | | </div> |
| | | </div> |
| | | <div class="flex1 flex"> |
| | | <div class="label"> |
| | | 联系人 |
| | | </div> |
| | | <div class="value" v-if="filteredContacts.length >= 1"> |
| | | {{ |
| | | filteredContacts[0]["联系人"] || "-" |
| | | }} |
| | | </div> |
| | | <el-tooltip |
| | | style="margin-left: 10px" |
| | | v-if="filteredContacts.length > 1" |
| | | placement="top" |
| | | effect="dark" |
| | |
| | | 联系人{{ index + 1 }}: |
| | | </div> |
| | | <div class="tooltip-value"> |
| | | {{ item["联系电话"] || "-" }} |
| | | {{ item["联系人"] || "-" }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | filteredContacts.length |
| | | }}</span> |
| | | </el-tooltip> |
| | | </div> |
| | | <div class="value" v-if="filteredContacts.length ==1"> |
| | | {{ |
| | | filteredProperties[0]["联系电话"] || "-" |
| | | }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="info-item11"> |
| | |
| | | this.projectInfo.properties.forEach((itemStr) => { |
| | | try { |
| | | const item = JSON.parse(itemStr) |
| | | console.log('item item', item) |
| | | const rentalUnit = item['工程起重机械租赁单位'] |
| | | if (!rentalUnit) return |
| | | const key = String(rentalUnit).trim() |
| | |
| | | |
| | | } |
| | | }) |
| | | console.log('1111111111111', list) |
| | | |
| | | return list |
| | | }, |
| | | filteredContacts () { |
| | |
| | | this.projectInfo.properties.forEach((itemStr) => { |
| | | try { |
| | | const item = JSON.parse(itemStr) |
| | | const contact = item['联系电话'] |
| | | if (!contact) return |
| | | const key = String(contact).trim() |
| | | const name = item['联系人'] |
| | | if (!name) return |
| | | const key = String(name).trim() |
| | | if (!key) return |
| | | if (seen.has(key)) return |
| | | seen.add(key) |
| | | list.push({ '联系电话': contact }) |
| | | list.push({ '联系人': name }) |
| | | } catch (e) { |
| | | |
| | | } |