pxzsky
2023-03-09 0ec455ce15b1ddfae24689a79fb9d381099f0bce
添加演示报表
2个文件已添加
2个文件已修改
65 ■■■■■ 已修改文件
public/static/config.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/report/demo/print_1.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tool/report_design/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 // 请求超时时间、
src/views/login.vue
@@ -72,8 +72,8 @@
    return {
      codeUrl: "",
      loginForm: {
        username: "supervisor",
        password: "123456",
        username: "",
        password: "",
        rememberMe: false,
        code: "",
        uuid: ""
src/views/report/demo/print_1.vue
New file
@@ -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>
src/views/tool/report_design/index.vue
New file
@@ -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>