Browse Source

提交代码

master
songguoqiang 1 year ago
parent
commit
28ebc192ef
  1. 8
      .env.production
  2. 4
      src/views/report/goview/index.vue
  3. 24
      src/views/tjanalysis/bigView/index.vue

8
.env.production

@ -5,11 +5,11 @@ VITE_DEV=false
# 请求路径 # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:26110' # VITE_BASE_URL='http://dev.ccwin-in.com:26110'
VITE_BASE_URL='http://10.140.10.4:26110' VITE_BASE_URL='http://10.140.10.4:26112'
# 上传路径 # 上传路径
# VITE_UPLOAD_URL='http://dev.ccwin-in.com:26110/api/admin-api/infra/file/upload' # VITE_UPLOAD_URL='http://dev.ccwin-in.com:26110/api/admin-api/infra/file/upload'
VITE_UPLOAD_URL='http://10.140.10.4:26110/api/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://10.140.10.4:26112/api/admin-api/infra/file/upload'
# 接口前缀 # 接口前缀
VITE_API_BASEPATH= VITE_API_BASEPATH=
@ -35,5 +35,7 @@ VITE_OUT_DIR=dist-pro
# 积木报表请求路径 # 积木报表请求路径
# VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:26110' # VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:26110'
VITE_JMREPORT_BASE_URL='http://10.140.10.4:26110' # 自定义接口路径
VITE_INTERFACE_URL='http://10.140.10.4:26112/magic/web/index.html'
VITE_JMREPORT_BASE_URL='http://10.140.10.4:26112'

4
src/views/report/goview/index.vue

@ -6,6 +6,6 @@
<script lang="ts" setup> <script lang="ts" setup>
defineOptions({ name: 'GoView' }) defineOptions({ name: 'GoView' })
//const src = 'http://127.0.0.1:3000' const src = 'http://127.0.0.1:3000'
const src = 'http://10.140.10.4:26111' //const src = 'http://10.140.10.4:26111'
</script> </script>

24
src/views/tjanalysis/bigView/index.vue

@ -0,0 +1,24 @@
<template>
<div></div>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router'
const router = useRoute()
defineOptions({ name: 'big' })
console.log(router.path)
var str =router.path;
var lastSlashIndex =str.lastIndexOf('/');
if (lastSlashIndex === -1) {
window.open('http://localhost:26111/#/chart/preview/'+str)
//window.open('http://10.140.10.4:26111/#/chart/preview/'+str)
}
window.open('http://localhost:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1))
//window.open('http://10.140.10.4:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1))
</script>
<style>
</style>
Loading…
Cancel
Save