update: 初始化:新疆大屏基础搭建
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user