Przeglądaj źródła

事件详情落点,可隐藏

彭宇 2 lat temu
rodzic
commit
e657a732ee
2 zmienionych plików z 12 dodań i 12 usunięć
  1. 5 5
      src/components/supermap.vue
  2. 7 7
      src/views/eventdetailsdialog.vue

+ 5 - 5
src/components/supermap.vue

@@ -277,16 +277,16 @@ export default {
     clearMByType: async function(type) { //清理地图标点(根据类型,可取消落点)
       if (this.myGroupBytype != undefined && this.myGroupBytype != false) {
         for (var i = this.myGroupBytype.length - 1; i >= 0; i--) {
-          if(this.myGroupBytype[i].type==type){
+          if (this.myGroupBytype[i].type == type) {
             this.myGroupBytype[i].myGroup.clearLayers()
-            this.myGroupBytype.splice(i,1)
+            this.myGroupBytype.splice(i, 1)
           }
         }
       }
-      if(this.layersBytype!=null&&this.layersBytype.length>0){
+      if (this.layersBytype != null && this.layersBytype.length > 0) {
         for (var i = this.layersBytype.length - 1; i >= 0; i--) {
-          if(this.layersBytype[i].type==type){
-            this.layersBytype.splice(i,1)
+          if (this.layersBytype[i].type == type) {
+            this.layersBytype.splice(i, 1)
           }
         }
       }

+ 7 - 7
src/views/eventdetailsdialog.vue

@@ -98,7 +98,7 @@
                                                 v-for="(itemfile,index1) in item.fileVOs">
                                       </el-image>
                                       <br>
-                                      <el-link :href="itemfile.fileUrl"  :underline="false" target="_blank"
+                                      <el-link :href="itemfile.fileUrl" :underline="false" target="_blank"
                                                v-for="(itemfile,index1) in item.fileVOs"
                                                v-if="!isAssetTypeAnImage(itemfile.fileUrl)">
                                         <span class="el-icon-document"> {{ itemfile.fileName }} </span>
@@ -1029,7 +1029,7 @@ export default {
           icon: 'camera'
         }
       ],
-      resourcesListCheck:[],
+      resourcesListCheck: [],
       //文本域
       feedback: ''
 
@@ -1061,12 +1061,12 @@ export default {
       })
     },
     listResourceByWz(type) {
-      if(this.resourcesListCheck.indexOf(type)>-1){
-        this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type),1)
+      if (this.resourcesListCheck.indexOf(type) > -1) {
+        this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
         setTimeout(() => {
           this.$refs.supermapDialog.clearMByType(type)
         }, 1000)
-      }else{
+      } else {
         this.resourcesListCheck.push(type)
         //搜索物资
         let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
@@ -1118,7 +1118,7 @@ export default {
               markersList.push(markersMap)
             }
             setTimeout(() => {
-              this.$refs.supermapDialog.setMarkersByType(markersList,type)
+              this.$refs.supermapDialog.setMarkersByType(markersList, type)
             }, 1000)
           }
         })
@@ -1182,7 +1182,7 @@ export default {
       this.deptOptionsLiandong = []//联动部门
       this.eventStatusButton = null//流程按钮标识
       this.eventConfirmTitle = null//流程按钮标识
-      this.resourcesListCheck=[]
+      this.resourcesListCheck = []
     },
     cancelEventConfirm_send() {
       //清空表单数据