Browse Source

fix:防火分区bug

YaolongHan 4 năm trước cách đây
mục cha
commit
55d4f692a9
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      src/components/edit/attr_select.vue

+ 5 - 3
src/components/edit/attr_select.vue

@@ -243,7 +243,7 @@
 
     <div
       class="attr-select attr-select-bottom"
-      v-if="type =='Zone' || type =='Image' ||type == 'fire-Zone' ||type == 'Line'"
+      v-if="type =='Zone' || type =='Image'||type == 'Line'"
     >
       <a-spin :spinning="spinning">
       <div class="row">
@@ -475,11 +475,13 @@ export default {
   },
   watch: {
     focusItemList: function(newval) {
-      console.log(newval);
       const Item = newval.itemList[0];
       if (Item.data && Item.data.SubType) {
         this.SubType = Item.data.SubType;
+      }else{
+         this.SubType = '';
       }
+       console.log('this.SubType',this.SubType);
       if (newval.itemList.length == 1) {
         if (newval.itemType == "baseText") {
           this.textMsg = Item.text;
@@ -512,7 +514,7 @@ export default {
           }
         }
       }
-      let  location =[];
+      const  location =[];
       Item.data.AttachObjectIds.map(item=>{
         location.push(item.id)
       })