update:配置
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
# 开发环境
|
||||
NODE_ENV=development
|
||||
VITE_APP_ENV=development
|
||||
# 租户
|
||||
VITE_API_TENANT_NAME = 'lyric';
|
||||
# http请求的baseUrl,/api为代理字段
|
||||
VITE_API_BASE_URL=/
|
||||
# 本地环境http地址,线上通过nginx转发/api到指定服务地址
|
||||
VITE_API_HTTP_URL=http://192.168.65.161:7100
|
||||
# ws请求的baseUrl,/wsApi为代理字段
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
# 本地环境ws地址,线上通过nginx转发/wsApi到指定服务地址
|
||||
VITE_API_WS_URL=ws://192.168.65.161:7100
|
||||
# 图片预览地址
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.65.161:3000/imagePreview
|
||||
# 文件预览地址
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.65.161:3000/preview/onlinePreview
|
||||
# 文件下载地址(暂未使用)
|
||||
VITE_API_FILE_URL=http://192.168.65.161:7104
|
||||
# onlyOffice服务
|
||||
VITE_API_ONLYOFFICE_URL=http://192.168.65.161:18888
|
||||
|
||||
38
.env.lyric
Normal file
38
.env.lyric
Normal file
@@ -0,0 +1,38 @@
|
||||
# 测试环境
|
||||
NODE_ENV=test
|
||||
VITE_APP_ENV=test
|
||||
# 租户
|
||||
VITE_API_TENANT_NAME = 'lyric';
|
||||
# http请求的baseUrl,/api为代理字段
|
||||
VITE_API_BASE_URL=/api/simulation
|
||||
# 本地环境http地址,线上通过nginx转发/api到指定服务地址
|
||||
VITE_API_HTTP_URL=http://192.168.30.148:7100
|
||||
# ws请求的baseUrl,/wsApi为代理字段
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
# 本地环境ws地址,线上通过nginx转发/wsApi到指定服务地址
|
||||
VITE_API_WS_URL=ws://192.168.30.148:3000
|
||||
# 图片预览地址
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.30.148:7104/imagePreview
|
||||
# 文件预览地址
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.30.147:7115/preview/onlinePreview
|
||||
# 文件下载地址(暂未使用)
|
||||
VITE_API_FILE_URL=http://192.168.30.148:7104
|
||||
# onlyOffice服务
|
||||
VITE_API_ONLYOFFICE_URL=http://192.168.30.148:18888
|
||||
# onlyOffice回调服务
|
||||
VITE_API_ONLYOFFICE_CALLBACK=http://192.168.30.148:3000/api/simulation/data/data/onlyOfficeCallback
|
||||
# 基线地址,用于onlyOffice预览
|
||||
VITE_API_SPDM_URL=http://192.168.30.148:3000/spdm
|
||||
# CID地址
|
||||
VITE_API_CID_URL=http://192.168.30.148:3001
|
||||
|
||||
VITE_API_PREFIX_APPROVE=/approve/
|
||||
VITE_API_PREFIX_CAPABILITY=/capability/
|
||||
VITE_API_PREFIX_DATA=/data/
|
||||
VITE_API_PREFIX_PBS=/pbs/
|
||||
VITE_API_PREFIX_PERFORMANCE=/performance/
|
||||
VITE_API_PREFIX_PROJECT=/project/
|
||||
VITE_API_PREFIX_SYSTEM=/system/
|
||||
VITE_API_PREFIX_TASK=/task/
|
||||
VITE_API_PREFIX_APPLICATION=/application/
|
||||
VITE_API_PREFIX_FLOWABLE=/flowable/
|
||||
@@ -1,12 +1,21 @@
|
||||
# 生产环境
|
||||
NODE_ENV=production
|
||||
VITE_APP_ENV=production
|
||||
# 租户
|
||||
VITE_API_TENANT_NAME = 'base';
|
||||
# http请求的baseUrl,/api为代理字段
|
||||
VITE_API_BASE_URL=/api/simulation
|
||||
# 本地环境http地址,线上通过nginx转发/api到指定服务地址
|
||||
VITE_API_HTTP_URL=http://192.168.190.161:7100
|
||||
# ws请求的baseUrl,/wsApi为代理字段
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
# 本地环境ws地址,线上通过nginx转发/wsApi到指定服务地址
|
||||
VITE_API_WS_URL=ws://192.168.190.161:7100
|
||||
# 图片预览地址
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.190.161:3000/imagePreview
|
||||
# 文件预览地址
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.190.161:3000/preview/onlinePreview
|
||||
# 文件下载地址(暂未使用)
|
||||
VITE_API_FILE_URL=http://192.168.190.161:7104
|
||||
# onlyOffice服务
|
||||
VITE_API_ONLYOFFICE_URL=http://192.168.65.161:18888
|
||||
|
||||
@@ -1,12 +1,21 @@
|
||||
# 测试环境
|
||||
NODE_ENV=test
|
||||
VITE_APP_ENV=test
|
||||
# 租户
|
||||
VITE_API_TENANT_NAME = 'lyric';
|
||||
# http请求的baseUrl,/api为代理字段
|
||||
VITE_API_BASE_URL=/api/simulation
|
||||
# 本地环境http地址,线上通过nginx转发/api到指定服务地址
|
||||
VITE_API_HTTP_URL=http://192.168.65.161:7100
|
||||
# ws请求的baseUrl,/wsApi为代理字段
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
# 本地环境ws地址,线上通过nginx转发/wsApi到指定服务地址
|
||||
VITE_API_WS_URL=ws://192.168.65.161:7100
|
||||
# 图片预览地址
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.65.161:3000/imagePreview
|
||||
# 文件预览地址
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.65.161:3000/preview/onlinePreview
|
||||
# 文件下载地址(暂未使用)
|
||||
VITE_API_FILE_URL=http://192.168.65.161:7104
|
||||
# onlyOffice服务
|
||||
VITE_API_ONLYOFFICE_URL=http://192.168.65.161:18888
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite --mode development",
|
||||
"build:dev": "vite build --mode development",
|
||||
"build:lyric": "vite build --mode lyric",
|
||||
"build:test": "vite build --mode test",
|
||||
"build:prod": "vite build --mode production",
|
||||
"build": "run-p type-check \"build-only {@}\" --",
|
||||
@@ -76,4 +77,4 @@
|
||||
"vite-plugin-vue-devtools": "^8.0.0",
|
||||
"vue-tsc": "^3.0.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,8 +68,6 @@ export const querytasklogApi = async (params: any) => {
|
||||
};
|
||||
|
||||
const openDownLoadFun = () => {
|
||||
// const downloadUrl = `${env.VITE_API_FILE_URL}/data/downloadFile?fileId=${3190}`;
|
||||
// window.open(downloadUrl, '_blank');
|
||||
downloadFileByStream(7613);
|
||||
};
|
||||
|
||||
|
||||
@@ -112,8 +112,6 @@ const actionList = ref([
|
||||
title: '下载',
|
||||
type: 'primary',
|
||||
click: (row: any) => {
|
||||
// const downloadUrl = `${env.VITE_API_FILE_URL}/data/downloadFile?fileId=${row.id}`;
|
||||
// window.open(downloadUrl, '_blank');
|
||||
downloadFileById(row.id);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -11,7 +11,12 @@
|
||||
:actionList="actionList"
|
||||
>
|
||||
<template v-if="showLeftOptions" #leftOptions>
|
||||
<el-upload :show-file-list="false" :accept="accept" multiple :before-upload="beforeUploadFun">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
:accept="accept"
|
||||
multiple
|
||||
:before-upload="beforeUploadFun"
|
||||
>
|
||||
<el-button>上传文件</el-button>
|
||||
</el-upload>
|
||||
<el-button class="ml12" type="primary" @click="showTableDataCurveFun">显示曲线</el-button>
|
||||
@@ -127,8 +132,6 @@ const actionList = ref([
|
||||
title: '下载',
|
||||
type: 'primary',
|
||||
click: (row: any) => {
|
||||
// const downloadUrl = `${env.VITE_API_FILE_URL}/data/downloadFile?fileId=${row.id}`;
|
||||
// window.open(downloadUrl, '_blank');
|
||||
downloadFileById(row.id);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -20,7 +20,12 @@
|
||||
</el-select>
|
||||
</div> -->
|
||||
|
||||
<el-upload :show-file-list="false" :accept="accept" multiple :before-upload="beforeUploadFun">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
:accept="accept"
|
||||
multiple
|
||||
:before-upload="beforeUploadFun"
|
||||
>
|
||||
<el-button>上传文件</el-button>
|
||||
</el-upload>
|
||||
<el-button class="ml12" type="primary" @click="downLoadFun">下载文件</el-button>
|
||||
@@ -110,9 +115,6 @@ const actionList = ref([
|
||||
title: '下载',
|
||||
type: 'primary',
|
||||
click: (row: any) => {
|
||||
// const downloadUrl = `${env.VITE_API_FILE_URL}/data/downloadFile?fileId=${row.id}`;
|
||||
// window.open(downloadUrl, '_blank');
|
||||
|
||||
downloadFileById(row.id);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
const env = import.meta.env;
|
||||
|
||||
export enum TENANT_ENUM {
|
||||
/**
|
||||
* 基线
|
||||
@@ -16,7 +18,7 @@ export enum TENANT_ENUM {
|
||||
/**
|
||||
* 当前租户
|
||||
*/
|
||||
export const CURRENT_TENANT = TENANT_ENUM.BASE;
|
||||
export const CURRENT_TENANT = env.VITE_API_TENANT_NAME || TENANT_ENUM.BASE;
|
||||
|
||||
export const enableConfigByTenant = (tenants: string[]) => {
|
||||
return tenants.includes(CURRENT_TENANT);
|
||||
|
||||
@@ -106,8 +106,6 @@ const queryRunDirFun = async (param: any) => {
|
||||
const downLoadFileFun = async () => {
|
||||
const ckeckData = baseTableRef.value.tableRef.getCheckboxRecords();
|
||||
for (let i = 0; i < ckeckData.length; i++) {
|
||||
// const downloadUrl = `${env.VITE_API_FILE_URL}/data/downloadFile?fileId=${ckeckData[i].id}`;
|
||||
// window.open(downloadUrl, '_blank');
|
||||
downloadFileByStream(ckeckData[i].id);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user