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)