<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
|
<title>编辑流程</title>
|
|
<script type="text/javascript">
|
var vue_ = null;
|
var pageVue = null;
|
function loadJsCss(callback) {
|
var jscss_urls = [];
|
window.top.initJsCss(document, jscss_urls, callback);
|
};
|
|
function initVue() {
|
vue_ = new FormVue({
|
el: "#vbody",
|
data: {
|
title: "编辑流程",
|
iframe_url: {},
|
|
popupParames: {},
|
},
|
created() {
|
this.popupParames = clone(Root.popupParames);
|
if (this.popupParames.data) {
|
this.iframe_url = this.popupParames.data;
|
}
|
},
|
|
mounted() {
|
var me = this;
|
// 以服务的方式调用的 Loading 需要异步关闭
|
this.$nextTick(() => {
|
hideLoading();
|
});
|
},
|
|
methods:{
|
//关闭弹窗
|
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 = {
|
//row: this.formData
|
}
|
this.popupParames.callback(obj, function() {
|
me.closeDialog();
|
});
|
}
|
else {
|
me.closeDialog();
|
}
|
},
|
|
|
|
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
|
<style>
|
/* 在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
|
[v-cloak] {
|
display: none !important;
|
}
|
</style>
|
</head>
|
|
<body style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;">
|
<div v-cloak id="vbody">
|
<div id="page_root">
|
<div class="h_dialog__body" style="position: absolute; top: 0px; bottom: 10px; left: 0; right: 0;">
|
<iframe :src="iframe_url" style="width: 100%; height: 100%;" frameborder="0"></iframe>
|
</div>
|
<!-- <div class="el-dialog__footer" style="position: absolute; bottom: 0px; left: 0; right: 0;">
|
<el-button type="default" @click="closeDialog">取 消</el-button>
|
</div> -->
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
</div>
|
|
</body>
|
</html>
|