update: 初始化:新疆大屏基础搭建

This commit is contained in:
xf
2025-07-02 13:48:50 +08:00
parent 1cbda373e0
commit ff493d83d9
24 changed files with 1482 additions and 14 deletions
@@ -85,6 +85,21 @@ export const sexType = [
},
];
export const timeTabNew = [
{
name: '本周',
value: '2',
},
{
name: '本月',
value: '3',
},
{
name: '本年',
value: '4',
},
];
export function useSpin() {
const spinning = ref(true);
+3 -3
View File
@@ -1,12 +1,12 @@
<template>
<div class="common-card" :class="[themeType]">
<public-title title="服务详情数据" :themeType="themeType" />
<public-title title="服务详情数据" themeType="dark" />
<div class="inner">
<div class="type-time">
<span
v-for="(item, index) in typeTime"
:key="index"
:class="[selectIndex === index ? 'select' : 'unSelect', themeType]"
:class="[selectIndex === index ? 'select' : 'unSelect', 'dark']"
@click="handleSelect(index, item.value)"
>{{ item.name }}</span
>
@@ -16,7 +16,7 @@
v-for="(item, index) in statistics"
:key="index"
class="server-item"
:class="[['gross', 'alerdyreceive'].includes(item.key) ? 'hasCursor' : '', themeType]"
:class="[['gross', 'alerdyreceive'].includes(item.key) ? 'hasCursor' : '', 'dark']"
@click="handleClick(item)"
>
<span>{{ item?.name }}</span>
+2
View File
@@ -208,9 +208,11 @@
}
onMounted(() => {
console.log(props.mapOptions);
const op = { el: 'xianmapContainer', option: props.mapOptions, innerLineOption: innerLineLight, outerLineOption: outerLineOption };
Map.initMap(op).then(() => {
getMapData(tabList[0].type);
console.log(getMapData(tabList[0].type), 123);
Map.map && Map.map.on('zoomend', setLevel);
Map.map && Map.map.on('zoomend', setLevel);
});