Browse Source

设备台账批量维护信息点按钮显示规则修改

zhangyu 5 years ago
parent
commit
203c8b692f
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/components/ledger/handsontables/device.vue

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

@@ -15,8 +15,8 @@
       </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">添加设备</el-button>
-        <el-button size="small" @click="Batch" :disabled="batchDate">批量维护信息点</el-button>
-        <el-button size="small" style='width: 80px;' @click="reset">刷新</el-button>
+      <el-button size="small" @click="Batch" v-show="!onlyRead" :disabled="!(tableData && tableData.length)">批量维护信息点</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>
     <!-- 二维码弹窗 -->
@@ -206,10 +206,10 @@ export default {
                 [{value: "Visible", label: '只看采集信息'}, {value: "all", label: '全部'}] :
                 [{value: "partInfo", label: '隐藏信息点'}, {value: "all", label: '全部'}, {value: "Visible", label: '只看采集信息'}]
         },
-        batchDate() {
-            // return !(!this.onlyRead && this.copyMain)
-            return !(!this.onlyRead && this.page.total > 1)
-        },
+        // batchDate() {
+        //     // return !(!this.onlyRead && this.copyMain)
+        //     return !(!this.onlyRead && this.page.total > 1)
+        // },
         batchDialogShow() {
             return this.$refs.batchDialogs.batchDialog
         }