Bladeren bron

添加批量关联资产按钮

zhangyu 5 jaren geleden
bovenliggende
commit
7e2acd5911
2 gewijzigde bestanden met toevoegingen van 15 en 3 verwijderingen
  1. 3 3
      src/components/ledger/handsontables/device.vue
  2. 12 0
      src/views/ledger/facility/index.vue

+ 3 - 3
src/components/ledger/handsontables/device.vue

@@ -14,9 +14,9 @@
         <el-option v-for="item in showTypes" :key="item.value" :label="item.label" :value="item.value"></el-option>
       </el-select>
       <!-- <el-button size="small" style='width: 80px;' @click="download" icon="iconfont icon-xiazai">下载</el-button> -->
-      <el-button size="small" style='width: 80px;' @click="addDevice" icon="iconfont icon-tianjia">添加设备</el-button>
-      <el-button size="small" style='width: 80px;' @click="reset" icon="iconfont icon-shuaxin">刷新</el-button>
-      <el-button size="small" style='width: 80px;' v-show="!onlyRead" @click="undo" icon="iconfont icon-undo">撤销</el-button>
+      <el-button size="small" style='width: 80px;' @click="addDevice">添加设备</el-button>
+      <el-button size="small" style='width: 80px;' @click="reset">刷新</el-button>
+      <el-button size="small" style='width: 80px;' v-show="!onlyRead" @click="undo">撤销</el-button>
     </div>
     <!-- 二维码弹窗 -->
     <qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>

+ 12 - 0
src/views/ledger/facility/index.vue

@@ -7,6 +7,7 @@
       <div class="search-header">
         <floor-cascader @change="changeFloor"></floor-cascader>
         <my-cascader ref="cascader" @change="changeDevice"></my-cascader>
+        <el-button size="small" @click="handleLinkAssets" class="iconfont icon-batchassociation">批量关联资产</el-button>
       </div>
       <hanson-table @close="close" :graphyId="graphyId" ref="tableMain"></hanson-table>
     </div>
@@ -169,6 +170,10 @@ export default {
         if (this.$refs.tableMain)
           this.$refs.tableMain.getHeaderData(this.param);
       }
+    },
+    // 批量关联资产
+    handleLinkAssets() {
+      this.$message('添加弹窗')
     }
   }
 };
@@ -194,6 +199,13 @@ export default {
     padding-bottom: 10px;
     margin: 0 10px;
     border-bottom: 1px solid #bcbcbc;
+    .icon-batchassociation{
+      float: right;
+      font-size: 12px;
+      /deep/ span{
+        margin-left: 5px;
+      }
+    }
   }
 }
 </style>