From 97c91899e37ff1040b08d6e2498101bde4c32db6 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 17 Dec 2025 16:01:18 +0800 Subject: [PATCH] 1 --- src/views/trials/trials-inspection/index.vue | 17 ++++++++++++++--- vue.config.js | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-inspection/index.vue b/src/views/trials/trials-inspection/index.vue index 0805b0d..2ce909a 100644 --- a/src/views/trials/trials-inspection/index.vue +++ b/src/views/trials/trials-inspection/index.vue @@ -214,7 +214,7 @@ -
{{ $t('dialog:sattus:downLoading') }} @@ -599,6 +599,12 @@ export default { // } } + if (num >= 100) { + this.downLoadType = 'start' + this.percentage = 0 + this.downLoadImageCount = 0 + this.downloadVisible = false + } // if (type === 'downLoaded') { // } // if (type === 'error') { @@ -621,9 +627,14 @@ export default { .build() connection.start() connection.on("ReceivProgressAsync", (id, num) => { - this.onUploadProgress2(id, num, 'downLoad') + this.onUploadProgress(id, num.sizePercent, 'downLoad') }); } } - \ No newline at end of file + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 9b06683..4f8c499 100644 --- a/vue.config.js +++ b/vue.config.js @@ -48,6 +48,20 @@ module.exports = { '^/api': '' } }, + '/DownloadHub': { + // target: 'http://47.90.210.20:8000', //美国服务器 + // target: 'http://123.56.181.144:8001', // 国内生产环境 + // target: 'http://123.56.181.144:8060/api', // 国内测试环境1 + // target: 'http://123.56.181.144:8000/api', // 国内测试环境 + // target: 'http://106.14.89.110:8079', // 国内测试环境2 + target: 'http://106.14.89.110:30021', // 国内测试环境2 + // target: 'http://123.56.181.144:7000', + changeOrigin: true, + secure: false, + pathRewrite: { + '^/api': '' + } + }, '/IRaCISData': { target: 'http://106.14.89.110:30010', // 国内测试环境2 // target: 'http://123.56.181.144:7000',