소스 검색

更新管网路径配置与图层管理

彭宇 5 일 전
부모
커밋
7e6c54f1c9
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 3
      src/components/supermap-2.5d.vue
  2. 3 2
      src/views/useCenter.vue

+ 0 - 3
src/components/supermap-2.5d.vue

@@ -476,9 +476,6 @@ export default {
               url:  urlList[1],
               mapObj: obj
             })
-          }else{
-            this.viewer.imageryLayers.remove(this.selectMapObj_2D(urlList[1]));
-          }
           checkedCities_2D.push(urlList[1])
         }
       });

+ 3 - 2
src/views/useCenter.vue

@@ -4,12 +4,12 @@
     <!--主体-->
     <div class="con_left">
       <div style="color: #FFF;display: flex;justify-content: space-between">
-        <div class="left-top-botton " :class="index === botIndex ? 'active':''" v-for="(item,index) in enterpriseList"
+        <div class="left-top-botton " :class="item.id === botIndex ? 'active':''" v-for="(item,index) in enterpriseList"
              @click="getCommunityByDeptId(item.id)">{{ item.name }}
         </div>
       </div>
       <el-input
-        placeholder="请输入用户姓名"
+        placeholder="请输入小区名称"
         suffix-icon="el-icon-search"
         v-model="input1">
       </el-input>
@@ -163,6 +163,7 @@ export default {
   methods: {
     getCommunityByDeptId(id){
       getCommunityByDeptId(id).then(req => {
+        this.botIndex=id
         this.communityList = req.data;
       })
     },