jinx 10 月之前
父节点
当前提交
e1d97eb605

+ 1 - 8
packages/qjkankan-editor/src/views/hotspot/HotSpotList.vue

@@ -124,7 +124,6 @@ export default {
     hotspotList: {
     hotspotList: {
       handler(newVal, oldVal) {
       handler(newVal, oldVal) {
         if (newVal && this.$route.name == "hotspot") {
         if (newVal && this.$route.name == "hotspot") {
-          console.error("hotspot change");
           this.$store.commit("scene/setSaveApiList", "hotspot");
           this.$store.commit("scene/setSaveApiList", "hotspot");
         }
         }
       },
       },
@@ -164,10 +163,8 @@ export default {
       // let hptarget = this.someData.hotspots.find((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
       // let hptarget = this.someData.hotspots.find((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
 
 
       let hptarget = this.hotspotList.findIndex((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
       let hptarget = this.hotspotList.findIndex((item) => item.name.toLowerCase() == data.hpname.toLowerCase());
-
-      if (data.hpname.toLowerCase() == this.hotspot.name.toLowerCase()) {
+      if (this.hotspot && data.hpname.toLowerCase() == this.hotspot.name.toLowerCase()) {
         //兼容新增
         //兼容新增
-        console.error("兼容新增");
         this.hotspot.ath = data.ath;
         this.hotspot.ath = data.ath;
         this.hotspot.atv = data.atv;
         this.hotspot.atv = data.atv;
       }
       }
@@ -276,7 +273,6 @@ export default {
       this.$msg.success(this.$i18n.t("hotspot.delete") + this.$i18n.t("hotspot.success"));
       this.$msg.success(this.$i18n.t("hotspot.delete") + this.$i18n.t("hotspot.success"));
     },
     },
     open(data) {
     open(data) {
-      console.error(data);
       let hotspotData = null;
       let hotspotData = null;
       if (data.isAdd) {
       if (data.isAdd) {
         this.editTitle = this.$i18n.t("hotspot.add");
         this.editTitle = this.$i18n.t("hotspot.add");
@@ -401,7 +397,6 @@ export default {
 
 
         console.log("hotspotData", hotspotData);
         console.log("hotspotData", hotspotData);
       } else {
       } else {
-        console.error(123123);
         hotspotData = browser.CloneObject(data);
         hotspotData = browser.CloneObject(data);
         /**
         /**
          * v1.3新增
          * v1.3新增
@@ -472,10 +467,8 @@ export default {
          */
          */
       }
       }
       this.$store.commit("hotspot/SetHotspot", hotspotData);
       this.$store.commit("hotspot/SetHotspot", hotspotData);
-      console.error(this.isConfirmingPosi);
       setTimeout(() => {
       setTimeout(() => {
         this.showPanel = true;
         this.showPanel = true;
-        console.error(this.isConfirmingPosi);
       }, 100);
       }, 100);
 
 
       if (!data.isAdd) {
       if (!data.isAdd) {

+ 0 - 1
packages/qjkankan-editor/src/views/mask/setting.vue

@@ -144,7 +144,6 @@ export default {
     currentMask: {
     currentMask: {
       handler(newVal, oldVal) {
       handler(newVal, oldVal) {
         if (newVal && this.$route.name == "mask" && newVal.navigationId == oldVal.navigationId) {
         if (newVal && this.$route.name == "mask" && newVal.navigationId == oldVal.navigationId) {
-          console.error("mask change");
           this.$store.commit("scene/setSaveApiList", "mask");
           this.$store.commit("scene/setSaveApiList", "mask");
         }
         }
       },
       },

+ 0 - 3
packages/qjkankan-editor/src/views/navigation/groupSettings.vue

@@ -237,7 +237,6 @@ export default {
           }
           }
         }
         }
       } catch (e) {
       } catch (e) {
-        console.error(e);
         this.$msg.error(this.$i18n.t("gather.delete_fail"));
         this.$msg.error(this.$i18n.t("gather.delete_fail"));
         return;
         return;
       }
       }
@@ -323,8 +322,6 @@ export default {
           this.$store.commit("scene/setCurrentCatalogRoot", firstTab);
           this.$store.commit("scene/setCurrentCatalogRoot", firstTab);
         }, 100);
         }, 100);
       } catch (e) {
       } catch (e) {
-        console.error(e);
-        this.$msg.error("删除失败");
         this.$msg.error(this.$i18n.t("gather.delete_fail"));
         this.$msg.error(this.$i18n.t("gather.delete_fail"));
         this.$store.commit("SetInfo", backup);
         this.$store.commit("SetInfo", backup);
       }
       }

+ 1 - 4
packages/qjkankan-editor/src/views/screen/Setting.vue

@@ -154,10 +154,8 @@ export default {
     },
     },
     vlookat: {
     vlookat: {
       handler: function (val) {
       handler: function (val) {
-        console.error(this.changeScene);
         this.handleVlootAt(val);
         this.handleVlootAt(val);
         if (val && this.$route.name == "screen" && this.changeScene == false) {
         if (val && this.$route.name == "screen" && this.changeScene == false) {
-          console.error("screen change");
           this.$store.commit("scene/setSaveApiList", "screen");
           this.$store.commit("scene/setSaveApiList", "screen");
         }
         }
         this.changeScene = false;
         this.changeScene = false;
@@ -200,7 +198,6 @@ export default {
           item.vlookatmax = this.vlookat[1];
           item.vlookatmax = this.vlookat[1];
         }
         }
       });
       });
-      console.error(this.workVisualAngleList);
       // 拖动结束时的处理逻辑
       // 拖动结束时的处理逻辑
     },
     },
     onClickGo4dkk() {
     onClickGo4dkk() {
@@ -252,7 +249,7 @@ export default {
     });
     });
 
 
     if (!this.initImg) {
     if (!this.initImg) {
-      this.initImg = this.currentScene.icon;
+      this.initImg = this.currentScene?.icon || "";
     }
     }
   },
   },
 };
 };

+ 0 - 11
packages/qjkankan-view/src/components/UIGather/list.vue

@@ -299,12 +299,6 @@ const initSecondGroupSwiper = () => {
   });
   });
 };
 };
 
 
-const tabCurrentSecondGroup = (data, index) => {
-  // store.commit("scene/setCurrentScene", data);
-
-  SecondGroupSwiper.value.slideTo(index);
-};
-
 const initRootGroupSwiper = () => {
 const initRootGroupSwiper = () => {
   // if (rootGroupSwiper.value) {
   // if (rootGroupSwiper.value) {
   //   rootGroupSwiper.value.destroy();
   //   rootGroupSwiper.value.destroy();
@@ -323,11 +317,6 @@ const initRootGroupSwiper = () => {
   }
   }
 };
 };
 
 
-const tabCurrentRootGroup = (data, index) => {
-  // store.commit("scene/setCurrentScene", data);
-  // SecondGroupSwiper.value.slideTo(index);
-};
-
 onMounted(() => {
 onMounted(() => {
   useApp().then(async (app) => {
   useApp().then(async (app) => {
     show.value = true;
     show.value = true;