update 地图绘制

This commit is contained in:
zk
2023-12-06 19:44:44 +08:00
parent 3b9b1d67fc
commit 123b681dc3
7 changed files with 230 additions and 70 deletions
+9 -1
View File
@@ -61,7 +61,7 @@
import { onMounted, ref } from 'vue';
import { message } from 'ant-design-vue';
import { Map } from '/@/assets/mapUtils/map';
import { tabList, legendList, getTimeStr, getKmStr, mapApiSwitch } from '/@/components/chinaMap/chinaHooks';
import { tabList, legendList, getTimeStr, getKmStr, mapApiSwitch, TabType, aircraft } from '/@/components/chinaMap/chinaHooks';
const formState = ref({
start: '西安北站',
@@ -71,7 +71,15 @@
const currentIndex = ref(0);
function changeTab(item, i: number) {
// if (i == currentIndex.value) {
// return;
// }
currentIndex.value = i;
// 直升机
if (TabType.zhiShengJi == item.type) {
Map.createAircraft(aircraft);
return;
}
getMapData(item.type, { type: item.type });
}