From dd0cd1ec64885a5a9009875cfa579c491c22ecce Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Wed, 11 Sep 2024 16:07:28 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../trial-summary/audit-record/index.vue | 27 ++++++++++---------
1 file changed, 15 insertions(+), 12 deletions(-)
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 9d49a455..f831a706 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
@@ -347,9 +347,9 @@
{{$t('trials:auditRecord:title:viewDetail')}}
-
+
- {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}
+ {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}
@@ -378,9 +378,9 @@
{{$t('trials:auditRecord:title:viewDetail')}}
-
+
- {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}
+ {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}
@@ -409,9 +409,9 @@
:key="'tableList' + index"
>
-
+
- {{$t('trials:auditRecord:title:viewImage')}}
+ {{$t('trials:auditRecord:title:viewImage')}}
{{scope.row[item.ColumnValue]}}
@@ -426,9 +426,9 @@
:key="'ChildrenList' + index"
>
-
+
-
+
{{$t('trials:auditRecord:title:viewImage')}}
@@ -897,19 +897,22 @@ export default {
this.getList()
},
methods: {
- openImage(url) {
+ openImage(url, type) {
console.log(url)
this.$nextTick(()=>{
if (url instanceof Array) {
this.imagesList = url.map(v => this.OSSclientConfig.basePath + v)
- this.$refs[url[0]].$viewer.show()
+ let refName = type ? `${url[0]}_${type}` : url[0]
+ this.$refs[refName].$viewer.show()
} else {
this.imagesList = [this.OSSclientConfig.basePath + url]
if(this.$refs[url] instanceof Array){
- this.$refs[url][0].$viewer.show()
+ let refName = type ? `${url}_${type}` : url
+ this.$refs[refName][0].$viewer.show()
}else{
- this.$refs[url].$viewer.show()
+ let refName = type ? `${url}_${type}` : url
+ this.$refs[refName].$viewer.show()
}
}
})