daiqisheng 3 vuotta sitten
vanhempi
commit
175181522b
1 muutettua tiedostoa jossa 4 lisäystä ja 6 poistoa
  1. 4 6
      src/pages/main/performance/components/sheet.vue

+ 4 - 6
src/pages/main/performance/components/sheet.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors: Please set LastEditors
- * @LastEditTime: 2022-02-10 18:12:52
+ * @LastEditTime: 2022-02-10 19:30:09
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 <template>
@@ -310,11 +310,9 @@ export default {
     //     console.log(e,'e');
     // },
     handleAllow({ row, column }) {
-      let public_permisson = !this.form.permission_type && this.type === "edit";
-      let editable =
-        this.row_list.includes(row) && this.column_list.includes(column);
-      let isId = !this.id;
-      let totalBoolean = (public_permisson || editable) && !isId;
+      let public_permisson = (!this.form.permission_type||this.status==='2') && this.type === "edit";
+      let editable = this.row_list.includes(row) && this.column_list.includes(column);
+      let totalBoolean = (public_permisson || editable) && this.id;
       return totalBoolean;
     },
     async handleQuery() {