Browse Source

驾驶舱界面鼠标选择行政区的时候,在每个模块上添加行政区的名字

maxiaoxiao 1 year ago
parent
commit
b865eebc7c
4 changed files with 5 additions and 5 deletions
  1. 1 1
      src/store/store.js
  2. 2 2
      src/views/cockpit/common/Title.vue
  3. 1 1
      src/views/cockpit/tdsy.vue
  4. 1 1
      src/views/viewer.vue

+ 1 - 1
src/store/store.js

@@ -40,7 +40,7 @@ var store2 = {
         sceneLayerlist: [],
         flattenNames: [],//存储压平的名称数组
         cockpit_date: null,
-        cockpit_region: {id:'4602'},//行政区划
+        cockpit_region: {id:'4602',name :'三亚'},//行政区划
         viewer_flag: true,
         xzqh_flag: true,
         query_pick_pane: [],

+ 2 - 2
src/views/cockpit/common/Title.vue

@@ -2,8 +2,8 @@
     <div class="title">
         <div class="icon"></div>
         <span>{{ title }}</span>
-        <span class="region" v-if="title != '空间规划指标'">
-           {{ store.state.cockpit_region.name }}
+        <span class="region" >
+            {{ title == "空间规划指标" ? "三亚" : store.state.cockpit_region.name }}
         </span>
     </div>
 </template>

+ 1 - 1
src/views/cockpit/tdsy.vue

@@ -1232,7 +1232,7 @@ export default {
     /* position: absolute; */
     /* left: 0px; */
     /* top: 0px; */
-    width: 28rem;
+    width: 100%;
     height: 14.5rem;
     background: inherit;
     border: none;

+ 1 - 1
src/views/viewer.vue

@@ -273,7 +273,7 @@ export default {
 
                         that.params.id = '4602'
                         that.setDatas()
-                        store.setCockpitRegion({ id: '4602' })
+                        store.setCockpitRegion({ id: '4602',name:'三亚' })
 
                     }
                 }