update: 大屏接口

This commit is contained in:
xf
2025-07-09 15:10:30 +08:00
parent f6e5bb78da
commit 91abcfd78d
22 changed files with 418 additions and 78 deletions
+17 -9
View File
@@ -74,7 +74,7 @@
</template>
<script setup lang="ts">
import { nextTick, onMounted, ref, watch } from 'vue';
import { infoContent, legendList, tabList } from '/@/views/indexSun/indexSun.ts';
import { infoContent, infoContent1, legendList, tabList } from '/@/views/indexSun/indexSun.ts';
import { message } from 'ant-design-vue';
import { innerLineLight, outerLineOption } from '/@/assets/mapUtils/mapConstant.ts';
import { Map } from '/@/assets/mapUtils/map.ts';
@@ -122,7 +122,7 @@
const panelTitle = ref();
const level = ref(0);
const routeList = ref([]);
const emits = defineEmits(['clearHospitalList', 'showRestB']);
const emits = defineEmits(['clearHospitalList', 'showRestB', 'handleDetail']);
watch(
() => props.showHospitalList,
@@ -150,7 +150,6 @@
document.addEventListener('click', (e) => {
let t = e.target.closest('.viewBtn');
if (t) {
console.log(t.id);
if (t.id) {
handleClcikDetail(JSON.parse(t.id));
}
@@ -184,7 +183,9 @@
function changeTab(item: any, i: number) {
closeDrivingElement();
currentIndex.value = i;
tab(item);
if (item.type) {
tab(item);
}
}
function tab(item: any) {
@@ -280,8 +281,12 @@
},
},
async (val) => {
console.log(val);
Map.createInfoModal({ option: val, content: infoContent(val) });
if (val.type == '2') {
Map.createInfoModal({ option: val, content: infoContent(val) });
} else {
Map.createInfoModal({ option: val, content: infoContent1(val) });
}
// const viewBtn = document.getElementById(val.id);
// viewBtn.onclick = () => {
// handleClcikDetail(val);
@@ -307,7 +312,7 @@
}
function handleClcikDetail(res) {
console.log(res);
emits('handleDetail', res);
}
function setTitle({ time, distance }) {
@@ -560,7 +565,10 @@
}
}
}
:deep(.modal-box-normal) {
width: 330px;
height: 110px;
}
.hospital-list {
position: absolute;
bottom: 160px;
@@ -590,7 +598,7 @@
z-index: 99;
position: absolute;
right: 0;
top: 54px;
top: 100px;
width: 288px;
padding: 9px 18px;
min-height: 200px;