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
| <template>
| <el-dialog
| class="gd-dialog"
| v-model="visible"
| title="流程配置"
| append-to-body
| :fullscreen="true"
| @closed="visible = false"
| >
| <iframe
| :src="flowUrl"
| width="100%"
| height="700"
| title="流程设计器"
| frameBorder="no"
| border="0"
| marginWidth="0"
| marginHeight="0"
| scrolling="no"
| allowTransparency="yes"
| ></iframe>
| <template #footer>
| <span class="dialog-footer">
| <el-button @click="visible = false">取 消</el-button>
| <el-button type="primary" @click="handleRefresh">确 定</el-button>
| </span>
| </template>
| </el-dialog>
| </template>
|
| <script>
| export default {
| inject: ['website'],
| data() {
| return {
| visible: false,
| flowUrl: '',
| }
| },
| methods: {
| // 打开弹框 - 创建模式
| openCreate() {
| this.flowUrl = `${this.website.design.designUrl}/index.html`
| this.visible = true
| },
| // 打开弹框 - 编辑模式
| openEdit(row) {
| this.flowUrl = `${this.website.design.designUrl}/index.html#/editor/${row.id}`
| this.visible = true
| },
| // 确定并刷新
| handleRefresh() {
| this.visible = false
| this.$emit('success')
| },
| },
| }
| </script>
|
| <style scoped lang="scss"></style>
|
|