| | |
| | | |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | console.log(this.queryParams) |
| | | this.download( |
| | | "hosp/order/export", |
| | | "/hosp/order/exportOrderList", |
| | | { |
| | | ...this.queryParams, |
| | | }, |
New file |
| | |
| | | <template> |
| | | <div v-loading="loading" :style="'height:' + height"> |
| | | <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { |
| | | getToken |
| | | } from '@/utils/auth' |
| | | import { view } from "@/api/jmreport/jimu"; |
| | | export default { |
| | | name: "Ureport", |
| | | data() { |
| | | return { |
| | | src: "", |
| | | height: document.documentElement.clientHeight - 94.5 + "px;", |
| | | loading: true, |
| | | viewNum:"1073102401980628992", |
| | | }; |
| | | }, |
| | | created() { |
| | | view().then((res) => { |
| | | this.src = |
| | | res + |
| | | "/" + |
| | | this.viewNum + |
| | | "?token=Bearer " + |
| | | getToken(); |
| | | }); |
| | | // this.src = "http://192.168.0.99:8080/ltkj-admin/jmreport/view/815468234724306944?token=Bearer " + getToken(); |
| | | }, |
| | | |
| | | mounted: function () { |
| | | setTimeout(() => { |
| | | this.loading = false; |
| | | }, 230); |
| | | const that = this; |
| | | window.onresize = function temp() { |
| | | that.height = document.documentElement.clientHeight - 94.5 + "px;"; |
| | | }; |
| | | } |
| | | }; |
| | | </script> |