Sfoglia il codice sorgente

修改地图提醒

zk 1 anno fa
parent
commit
41c3a49728
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/utils/map/ArcgisUtil.js

+ 4 - 1
src/utils/map/ArcgisUtil.js

@@ -1,5 +1,7 @@
 //加载地图控件
 import CityGis from "@/utils/map/CityGis.Bridge";
+import { ElMessage } from 'element-plus'
+import 'element-plus/es/components/message/style/css'
 let bridge
 let calculateFinish = false
 
@@ -12,6 +14,7 @@ export function initBridge(){
             console.log("地图创建完成");
         }
     });
+
     bridge.addEventListener((arg) => {
         switch (arg.action) {
             case "MapIsReady":
@@ -194,7 +197,7 @@ export function calculation(type){
     bridge.addEventListener((arg) => {
         if(arg.action == "Calculation" && calculateFinish == false){
             calculateFinish = true
-            alert("测量结果:" + arg.data.result)
+            ElMessage.warning("测量结果:" + arg.data.result)
         }
     });
 }