|
@@ -36,7 +36,7 @@ import pluginLog from '@/plugins/log'
|
|
|
import pluginOpen from '@/plugins/open'
|
|
import pluginOpen from '@/plugins/open'
|
|
|
// 平台配置文件
|
|
// 平台配置文件
|
|
|
import setting from '@/setting.js'
|
|
import setting from '@/setting.js'
|
|
|
-import { BASE_URL } from '@/constant'
|
|
|
|
|
|
|
+import { BASE_URL, REPORT_PATH } from '@/constant'
|
|
|
import env from '@/env'
|
|
import env from '@/env'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -55,8 +55,7 @@ export default {
|
|
|
Vue.prototype.$buildTime = env.VUE_APP_BUILD_TIME
|
|
Vue.prototype.$buildTime = env.VUE_APP_BUILD_TIME
|
|
|
|
|
|
|
|
Vue.prototype.$ibpsUrl = env.VUE_APP_BASE_API_0_0_TEST
|
|
Vue.prototype.$ibpsUrl = env.VUE_APP_BASE_API_0_0_TEST
|
|
|
- const reportPath = '罗医细胞质量检测实验室'
|
|
|
|
|
- Vue.prototype.$reportFilePath = reportPath
|
|
|
|
|
|
|
+ Vue.prototype.$reportFilePath = REPORT_PATH
|
|
|
// 格式化参数
|
|
// 格式化参数
|
|
|
const getParams = (params) => {
|
|
const getParams = (params) => {
|
|
|
const parts = params.split('&')
|
|
const parts = params.split('&')
|
|
@@ -78,11 +77,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
const timer = setInterval(() => { // 定时循环添加参数
|
|
const timer = setInterval(() => { // 定时循环添加参数
|
|
|
if (getToken()) {
|
|
if (getToken()) {
|
|
|
- //报表路径
|
|
|
|
|
- Vue.prototype.$reportPash = `${BASE_URL}demo/reportJsp/showReport.jsp?access_token=${getToken()}&rpx=${reportPath}/`
|
|
|
|
|
- Vue.prototype.$getReportFile = downloadReport //通过方法函数,拼接url,并将字符串格式化
|
|
|
|
|
|
|
+ // 报表路径
|
|
|
|
|
+ Vue.prototype.$reportPash = `${BASE_URL}demo/reportJsp/showReport.jsp?access_token=${getToken()}&rpx=${REPORT_PATH}/`
|
|
|
|
|
+ Vue.prototype.$getReportFile = downloadReport // 通过方法函数,拼接url,并将字符串格式化
|
|
|
Vue.prototype.$getFileDow = `${BASE_URL}ibps/platform/v3/file/download?attachmentId=` // 文件下载地址
|
|
Vue.prototype.$getFileDow = `${BASE_URL}ibps/platform/v3/file/download?attachmentId=` // 文件下载地址
|
|
|
- clearInterval(timer) //添加成功后即删除定时任务
|
|
|
|
|
|
|
+ clearInterval(timer) // 添加成功后即删除定时任务
|
|
|
}
|
|
}
|
|
|
}, 500)
|
|
}, 500)
|
|
|
|
|
|