Ver código fonte

修改业务空间 表号功能号只读模式未展示数据问题

haojianlong 5 anos atrás
pai
commit
092cd7729b

+ 6 - 0
src/components/business_space/business/handsontable.vue

@@ -162,6 +162,9 @@ export default {
         });
         if (this.main && this.main.length && this.main[0].RoomID) {
           this.copyMain = tools.deepCopy(this.main);
+          if (this.onlyRead) {
+            this.getBatch(this.main)
+          }
         }
         this.isLoading = false
         this.getMain()
@@ -481,6 +484,9 @@ export default {
       });
       if (param.data.criterias.length) {
         BeatchQueryParam(param, res => {
+          if (!this.onlyRead) {
+            return false
+          }
           this.main = data.map(item => {
             res.Content.map(child => {
               if (item.RoomID == child.id) {