From d27da0d7b2f5cc3cc97622158b7f14a7faabb05b Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期三, 12 六月 2024 18:42:33 +0800 Subject: [PATCH] 世医图谱 --- src/pages/territory/territory.vue | 43 +++++++++++++++++++++++++++++++++---------- 1 files changed, 33 insertions(+), 10 deletions(-) diff --git a/src/pages/territory/territory.vue b/src/pages/territory/territory.vue index 8b1da9c..5485113 100644 --- a/src/pages/territory/territory.vue +++ b/src/pages/territory/territory.vue @@ -8,7 +8,7 @@ > <advancedSearch class="Search" - placehold="杈撳叆濮撳悕/鍒悕/鏈濅唬/浼犱富鑱屼笟鎼滅储" + placehold="杈撳叆濮撳悕/鍒悕/鏃舵湡/浼犱富鑱屼笟鎼滅储" @onSearch="onSearch" :isAvancedTrue="false" :keyword="keyword" @@ -148,7 +148,12 @@ 绫嶈疮: {{ currentMark.nativePlace ? currentMark.nativePlace : "-" }} </li> <li>鍖诲鍒嗙: {{ currentMark.barnch ? currentMark.barnch : "-" }}</li> - <li>灏忎紶: {{ currentMark.medical ? currentMark.medical : "-" }}</li> + <li + class="medicalLi" + :title="currentMark.medical ? currentMark.medical : '-'" + > + 灏忎紶: {{ currentMark.medical ? currentMark.medical : "-" }} + </li> </ul> <el-button class="flex" @@ -429,21 +434,22 @@ }, showCard(info) { const item = this.markerList.find((f) => f.id == info.id); + console.log(item, "item"); var latlng = L.latLng(item.yCoord, item.xCoord); this.map.setView(latlng, 10); setTimeout(() => { this.isEchTrue = true; this.currentMark = { - name: item?.WEAK_NAME[0]?.content1, + name: item?.NAME[0]?.content1, nikeName: item?.ALIAS[0]?.content2, nativePlace: item?.content1, barnch: item?.MEDICAL_BRANCH[0]?.content1, - medical: item?.MEDICAL_EXPERTISE[0]?.content1, + medical: item?.BIOGRAPHY, id: item.id, }; this.$nextTick(() => { this.isTop = - document.getElementById("mapBox").offsetHeight / 2 - 275 + "px"; + document.getElementById("mapBox").offsetHeight / 2 - 295 + "px"; this.isLeft = document.getElementById("mapBox").offsetWidth / 2 - 171 + "px"; }); @@ -523,14 +529,14 @@ setTimeout(() => { this.isEchTrue = true; this.currentMark = { - name: ele?.WEAK_NAME[0]?.content1, + name: ele?.NAME[0]?.content1, nikeName: ele?.ALIAS[0]?.content2, nativePlace: ele?.content1, barnch: ele?.MEDICAL_BRANCH[0]?.content1, - medical: ele?.MEDICAL_EXPERTISE[0]?.content1, + medical: ele?.BIOGRAPHY, id: ele.id, }; - this.isTop = e.containerPoint.y - 275 + "px"; + this.isTop = e.containerPoint.y - 295 + "px"; this.isLeft = e.containerPoint.x - 171 + "px"; }, 300); }); @@ -733,10 +739,10 @@ nikeName: item?.ALIAS[0]?.content2, nativePlace: item?.content1, barnch: item?.MEDICAL_BRANCH[0]?.content1, - medical: item?.MEDICAL_EXPERTISE[0]?.content1, + medical: item?.BIOGRAPHY, id: item.id, }; - this.isTop = e.containerPoint.y - 275 + "px"; + this.isTop = e.containerPoint.y - 295 + "px"; this.isLeft = e.containerPoint.x - 171 + "px"; }, 300); }); @@ -983,4 +989,21 @@ opacity: 0; } } */ + +::v-deep .cleanupBtn { + right: 60px !important; +} + +::v-deep .widget_input { + min-width: 240px !important; +} + +.medicalLi { + height: 50px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} </style> -- Gitblit v1.9.1