12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <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 class="iframe"
- :src="src"></iframe>
- </el-scrollbar>
- </div>
- </template>
- <script>
- export default {
- data () {
- return {
- id: '',
- name: ''
- }
- },
- created () {
- this.id = this.$route.params.id
- this.name = this.$route.query.name
- },
- computed: {
- src () {
- return `${this.actUrl}${this.id}`;
- }
- },
- methods: {
- breaks () {
- this.$router.$avueRouter.closeTag();
- this.$router.push({ path: '/activti/activiti' })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .header {
- position: relative;
- display: flex;
- align-items: center;
- &__title {
- font-size: 22px;
- }
- &__btn {
- position: absolute;
- right: 10px;
- }
- }
- .main {
- margin: 0 auto;
- width: 99%;
- height: 800px;
- background-color: #fff;
- padding: 20px;
- border-radius: 3px;
- box-sizing: border-box;
- }
- </style>
|