xieqy před 2 roky
rodič
revize
a55123a3ca

+ 4 - 0
src/views/groupPage/header/header.vue

@@ -143,6 +143,7 @@ export default {
       this.treeSelectText = label
       if (pid == 2) {
         this.getUserActiveModule()
+        this.setCurrentPrj(45)
         this.$store.state.bigScreen.isShowGroupPage = false
         this.$store.state.bigScreen.currentProjectCode = value
       } else {
@@ -273,6 +274,9 @@ export default {
       target = target.prjList.find((i) => i.name == '宜昌水环境二期')
       this.onProjectSelect(target)
     },
+    async setCurrentPrj(id) {
+      await setProjectKey(id)
+    },
     async onProjectSelect(row) {
       // 这里设置当前项目
       setParams(row.gcfw)

+ 3 - 3
src/views/widgets/DisplayControlList/ThematicMap.vue

@@ -684,10 +684,10 @@ export default {
      * 获取当前统计数据情况
      */
     getCurrentInfo() {
-      let parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
+      let parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
       if (parentDom.length == 0) {
         $('#mainMapContainer').append("<div class='widget-displaycontrol-mapInfoLook'></div>")
-        parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
+        parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
       }
       this.otherDestroy()
       this.handler = new Cesium.ScreenSpaceEventHandler(window.viewer.canvas)
@@ -1162,7 +1162,7 @@ export default {
       if (Cesium.defined(this.customDataSourcePercentRoad)) {
         this.customDataSourcePercentRoad.entities.removeAll()
       }
-      let parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
+      let parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
       if (parentDom.length != 0) {
         parentDom.remove()
       }

+ 1 - 1
src/views/widgets/InfoSearch/index.vue

@@ -1161,7 +1161,7 @@ export default {
       if (Cesium.defined(this._customDataSource)) {
         this._customDataSource.entities.removeAll()
       }
-      let parentDom = $('#mainMapContainer .widget-infosearch-mapInfoLook')
+      let parentDom = $('.mainMapContainer .widget-infosearch-mapInfoLook')
       if (parentDom.hasClass('show')) {
         parentDom.removeClass('show')
       }

+ 2 - 2
src/views/widgets/PipeSpeedInfoCheck/index.vue

@@ -545,10 +545,10 @@ export default {
         "<div class='jl infoPar'><p><span class='dwmc'>(监理)</span><span class='sgsmNum'>中国市政华北有线责任公司</span></p><p><span class='tjinfo'>监理50米,扫码2个部件,扫码10次,上传20张图片</span></p></div>" +
         '</div>' +
         '</div>'
-      let parentDom = $('#mainMapContainer .widget-pipespeedinfocheck-mapInfoLook')
+      let parentDom = $('.mainMapContainer .widget-pipespeedinfocheck-mapInfoLook')
       if (parentDom.length == 0) {
         $('#mainMapContainer').append("<div class='widget-pipespeedinfocheck-mapInfoLook'></div>")
-        parentDom = $('#mainMapContainer .widget-pipespeedinfocheck-mapInfoLook')
+        parentDom = $('.mainMapContainer .widget-pipespeedinfocheck-mapInfoLook')
       }
       // if (this.AppX.runtimeConfig.autoRunAdaptor) {
       //   this.AppX.runtimeConfig.autoRunAdaptor.addOperateEvents(this.excavatename, this.otherDestroy.bind(this), this);