From 0ec455ce15b1ddfae24689a79fb9d381099f0bce Mon Sep 17 00:00:00 2001 From: pxzsky <pxzsky@163.com> Date: 星期四, 09 三月 2023 15:54:32 +0800 Subject: [PATCH] 添加演示报表 --- src/views/report/demo/print_1.vue | 29 ++++++++++++++ src/views/tool/report_design/index.vue | 29 ++++++++++++++ src/views/login.vue | 4 +- public/static/config.js | 3 + 4 files changed, 62 insertions(+), 3 deletions(-) diff --git a/public/static/config.js b/public/static/config.js index cee3bee..66d193d 100644 --- a/public/static/config.js +++ b/public/static/config.js @@ -1,7 +1,8 @@ /*寮�鍙戠幆澧�*/ const dev = { - baseUrl: 'http://101.43.168.96:8082/admin', + //baseUrl: 'http://101.43.168.96:8082/admin', + baseUrl: 'http://localhost:8082/admin', ftpUrl: 'https://echftp.jinmingyuan.com', AccessTokenKey:'PC-ADMIN-TOKEN', // token timeout: 15 // 璇锋眰瓒呮椂鏃堕棿銆� diff --git a/src/views/login.vue b/src/views/login.vue index d97afc5..6a11fae 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -72,8 +72,8 @@ return { codeUrl: "", loginForm: { - username: "supervisor", - password: "123456", + username: "", + password: "", rememberMe: false, code: "", uuid: "" diff --git a/src/views/report/demo/print_1.vue b/src/views/report/demo/print_1.vue new file mode 100644 index 0000000..bcc2aad --- /dev/null +++ b/src/views/report/demo/print_1.vue @@ -0,0 +1,29 @@ +<template> + <iframe ref="iframe" :src="url" scrolling="auto" :style="{height:'calc(100% - 5px)',width:'100%',border:'none'}" /> +</template> + +<script> + import { getToken } from '@/utils/auth'; + export default { + name: "", + data() { + return { + url: '', + height: 500 + } + }, + created() { + // const orgLv = this.$store.getters.info.orgLv + // const orgCode = this.$store.getters.info.orgNo + // this.url = globalConf.reportUrl + `/decision/view/report?viewlet=score_summary_branch.cpt&lv=${orgLv}&orgCode=${orgCode}` + // let token = 'Bearer ' + getToken(); + let token = getToken(); + this.url = globalConf.baseUrl + `/jmreport/view/ff9bd143582a6dfed897ba8b6f93b175?token=${token}` + this.height = window.screen.availHeight + } + } +</script> + +<style scoped> + +</style> diff --git a/src/views/tool/report_design/index.vue b/src/views/tool/report_design/index.vue new file mode 100644 index 0000000..e6875b5 --- /dev/null +++ b/src/views/tool/report_design/index.vue @@ -0,0 +1,29 @@ +<template> + <iframe ref="iframe" :src="url" scrolling="auto" :style="{height:'calc(100% - 5px)',width:'100%',border:'none'}" /> +</template> + +<script> + import {getToken} from '@/utils/auth'; + + export default { + name: "", + data() { + return { + url: '', + height: 500 + } + }, + created() { + // const orgLv = this.$store.getters.info.orgLv + // const orgCode = this.$store.getters.info.orgNo + // this.url = globalConf.reportUrl + `/decision/view/report?viewlet=score_summary_branch.cpt&lv=${orgLv}&orgCode=${orgCode}` + let token = getToken(); + this.url = globalConf.baseUrl + `/jmreport/list?token=${token}` + this.height = window.screen.availHeight + } + } +</script> + +<style scoped> + +</style> -- Gitblit v1.9.1