zouyu
2023-11-10 789bd1e36e88e09a45fa24fa1569330ada4c45b7
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
  <div class="execution">
    <basic-container>
      <div class="header">
        <p class="header__title">{{ name }}</p>
        <el-button
          class="header__btn"
          type="primary"
          @click="breaks">关闭返回列表
        </el-button>
      </div>
    </basic-container>
 
    <el-scrollbar class="main">
      <iframe
        :src="src"
        class="iframe"/>
    </el-scrollbar>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      id: '',
      name: ''
    }
  },
  computed: {
    src() {
      return `${this.actUrl}${this.id}`
    }
  },
  created() {
    this.id = this.$route.params.id
    this.name = this.$route.query.name
  },
  methods: {
    breaks() {
      this.$router.$avueRouter.closeTag()
      this.$router.push({ path: '/activiti/index' })
    }
  }
}
</script>
 
<style lang="scss" scoped>
  .execution {
    height: 99%;
 
    .header {
      position: relative;
      display: flex;
      align-items: center;
 
      &__title {
        font-size: 22px;
      }
 
      &__btn {
        position: absolute;
        right: 10px;
      }
    }
 
    .main {
      margin: 0 auto;
      width: 99%;
      height: calc(100% - 100px);
      background-color: #fff;
      padding: 20px;
      border-radius: 3px;
      box-sizing: border-box;
    }
  }
  .iframe {
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
 
</style>