xieqy vor 3 Jahren
Ursprung
Commit
6eb1f3e6f9

Datei-Diff unterdrückt, da er zu groß ist
+ 184 - 184
package-lock.json


+ 0 - 1
src/store/modules/bigScreen.ts

@@ -3,7 +3,6 @@ import { appconfig } from '@/config/bigScreenConfig'
 import { GetUserInitData } from '@/api/APIs'
 const getDefaultState = () => {
   return {
-    view: null,
     //地图配置信息
     tdttoken: '75293e320524bb2be0a5f14fa887e46f',
     mapConfig: null,

+ 1 - 0
src/views/groupPage/districtPageModules/customTools/projectPipeSpeedInfoCheck.vue

@@ -676,6 +676,7 @@ export default class ProjectPipeSpeedInfoCheck extends Vue {
     if (!records || records.length === 0) return
     // if (!gPrimitiveCollection) return
     // const primtCol = gPrimitiveCollection
+    this.pointArrCluster = []
     records.forEach((record) => {
       if (record.features.length == 0) return false
       record.features.forEach((feature) => {

+ 29 - 2
src/views/groupPage/districtPageModules/statisticalAnalysis/ThemeSwitch.vue

@@ -14,7 +14,13 @@
             </div>
           </div>
           <div class="sub-list" v-if="currentActive == item.name">
-            <div class="sub-item" v-for="sub of subList" :key="sub" @click="activeChildren(sub)">
+            <div
+              class="sub-item"
+              v-for="sub of subList"
+              :key="sub"
+              :class="{ 'sub-active': childrenActive == sub }"
+              @click="activeChildren(sub)"
+            >
               {{ sub }}
             </div>
           </div>
@@ -26,6 +32,7 @@
 
 <script lang="ts">
 import { Vue, Component, Prop, Watch } from 'vue-property-decorator'
+import ProjectPipeSpeedInfoCheck from '@/views/groupPage/districtPageModules/customTools/projectPipeSpeedInfoCheck.vue'
 //统计分析专题切换
 @Component({ name: 'specialSwitch' })
 export default class specialSwitch extends Vue {
@@ -36,22 +43,32 @@ export default class specialSwitch extends Vue {
   ]
   subList: Array<any> = ['进度专题', '进度模拟', '管道开挖']
   childrenActive = null
+  prjPSICInstance = null
   get currentActive() {
     return this.$store.state.bigScreen.currentStatisticalActive
   }
   created() {
     this.$store.state.bigScreen.currentStatisticalActive = 'progress'
+    this.initPrjPSIC()
+  }
+  initPrjPSIC() {
+    const prjPSICConstructor = Vue.extend(ProjectPipeSpeedInfoCheck)
+    this.prjPSICInstance = new prjPSICConstructor({
+      store: this.$store
+    }).$mount()
   }
   active(name) {
     this.$store.state.bigScreen.currentStatisticalActive = name
     this.subList = name == 'progress' ? ['进度专题', '进度模拟', '管道开挖'] : []
     this.childrenActive = null
+    this.clear()
   }
   activeChildren(item) {
     this.childrenActive = item
+    this.clear()
     switch (item) {
       case '进度专题':
-        this.$store.state.bigScreen.isShowPipeSpeedInfoCheck = true
+        this.prjPSICInstance.initScanTimes()
         break
       case '进度模拟':
         this.$store.state.bigScreen.isShowPipeSpeedInfoCheck = true
@@ -61,6 +78,16 @@ export default class specialSwitch extends Vue {
         break
     }
   }
+  clear() {
+    //清除进度专题页面
+    this.$store.state.bigScreen.isShowPipeSpeedInfoCheck = false
+    this.prjPSICInstance.clearSpeedInfos()
+    //清除管道开挖页面
+    this.$store.state.bigScreen.isShowExcavationAnalysis = false
+  }
+  beforeDestroy() {
+    this.clear()
+  }
 }
 </script>
 

+ 1 - 1
src/views/groupPage/districtPageModules/statisticalAnalysis/progressModule/StatisticalProgress.vue

@@ -60,7 +60,7 @@
               <div class="BDC-item"><ComProgressBarChart :title="'雨水管网'" /></div>
               <div class="BDC-item"><ComProgressBarChart :title="'污水管网'" /></div>
               <div class="BDC-item"><ComProgressBarChart :title="'雨水检查井'" /></div>
-              <div class="BDC-item"><ComProgressBarChart :title="'污水检查井'" /></div>
+              <div class="BDC-item"><ComProgressBarChart :title="'污水检查井'" /></div>
             </div>
           </div>
           <!---->