<!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: "",
|
reporturl: "",
|
|
dataRequest: [
|
{
|
name: "sys_model",
|
dataname: "sys_model",
|
filter: "",
|
isnotoption: false,
|
code:"id",
|
label:"url",
|
},
|
],
|
dataRequestObj: {},
|
|
sys_model_map: {},
|
sys_page_model: {},
|
|
},
|
created() {
|
if (window.top.tab.selected.option.page_id) {
|
let page_id = window.top.tab.selected.option.page_id;
|
var sys_page_model = {
|
name: "sys_page_model",
|
dataname: "sys_page_model",
|
isnotoption: true,
|
filter: "sys_page_model.page_id='" + page_id + "'"
|
}
|
this.dataRequest.push(sys_page_model);
|
}
|
},
|
|
mounted() {
|
var me = this;
|
if (this.dataRequest && this.dataRequest.length) {
|
var result = {};
|
this.loadRequestData(this.dataRequest, result, function(data) {
|
me.dataRequestObj = data;
|
if (me.dataRequestObj.sys_model) {
|
me.sys_model_map = me.dataRequestObj.sys_model.map.sys_model;
|
}
|
if (me.dataRequestObj.sys_page_model) {
|
me.sys_page_model = me.dataRequestObj.sys_page_model[0];
|
}
|
|
me.$nextTick(() => {
|
hideLoading();
|
me.initData();
|
});
|
});
|
}
|
else {
|
this.$nextTick(() => {
|
hideLoading();
|
me.initData();
|
});
|
}
|
},
|
|
methods:{
|
initData() {
|
if(this.sys_page_model.sys_model__url.substring(0, 7) == "module/") {
|
this.iframe_url = window.top.config.url_page + this.sys_page_model.sys_model__url;
|
}
|
else {
|
this.iframe_url = this.sys_page_model.sys_model__url
|
}
|
|
|
if (this.iframe_url.indexOf("?") > 0) {
|
this.iframe_url = this.iframe_url + "&" + "v=" + createCode("v");
|
}
|
else {
|
this.iframe_url = this.iframe_url + "?" + "v=" + createCode("v");
|
}
|
},
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
|
<style>
|
[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 style="position: absolute; top: 0px; bottom: 5px; left: 0; right: 0;">
|
<iframe :src="iframe_url" style="width: 100%; height: 100%;" frameborder="0"></iframe>
|
</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>
|