liuyg
2022-03-19 1fd94033300c712a6faeac1b8a7d3fa3fd4e3553
+解决标签不显示问题,加入判断右侧添加标签失败提示
3 files modified
29 ■■■■■ changed files
src/components/map/components/mapPopup.vue 19 ●●●● patch | view | raw | blame | history
src/pcviews/tool/sign.vue 2 ●●● patch | view | raw | blame | history
src/store/modules/popupParams.js 8 ●●●● patch | view | raw | blame | history
src/components/map/components/mapPopup.vue
@@ -887,11 +887,20 @@
      // return;
      // this.$store.commit("set_closeMapClick", false); //开启其他操作
      add(d).then(
        () => {
          this.$message({
            type: "success",
            message: "操作成功!",
          });
        (res) => {
          // console.log(res);
          if (res.data.code == 200) {
            this.$message({
              type: "success",
              message: "操作成功!",
            });
          } else {
            this.$message({
              type: "error",
              message: "新增失败!",
            });
          }
          this.closeaddIconsLayerIconPopup();
        },
        (error) => {
src/pcviews/tool/sign.vue
@@ -166,7 +166,7 @@
        );
        // eslint-disable-next-line no-unused-vars
        const popup = new global.DC.DivForms(global.viewer, {
        new global.DC.DivForms(global.viewer, {
          domId: "AddTagBox",
          position: [
            global.DC.Transform.transformWGS84ToCartesian(
src/store/modules/popupParams.js
@@ -1,7 +1,7 @@
import leftNavsData from './pc/leftNavsData'
window.labelLayer = null;
window.divIcon = null;
window.divIcononces = null;
const popupParams = {
    state: {
@@ -250,7 +250,7 @@
                return
            }
            for (const i in list) {
                const divIcon = new global.DC.DivIcon(
                window.divIcononces = new global.DC.DivIcon(
                    new global.DC.Position(
                        Number(list[i].jd),
                        Number(list[i].wd),
@@ -268,7 +268,7 @@
                          `
                )
                // 订阅事件
                window.divIcon.on(global.DC.MouseEventType.CLICK, (e) => {
                window.divIcononces.on(global.DC.MouseEventType.CLICK, (e) => {
                    // console.log(e);
                    // return;
                    // 定制化窗体
@@ -308,7 +308,7 @@
                        data: list[i]
                    })
                })
                window.labelLayer.addOverlay(window.divIcon)
                window.labelLayer.addOverlay(window.divIcononces)
            }
        },
        addLabelLayerIconMobelUse({