zpf 1 rok temu
rodzic
commit
941079b5e7
2 zmienionych plików z 18 dodań i 3 usunięć
  1. 17 3
      src/views/cockpit/bjxm.vue
  2. 1 0
      src/views/viewer.vue

+ 17 - 3
src/views/cockpit/bjxm.vue

@@ -31,8 +31,12 @@
           <span>{{ left_value == 'csbj' ? sdata.sj_mj : sdata_szbj.sj_mj }}</span>平方千米
           <span>{{ left_value == 'csbj' ? sdata.sj_mj : sdata_szbj.sj_mj }}</span>平方千米
         </div>
         </div>
       </div>
       </div>
+      <div id="" v-show="xzqh_flag">
+        三亚
+      </div>
+      <div id="bjxm_echart" v-show="!xzqh_flag"></div>
+
 
 
-      <div id="bjxm_echart"></div>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>
@@ -54,6 +58,7 @@ export default {
       szbj_echart: null,
       szbj_echart: null,
       csbj_echart: null,
       csbj_echart: null,
       left_value: 'csbj',
       left_value: 'csbj',
+      xzqh_flag: true,
       options: [
       options: [
         { value: "csbj", label: "城市报建" },
         { value: "csbj", label: "城市报建" },
         { value: "szbj", label: "私宅报建" },
         { value: "szbj", label: "私宅报建" },
@@ -104,6 +109,15 @@ export default {
       let res_szbj = await QueryOne(obj_szbj);
       let res_szbj = await QueryOne(obj_szbj);
       this.sdata_szbj = res_szbj.data;
       this.sdata_szbj = res_szbj.data;
     },
     },
+    switch_xzqh(value) {
+      if (value.id == '4602') {
+        this.xzqh_flag = true
+
+      } else {
+        this.xzqh_flag = false
+      }
+
+    },
     async init_bjxm_echart_info(params) {
     async init_bjxm_echart_info(params) {
       const that = this;
       const that = this;
       let obj = {
       let obj = {
@@ -210,8 +224,8 @@ export default {
         },
         },
         grid: {
         grid: {
           top: '30%',
           top: '30%',
-          left: '3%',
-          right: '3%',
+          left: '6%',
+          right: '6%',
           bottom: '5%',
           bottom: '5%',
           containLabel: true,
           containLabel: true,
         },
         },

+ 1 - 0
src/views/viewer.vue

@@ -170,6 +170,7 @@ export default {
             // this.$refs.hysy_ref.init_echart_data(this.params);
             // this.$refs.hysy_ref.init_echart_data(this.params);
 
 
             // 报建项目
             // 报建项目
+            this.$refs.bjxm_ref.switch_xzqh(this.params);
             this.$refs.bjxm_ref.init_info(this.params);
             this.$refs.bjxm_ref.init_info(this.params);
             this.$refs.bjxm_ref.init_bjxm_echart_info(this.params);
             this.$refs.bjxm_ref.init_bjxm_echart_info(this.params);
             // 生态修复
             // 生态修复