From ebedae85e7bd2dba7b900eb1e8993acc515aab3e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 31 Jul 2025 14:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E9=99=84=E4=BB=B6=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trial-summary/audit-record/index.vue | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue index 4b775b4f..19840b87 100644 --- a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue +++ b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue @@ -245,6 +245,10 @@ v-show="false" crossorigin="anonymous" alt="">
+ + {{ $t('common:button:download') }} + {{ scope.row.oldValue }} @@ -284,6 +288,10 @@
+ + {{ $t('common:button:download') }} + {{ scope.row.newValue }} @@ -630,6 +638,7 @@ import Pagination from '@/components/Pagination' import BaseContainer from '@/components/BaseContainer' import BaseModel from '@/components/BaseModel' import { getToken } from '@/utils/auth' +import { downLoadFile } from '@/utils/stream.js' const searchDataDefault = () => { return { SortField: 'CreateTime', @@ -711,6 +720,22 @@ export default { this.getModuleTypeList() }, methods: { + isFile(str) { + return !!~str.indexOf('❄❅❆❇❈❉❊') + }, + async download(str) { + str = str.replace("❄❅❆❇❈❉❊", '') + let urls = str.split("|") + let name = `${Date.now()}.zip`, files = [] + urls.forEach(url => { + let obj = { + url: this.OSSclientConfig.basePath + url, + name: url.split("/")[url.split("/").length - 1] + } + files.push(obj) + }) + await downLoadFile(files, name, 'zip') + }, openImage(url, type) { console.log(url)