瀏覽代碼

样式修改 + 默认选中楼层

xiebeibei 4 年之前
父節點
當前提交
79fc515419

+ 2 - 2
src/components/edit/attr_select.vue

@@ -256,7 +256,7 @@
         <a-button type="link" class="edit-option-btn" @click="handleEdit">选择编辑</a-button>
       </div>
 
-        <div class="grid-content">
+        <div class="grid-content" style="margin-top: 12px;">
           <a-card class="attr-card" v-for="(item,index) in attrCards" :key="index">{{item.sbjc ||item.wzjc}}</a-card>
         </div>
       </a-spin>
@@ -628,7 +628,7 @@ export default {
   }
 
   .grid-content {
-     margin-top: 12px;
+     /*margin-top: 12px;*/
     position: relative;
   }
 

+ 5 - 0
src/components/edit/edit-dialog.vue

@@ -243,6 +243,9 @@
             },
           //获取表格数据
           queryGlsmsasset(){
+              if(!this.classstructureid && !this.locfl){
+                return
+              }
             const data = {
               plazaId: getUrlMsg().projectId,//广场id 必填
               page: this.page,//页数
@@ -356,6 +359,7 @@
                 const data = res.data;
                 data.map(item=>{
                   item.id = item.gname;
+                  item.name = item.code;
                 })
                 this.dataFloor  = data;
               }
@@ -450,6 +454,7 @@
           }
         },
         created() {
+          this.floorId = getUrlMsg().FloorID;
           if(this.attrCards.length){
             this.attrCards.map(item=>{
               this.selectedRowKeys.push(item.location||item.assetnum)

+ 3 - 0
src/components/edit/leftbar_components/itemTree.vue

@@ -163,6 +163,9 @@ export default {
   .tree-body {
     height: 420px;
     overflow-y: auto;
+    /deep/ .p-tree-node-content{
+      padding-left: 0 !important;
+    }
   }
 }
 </style>