소스 검색

审核分页模块

ymz 4 달 전
부모
커밋
b4ca1b6593
3개의 변경된 파일40개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 2
      .env.development
  2. BIN
      dist.zip
  3. 38 3
      src/views/serviceManagement/servicesToBeReviewed/index.vue

+ 2 - 2
.env.development

@@ -1,8 +1,8 @@
 NODE_ENV = 'development'
 VUE_APP_TYPE= 'dev'
-# VUE_APP_URL = 'http://10.144.62.235:9999'
+VUE_APP_URL = 'http://10.144.62.235:9999'
 # VUE_APP_URL = 'https://mic.freerr.cn'
 # VUE_APP_URL = 'https://mic.cnbg.com.cn'
 # VUE_APP_URL = 'https://cnbg.yaoyi.net'
 # VUE_APP_URL = 'http://192.168.110.25:9999'
-VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
+# VUE_APP_URL = 'https://mic-t.cnbg.com.cn'

BIN
dist.zip


+ 38 - 3
src/views/serviceManagement/servicesToBeReviewed/index.vue

@@ -301,7 +301,8 @@ export default {
       expireTime: '',
       pretreatmentInfo: {},
       lockedInfo: [],
-      lockedDialog: false
+      lockedDialog: false,
+      checkNodeId: ''
     };
   },
   computed: {
@@ -309,6 +310,39 @@ export default {
   },
   created() {
     this.getDict();
+
+    let nodeId = '';
+    const roles = this.userInfo.roles;
+
+    switch (true) {
+      // 43	地市管理员
+      case roles.includes(43):
+        nodeId = 2;
+        break;
+      // 4	区域管理员
+      case roles.includes(4):
+        nodeId = 3;
+        break;
+      // 42	市场管理员
+      case roles.includes(42):
+        nodeId = 8;
+        break;
+      // 40	商务管理员
+      case roles.includes(40):
+        nodeId = 9;
+        break;
+      // 39	事业部总经理
+      case roles.includes(39):
+        nodeId = 6;
+        break;
+      // 41	事业部分管领导
+      case roles.includes(41):
+        nodeId = 5;
+        break;
+      default:
+        nodeId = 1;
+    }
+    this.checkNodeId = nodeId;
   },
   mounted() {
     const roles = this.userInfo.roles;
@@ -530,7 +564,7 @@ export default {
       this.singleFlag = false;
     },
     async getPretreatment() {
-      const res = await getPretreatmentApi({ taskIds: this.checkIds });
+      const res = await getPretreatmentApi({ taskIds: this.checkIds, nodeId: this.checkNodeId });
       if (res.data.code === 0) {
         this.pretreatmentInfo = res.data.data;
         this.lockedInfo = res.data.data.locked;
@@ -553,7 +587,8 @@ export default {
       if (this.pretreatmentInfo?.token?.token) {
         const obj = {
           taskIds: taskIds,
-          token: this.pretreatmentInfo.token.token
+          token: this.pretreatmentInfo.token.token,
+          nodeId: this.checkNodeId
         };
         await pretreatmentClearApi(obj);
       }