Pārlūkot izejas kodu

监听过滤接收人

daiqisheng 3 gadi atpakaļ
vecāks
revīzija
2470358032
1 mainītis faili ar 13 papildinājumiem un 7 dzēšanām
  1. 13 7
      src/pages/main/performance/department.vue

+ 13 - 7
src/pages/main/performance/department.vue

@@ -477,7 +477,6 @@ export default {
           label: "接受人",
           props: "receiverName",
           type: "click",
-          variable:false
         },
         {
           label: "状态",
@@ -488,12 +487,19 @@ export default {
       ],
     };
   },
+  watch:{
+    duty(){
+      if(this.duty==='9'){
+        this.table_config = this.table_config.filter(el=>el.props!=='receiverName')
+      }
+    }
+  },
   mounted() {
-    this.handleInit({
-      ...this.table_search,
-      page: this.page,
-      pageSize: this.rows,
-    });
+    // this.handleInit({
+    //   ...this.table_search,
+    //   page: this.page,
+    //   pageSize: this.rows,
+    // });
     // 职位
     this.duty = JSON.parse(sessionStorage.userInfo).duty;
     // 根据职位判定  科室经理7、分管副总 2 、总经理 1 、职员 9
@@ -822,7 +828,7 @@ export default {
           } else if (this.duty === "1") {
             reqdata.reviewType = 2;
           }
-          console.log(reqdata,'reqdata')
+          console.log(reqdata, "reqdata");
           request = 1;
           break;
         case "agree":