tudc пре 3 година
родитељ
комит
2a21ab766a
2 измењених фајлова са 18 додато и 5 уклоњено
  1. 13 0
      front-vue/src/router/index.js
  2. 5 5
      front-vue/src/views/approval/approval/deal.vue

+ 13 - 0
front-vue/src/router/index.js

@@ -412,6 +412,19 @@ export const constantRoutes = [
       },
     ]
   },
+  {
+    path: '/approval',
+    component: Layout,
+    hidden: true,
+    children: [
+      {
+        path: 'deal',
+        component: (resolve) => require(['@/views/approval/approval/deal'], resolve),
+        name: 'openDeal',
+        meta: { title: '审批',noCache: true }
+      },
+    ]
+  },
   //核心企业融信开立审批专用
   {
     path: '/credit/approvalCreditDetail/:zfiId',

+ 5 - 5
front-vue/src/views/approval/approval/deal.vue

@@ -17,11 +17,11 @@ export default {
         };
     },
     created() {
-        const processId = this.$route.params && this.$route.params.processId;
-        const nodeId = this.$route.params && this.$route.params.nodeId;
-        const taskId = this.$route.params && this.$route.params.taskId;
-        const instId = this.$route.params && this.$route.params.instId;
-        this.wordUrl = window.location.protocol+'//'+window.location.host+'/flowablePc/#/openDeal?instId='+ instId + '&processId=' + processId + '&nodeId=' + nodeId + '&taskId=' + taskId + '&token=' + getToken();
+        const processId = this.$route.query && this.$route.query.processId;
+        const nodeId = this.$route.query && this.$route.query.nodeId;
+        const taskId = this.$route.query && this.$route.query.taskId;
+        const instId = this.$route.query && this.$route.query.instId;
+        this.wordUrl = window.location.protocol+'//'+window.location.host+':8080/flowablePc/#/openDeal?instId='+ instId + '&processId=' + processId + '&nodeId=' + nodeId + '&taskId=' + taskId + '&token=' + getToken();
         // this.wordUrl = 'http://localhost:8080/flowablePc/#/openDeal?instId='+ instId + '&processId=' + processId + '&nodeId=' + nodeId + '&taskId=' + taskId + '&token' + getToken();
         this.iframeShow = true
     },