Browse Source

在处理工单时修改故障现象时需要根据权限展示故障现象

seimin 1 year ago
parent
commit
ef4166b1ec
1 changed files with 11 additions and 4 deletions
  1. 11 4
      src/views/processing.vue

+ 11 - 4
src/views/processing.vue

@@ -1420,11 +1420,18 @@ export default {
1420 1420
     getIncidentcategory() {
1421 1421
       this.loadShow = true;
1422 1422
       var that = this;
1423
+      let postData = {
1424
+        idx: 0,
1425
+        sum: 9999,
1426
+      };
1427
+      // 当前所属院区或责任科室
1428
+      if(this.loginUser.duty){
1429
+        postData.incidentcategory = { duty: this.loginUser.duty.id };
1430
+      }else if(this.loginUser.branch){
1431
+        postData.incidentcategory = { branch: this.loginUser.branch.id }
1432
+      }
1423 1433
       this.$http
1424
-        .post("service/bpm/data/fetchDataList/incidentcategory", {
1425
-          idx: 0,
1426
-          sum: 9999
1427
-        })
1434
+        .post("service/bpm/data/fetchDataList/incidentcategory", postData)
1428 1435
         .then(function(res) {
1429 1436
           that.initSjList = JSON.parse(JSON.stringify(res.data.list));
1430 1437
           var list = res.data.list;