tom
2023-12-06 9e968679ed2e6937aeb7b50a6c450d5d19251f42
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>销售合同签名</title>
        <script src="../../js/vue/vue.js"></script>
        <script src="../../js/vue/element-ui/lib/index.js"></script>
        <script src="../../js/myelement.js"></script>
        <script src="../../js/vue/page.js"></script>
        
        <link href="../../js/vue/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
        <link href="../../css/myelement.css" rel="stylesheet">
        <link href="../../css/iconfont.css" rel="stylesheet">
        <link href="../../css/page.css" rel="stylesheet">
        <link href="//at.alicdn.com/t/font_2374495_13ltsxm2eor.css" rel="stylesheet">
    </head>
    
    <body>
        <div id="vbody">
            <div id="page_root">
                <div class="topbar" style="line-height: 60px;">
                    <span>流程图 {{title}}</span>
                    
                    <div style="float: right; margin-right: 20px;">
                        <!-- <el-button-group>                            <el-button @click="onShowApproval">审批记录</el-button>
                        </el-button-group> -->
                        <el-button-group>
                            <el-button  @click="closeDialog">关 闭</el-button>
                        </el-button-group>
                    </div>
                </div>
                <div class="img_iframe">
                    <iframe :src="src_url" style="width: 100%; height: 100%;"></iframe>
                </div>
                
                <!-- <div class="el-dialog__footer" style="position: absolute; bottom: 10px; width: 100%; text-align: right;">
                    
                </div> -->
                
            </div>
            
            <div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 100vh;">
                <div class="spinner">
                  <div class="cube1"></div>
                  <div class="cube2"></div>
                </div>
            </div>
        </div>    
        
        <script type="text/javascript">
            var initlized = false;
            
            new ListVue({
                el: "#vbody",
                data: {
                    title: "",
                    popupParames: {},
                    formdata: {},//contract_file_id
                    flow_id: "",
                    
                    src_url: "",
                    
                },
                created() {
                    this.popupParames = clone(Root.popupParames);
                    this.formdata = clone(this.popupParames.data);
                    this.flow_id = clone(this.popupParames.delta.flow_id);
                    this.title = clone(this.popupParames.delta.title);
                },
                
                mounted() {
                    this.initData();
                    this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
                        hideLoading();
                    });
                    
                },
                methods:{
                    onServerInitData(data) {
                        var me = this.data;
                    },
                    
                    closeDialog() {//关闭
                        var me = this;
                        if (me.popupParames.totab){
                            Root.tab.removeItem(Root.tab.selected);
                            Root.tab.open(me.popupParames.parentOption, false); 
                        }
                        else {
                            Root.hidePopup();
                        }
                    },
                    
                    saveAfter() {//调回调的关闭
                        var me = this;
                        if(this.popupParames.callback) {
                            let obj = {};
                            this.popupParames.callback(obj, function() {
                                me.closeDialog();
                            });
                        }
                        else {
                            me.closeDialog();
                        }
                    },
                    
                    initData() {
                        if (initlized) { return; }
                        initlized = true;
                        this.getURL();
                    },
                    
                    getURL() {
                        var me =this;
                        me.src_url = window.top.RootSetting.url_jeminrootact +  "act/diagram/" + this.flow_id;
                    },
                    
                    onShowApproval() {
                        var me = this;
                        let param = {
                            isClientMode: false,
                            flowId: this.flow_id
                        }
                        
                        Server.call("root/order/getHistoryTask/", param, function(result) {
                            console.log(result);
                            if (result && result.data) {
                                me.getApprovalRecord(result.data);
                            }
                        }); 
                            
                    },
                    
                    getApprovalRecord(data) {
                        let me = this;
                        var config = {
                            width: "900px",
                            height:"600px",
                            url: "../approval/ApprovalList.html",
                            data: data,
                            delta: {
                                flow_id: this.flow_id,
                                title: this.title
                            },
                        };
                        this.doPopupByPublic(config);
                    },
                    
                    
                }
            });
        </script>
        
        <style>
            iframe {
                border-width: 0px !important;
            }
            .img_iframe {
                position: absolute; 
                top: 50px; 
                bottom: 30px; 
                left: 10px; 
                right: 10px; 
                padding: 20px;
                
                border: 2px solid #ccc;
                margin: 3px;
            }
            
            .popup-close {
                display: none !important
            }
            
            .el-icon-close:before {
                content: "" !important;
            }
            
        </style>
    </body>
</html>