seatonwan9
2025-08-24 2c55b1a8a0700df79268550335506637b41610ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: wuyun
 * @Date: 2024-07-02 14:18:34
 * @LastEditors: wuyun
 * @LastEditTime: 2024-08-22 14:19:40
-->
<template>
  <div class="bodyBox">
    <iframe
      style="width: 100%; height: 100%; border: none"
      :src="state.srcData"
    ></iframe>
  </div>
</template>
<script lang="ts">
// 用于路由刷新
export default {
  name: 'tracePage',
}
</script>
 
<script setup lang="ts">
import router from '@/router'
import moment from 'moment'
import Base64 from '@/utils/base64'
import { useRoute } from 'vue-router'
 
const route = useRoute()
 
const state = reactive<any>({
  routeData: {}, // 路由传参
  srcData: '', // iframeSrc
})
 
onMounted(() => {
  const history_url: string = import.meta.env.VITE_IFREAM_URL as string
  state.routeData = JSON.parse(Base64.decode(route.query.info))
  console.log(' state.routeData', state.routeData)
  state.srcData = `${history_url}/activity/history?processinstId=${state.routeData.flowId}&token=${state.routeData.token}`
})
onActivated(() => {
  const history_url: string = import.meta.env.VITE_IFREAM_URL as string
  state.routeData = JSON.parse(Base64.decode(route.query.info))
  console.log(' state.routeData', state.routeData)
  state.srcData = `${history_url}/activity/history?processinstId=${state.routeData.flowId}&token=${state.routeData.token}`
})
</script>
 
<style scoped lang="scss">
.bodyBox {
  width: 100%;
  height: 79vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  //justify-content: space-between;
  //padding: 0 15px 0 15px;
}
</style>