Bläddra i källkod

支持跳转任务详情

wangcahngsheng 11 månader sedan
förälder
incheckning
5557f7eafb
1 ändrade filer med 15 tillägg och 2 borttagningar
  1. 15 2
      src/components/taskCenter/taskCenterPage.vue

+ 15 - 2
src/components/taskCenter/taskCenterPage.vue

@@ -101,8 +101,15 @@
                 innerWidth: window.innerWidth,
             }
         },
-        created() {
-            this.getEvaluationData()
+        mounted() {
+            if (this.$route?.query?.iamCode && this.$route?.query?.iamAccessToken) {
+                console.log('有iamCode===>>>', this.$route)
+                window.localStorage.setItem('token', this.$route.query.iamAccessToken)
+                window.localStorage.setItem('code', this.$route.query.iamCode)
+                this.iamTaskProcess(this.$route.query)
+            } else {
+                this.getEvaluationData()
+            }
         },
         methods: {
             // 查询指标数据
@@ -133,6 +140,12 @@
                 this.iframeURL = url + '/agilebpm-ui/bpm/instance/instanceImageDialog.html?instanceId=' + row.instId +
                     '&defId=' + row.defId + '&taskId=' + row.taskId + '&iamCode=' + window.localStorage.getItem('code')
             },
+            iamTaskProcess(query) {
+                let obj = {
+                    instId: query.taskInfo
+                }
+                this.taskProcess(obj)
+            },
             taskProcess(row) {
                 let that = this
                 let params = {