Commit 5c0828b0 authored by 军师中郎将's avatar 军师中郎将

1 使用vue界面访问 后端管理 设计好的报表。

parent 590a2955
<template>
<div v-loading="loading" :style="'height:'+ height">
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto"/>
</div>
</template>
<script>
export default {
name: "Ureport",
data() {
return {
src: "http://127.0.0.1:8905/gassafety/ureport/preview?_u=file:按条件查询报表测试.ureport.xml&_t=2,9,3&date=2024&complaintCategory=0",
height: document.documentElement.clientHeight - 94.5 + "px;",
loading: true
};
},
mounted: function() {
setTimeout(() => {
this.loading = false;
}, 230);
const that = this;
window.onresize = function temp() {
that.height = document.documentElement.clientHeight - 94.5 + "px;";
};
}
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment