فهرست منبع

事件详情测量工具

彭宇 2 سال پیش
والد
کامیت
dc61a1970a
2فایلهای تغییر یافته به همراه43 افزوده شده و 21 حذف شده
  1. 20 9
      src/views/event.vue
  2. 23 12
      src/views/forest.vue

+ 20 - 9
src/views/event.vue

@@ -241,9 +241,7 @@
           <el-tab-pane label="地理位置" name="point">
 			  <div class="info-button-group">
 			  	<button>视频联动</button>
-			  	<button>矢量标记</button>
-			  	<button>测面</button>
-			  	<button>测距</button>
+          <button @click="editableLayers('supermapNotProcessed')">测量工具</button>
 			  </div>
 			    <supermapNotProcessed ref="supermapNotProcessed" v-if="'point' === activeName"  style="width:100% ;height: 75vh;"   :mapDiv="'supermapNotProcessedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapNotProcessed>
           </el-tab-pane>
@@ -381,9 +379,7 @@
           <el-tab-pane label="地理位置" name="point">
 						<div class="info-button-group">
 							<button>视频联动</button>
-							<button>矢量标记</button>
-							<button>测面</button>
-							<button>测距</button>
+              <button @click="editableLayers('supermapProcessed')">测量工具</button>
 						</div>
 						<supermapProcessed v-if="'point' === activeName" ref="supermapProcessed"  style="width:100% ;height: 75vh;" :mapDiv="'supermapProcessedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapProcessed>
           </el-tab-pane>
@@ -628,6 +624,23 @@
         }
       },
       /** ----------------------------------事件弹窗开始-未处理------------------------------------- */
+      editableLayers(processedState){
+        if(processedState=='supermapNotProcessed'){
+          let aa = this.$refs.supermapNotProcessed.isEditableLayers;
+          if (!this.$refs.supermapNotProcessed.isEditableLayers) {
+            this.$refs.supermapNotProcessed.isEditableLayers = true
+          } else {
+            this.$refs.supermapNotProcessed.isEditableLayers = false
+          }
+        }else{
+          let bb = this.$refs.supermapProcessed.isEditableLayers ;
+          if (!this.$refs.supermapProcessed.isEditableLayers) {
+            this.$refs.supermapProcessed.isEditableLayers = true
+          } else {
+            this.$refs.supermapProcessed.isEditableLayers = false
+          }
+        }
+      },
       switchImage(url) {
         this.url = url
       },
@@ -838,8 +851,6 @@
         this.deptName = ''
         this.eventStatus = ''
       },
-  /** ----------------------------------事件弹窗结束-未处理------------------------------------- */
-      /** ----------------------------------事件弹窗开始-处理中------------------------------------- */
       handleClickProcessed(tab, event) {
         let that=this
         if(tab.name == 'frame'){
@@ -977,7 +988,7 @@
         }
       })
       },
-      /** ----------------------------------事件弹窗结束-处理中------------------------------------- */
+      /** ----------------------------------事件弹窗结束------------------------------------- */
       getTodayEvent() {
         let that = this
         //获取左侧菜单列表

+ 23 - 12
src/views/forest.vue

@@ -293,12 +293,10 @@
           <el-tab-pane label="实时画面" name="frame">
           </el-tab-pane>
           <el-tab-pane label="地理位置" name="point" style="height:75vh;">
-			<div class="info-button-group">
-				<button>视频联动</button>
-				<button>矢量标记</button>
-				<button>测面</button>
-				<button>测距</button>
-			</div>
+          <div class="info-button-group">
+            <button>视频联动</button>
+            <button @click="editableLayers('supermapNotProcessed')">测量工具</button>
+          </div>
 			<supermapNotProcessed ref="supermapNotProcessed" v-if="'point' === activeName" style="width:100% ;height: 75vh;" :mapDiv="'forestWarmSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapNotProcessed>
           </el-tab-pane>
           <!-- <supermapNotProcessed ref="supermapNotProcessed"  style="width: 1000px;height: 1000px;" :mapDiv="'forestWarmSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapNotProcessed> -->
@@ -436,9 +434,7 @@
           <el-tab-pane label="地理位置" name="point">
 			  <div class="info-button-group">
 			  	<button>视频联动</button>
-			  	<button>矢量标记</button>
-			  	<button>测面</button>
-			  	<button>测距</button>
+          <button @click="editableLayers('supermapProcessed')">测量工具</button>
 			  </div>
 			   <supermapProcessed ref="supermapProcessed"  v-if="'point' === activeName"  style="width:100% ;height: 75vh" :mapDiv="'supermapProcessedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapProcessed>
           </el-tab-pane>
@@ -904,6 +900,23 @@
 				}
 			},
       /** ----------------------------------事件弹窗开始------------------------------------- */
+      editableLayers(processedState){
+        if(processedState=='supermapNotProcessed'){
+          let aa = this.$refs.supermapNotProcessed.isEditableLayers;
+          if (!this.$refs.supermapNotProcessed.isEditableLayers) {
+            this.$refs.supermapNotProcessed.isEditableLayers = true
+          } else {
+            this.$refs.supermapNotProcessed.isEditableLayers = false
+          }
+        }else{
+          let bb = this.$refs.supermapProcessed.isEditableLayers ;
+          if (!this.$refs.supermapProcessed.isEditableLayers) {
+            this.$refs.supermapProcessed.isEditableLayers = true
+          } else {
+            this.$refs.supermapProcessed.isEditableLayers = false
+          }
+        }
+      },
       switchImage(url) {
         this.url = url
       },
@@ -1093,8 +1106,6 @@
         this.deptName = ''
         this.eventStatus = ''
       },
-      /** ----------------------------------事件弹窗结束------------------------------------- */
-      /** ----------------------------------事件弹窗开始-处理中------------------------------------- */
       updateEventStatusProcessed() {
         if(this.eventStatus==''){
           this.$modal.msgError("请选择状态");
@@ -1242,7 +1253,7 @@
           }
         })
       },
-      /** ----------------------------------事件弹窗结束-处理中------------------------------------- */
+      /** ----------------------------------事件弹窗结束------------------------------------- */
       getBaseInfo() {
         let that = this
         that.sourceData = [];