Explorar el Código

支持跳转任务详情

wangcahngsheng hace 11 meses
padre
commit
5557f7eafb
Se han modificado 1 ficheros con 15 adiciones y 2 borrados
  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 = {