Hwt 2 rokov pred
rodič
commit
726c57421f

+ 1 - 1
operationSupport/src/views/workOrders/index.vue

@@ -234,7 +234,7 @@ export default {
         .catch(function () { });
     },
     getUserList () {
-      this.$http.get('/czc-user-center/user/findUserList', { companyOrgId: this.companyOrgId, userType: 3 }).then(({ data, status, msg }) => {
+      this.$http.get('/czc-user-center/user/findUserListByNoAccess', { companyOrgId: this.companyOrgId, userType: 3 }).then(({ data, status, msg }) => {
         this.findUser = data;
       });
     },

+ 11 - 10
operationSupport/src/views/workOrders/popups/closeTsk.vue

@@ -31,7 +31,7 @@
 
           <el-form-item
             label="审核"
-            v-if="this.params.closeAudit"
+            v-if="this.params.closeAudit && (this.dataJurisdiction == '1' ? true : false)"
           >
             <!-- this.params.row.auditStatus -->
             <el-radio-group v-model="form.resource">
@@ -78,7 +78,7 @@ export default {
         auditStatus: '',
         resource: '1'
       },
-      // dataJurisdiction: '',//是否含有审核权限
+      dataJurisdiction: '',//是否含有审核权限
     };
   },
 
@@ -122,13 +122,14 @@ export default {
       }
     },
     // /czc-community/workOrder/checkAudit
-    // checkAudit () {
-    //   this.$http.postForm('/czc-community/workOrder/checkAudit', { orderId: Number(this.params.row.id) }).then(({ data, status, msg }) => {
-    //     if (status == 0) {
-    //       this.dataJurisdiction = data;
-    //     }
-    //   })
-    // }
+    checkAudit () {
+      this.$http.postForm('/czc-community/workOrder/checkAudit', { orderId: Number(this.params.row.id) }).then(({ data, status, msg }) => {
+        if (status == 0) {
+          debugger
+          this.dataJurisdiction = data;
+        }
+      })
+    }
   },
   created () {
     // this.formData.orderId = JSON.parse(JSON.stringify(this.params.data)).id;
@@ -141,7 +142,7 @@ export default {
       this.form.resource = '0';
     }
     if (this.params.row.auditStatus != null) {
-      // this.checkAudit();
+      this.checkAudit();
     }
 
   }