liuyg
2022-03-31 4dab9528d8e69c0c3f8ce03a7d4617bb13ecec8d
+注释
5 files modified
32 ■■■■ changed files
src/components/mobileActivity/index.vue 9 ●●●●● patch | view | raw | blame | history
src/components/mobilePopupOurAfter/index.vue 1 ●●●● patch | view | raw | blame | history
src/components/mobileWindow/index.vue 4 ●●● patch | view | raw | blame | history
src/components/mobilemap/index.vue 1 ●●●● patch | view | raw | blame | history
src/store/modules/mobile.js 17 ●●●● patch | view | raw | blame | history
src/components/mobileActivity/index.vue
@@ -156,6 +156,7 @@
    //       this.height = this.useHeight;
    //     }
    //   },
    //当弹窗显示时,开始操作数据
    showActivity() {
      if (this.showActivity) {
        this.inToInit(); // 初始化
@@ -223,6 +224,7 @@
          //     }
          //   }
          // }
          //处理底图
          window.serviceMapSee = {};
          getdetail(this.showActivityData.opendata.id).then((res) => {
            let name = res.data.data.mapname.split(",");
@@ -239,7 +241,7 @@
                url: url[k],
                to: "serviceMap",
              };
              this.serviceMap.push(d);
              this.serviceMap.push(d); //数据层
              // console.log(d, "see");
              window.onceServiceMap =
@@ -250,8 +252,8 @@
                flag: true,
                layer: global.viewer.imageryLayers.addImageryProvider(
                  window.onceServiceMap
                ),
                source: window.onceServiceMap,
                ), //渲染层
                source: window.onceServiceMap, //渲染源
              };
              window.onceServiceMap = null;
            }
@@ -349,6 +351,7 @@
        item.img = item.normal;
      }
      if (item.to == "serviceMap") {
        //再次判断是否是底图的加载
        console.log(window.serviceMapSee[item.layer]);
        //清除
        if (!item.flag && window.serviceMapSee[item.layer].flag) {
src/components/mobilePopupOurAfter/index.vue
@@ -144,6 +144,7 @@
        //   {},
        // ],
      ],
      //全部调用数据
      openData1: [
        { name: "党群机构", type: 1, method: getList },
        { name: "职能部处", type: 2, method: getList },
src/components/mobileWindow/index.vue
@@ -134,7 +134,7 @@
        let queryData = this.query.query;
        // console.log(queryData, 789);
        this.title = queryData.name;
        //判断是否显示操作按钮
        if (queryData.seebut) {
          this.seebut = queryData.seebut;
          if (queryData.from == "活动") {
@@ -270,6 +270,7 @@
    };
  },
  methods: {
    //按钮点击事件
    openOnce(val) {
      let that = this;
      that.routerS = [];
@@ -346,6 +347,7 @@
        ]);
      }
    },
    //修改数据
    changeData(data, name, value) {
      let arr = [];
      for (let k in data[name]) {
src/components/mobilemap/index.vue
@@ -891,6 +891,7 @@
      //   overlay: undefined,
      //   color: undefined,
      // };
      //地图点击事件
      global.viewer.on(global.DC.MouseEventType.CLICK, (e) => {
        // console.log(e);
        if (e.overlay != undefined && e.layer.id == "areaLayer") {
src/store/modules/mobile.js
@@ -480,6 +480,7 @@
            // 传递响应数据
            commit('MSET_QUERY', data)
            // console.log(data);
            //配置移动和弹窗的偏移   flys是飞行的偏移  clas是弹窗的偏移
            if (state.dimension == '3D') {
                Flys = [
                    +data.lntLat[0] + 0.01197,
@@ -513,6 +514,7 @@
                ]
            }
            window.tancuanPosition = data.position;
            //useJWD开启状态  window.tancuanPosition就是根据经纬度来计算出来的 如果有原有的 data.position 把值变为false
            if (data.useJWD) {
                window.ellipsoid = global.viewer.scene.globe.ellipsoid
                window.cartographic = global.DC.Namespace.Cesium.Cartographic.fromDegrees(
@@ -946,6 +948,7 @@
                    // window.drawALineLayerdrawALine (paths, res.data.route.paths[0].strategy);
                })
            // }
            //包装绘画工具
            window.drawALineLayerdrawALine = (pathsour) => {
                const paths = pathsour.steps
                const titles = pathsour.strategy
@@ -996,19 +999,7 @@
            // 检查是否存在路线
            commit('removePolyline')
            commit('removePolylineMany')
            const color =
                global.DC.Namespace.Cesium.Color.fromCssColorString('#409EFF')
            window.polylinematerialdaohang = new global.DC.PolylineTrailMaterialProperty({
                // color: color,
                // speed: 10
                color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10),
                speed: 60,
                image: '/img/icon/right.png',
                repeat: {
                    x: 320,
                    y: 1
                }
            })
            window.drawALineLayer = new global.DC.VectorLayer('lineLayer')
            global.viewer.addLayer(window.drawALineLayer)