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
86
87
88
89
| <template>
| <div class="liucheng-box" v-if="isShowYulan">
| <el-dialog :title="dataForm.name" :visible.sync="isShowYulan" :before-close="cancel" :close-on-click-modal="false" width="60%" center v-dialogDrag>
| <component :is="popwindow" :id="id" :isShowYulan="isShowYulan" :title="dataForm.name"
| :processId="processId" :key="processId" :isFinish="isFinish" @cancel="cancel">
| </component>
| </el-dialog>
| </div>
| </template>
|
| <script>
| export default {
| name: "index",
| props: ['isShowYulan'],
| data() {
| return {
| id:0,
| dataForm: {},
| name:'',
| processId: '',
| src: '',
| isFinish:'',
| };
| },
| computed: {
| popwindow:{
| get:function() {
| console.log(this.src,'this.src====')
| if (this.src) {
| return ()=>import('@/views/News/' + this.src);
| }
| },
| set:function() {
| }
| }
| },
| /*created() {
| this.init()
| },*/
| methods: {
| init(obj,id) {
| this.$nextTick(() => {
| this.dataForm = obj;
| this.id = id;
| this.processId = obj.id;
| this.isFinish = obj.finish;
| this.src = this.dataForm.router;
| console.log(this.src,'src-==')
| });
| // this.src = Math.random();
| },
| /*getDataList() {
| this.$emit('getDataList');
| },*/
| cancel() {
| this.$emit('cancel', false);
| this.$emit('getDataList');
| }
| },
| }
| </script>
|
| <style lang="scss">
| .el-dialog {
| margin-top: 4vh !important;
| background-color: #fff;
| max-height: 92% !important;
| /*display: grid!important;*/
| display: flex;
| flex-direction: column;
| }
|
| .el-dialog__body {
| height: calc(100% - 34px);
| overflow: auto;
| flex: auto;
| }
| .liucheng-box{
| .el-input.is-disabled .el-input__inner{
| color: #000!important;
| }
| .el-textarea.is-disabled .el-textarea__inner{
| color: #000!important;
| }
| .el-tag.el-tag--info{
| color: #000!important;
| }
| }
| </style>
|
|