diff --git a/.env.production b/.env.production index 6b18463..59f7acf 100644 --- a/.env.production +++ b/.env.production @@ -5,11 +5,11 @@ VITE_DEV=false # 请求路径 # 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://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= @@ -35,5 +35,7 @@ VITE_OUT_DIR=dist-pro # 积木报表请求路径 # 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' diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue index ff47e49..07497ea 100644 --- a/src/views/report/goview/index.vue +++ b/src/views/report/goview/index.vue @@ -6,6 +6,6 @@ <script lang="ts" setup> defineOptions({ name: 'GoView' }) -//const src = 'http://127.0.0.1:3000' -const src = 'http://10.140.10.4:26111' +const src = 'http://127.0.0.1:3000' +//const src = 'http://10.140.10.4:26111' </script> diff --git a/src/views/tjanalysis/bigView/index.vue b/src/views/tjanalysis/bigView/index.vue new file mode 100644 index 0000000..db5d5fb --- /dev/null +++ b/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> +