소스 검색

Merge branch 'dev_info' into test-new

daiqisheng 3 년 전
부모
커밋
80d63e2a63
1개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. 10 5
      src/pages/main/performance/components/sheet.vue

+ 10 - 5
src/pages/main/performance/components/sheet.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors: daiqisheng
- * @LastEditTime: 2022-02-14 17:17:57
+ * @LastEditTime: 2022-02-15 15:59:58
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 <template>
@@ -275,6 +275,7 @@ export default {
           },
         ],
       },
+
       // 可提交标志
       addFlag: "0",
       rowList: [],
@@ -316,7 +317,8 @@ export default {
         this.type === "edit";
       let editable =
         this.row_list.includes(row) && this.column_list.includes(column);
-      let totalBoolean = (public_permisson || editable) && this.id;
+      // let totalBoolean = (public_permisson || editable) && this.id;
+      let totalBoolean = public_permisson || editable;
       return totalBoolean;
     },
     async handleQuery() {
@@ -501,9 +503,12 @@ export default {
             }
           },
           updated: function ({ range }) {
-            const { row } = range[0];
-            console.log(`第${row[0]}行被更新了`);
-            that.rowList.push(row[0]);
+            const middle = range.map((el) => {
+              return that.paramsArr(el.row[0], el.row[1]);
+            });
+            let changedList = middle.join(",").split(",");
+            that.rowList.push(...changedList);
+            console.log(that.rowList,'that.rowList');
           },
         },
       };