稽查更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-09-11 16:07:28 +08:00
parent db5e5da06a
commit dd0cd1ec64
1 changed files with 15 additions and 12 deletions

View File

@ -347,9 +347,9 @@
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="scope.row.oldValue" style="color:#409eff;"> <a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="scope.row.oldValue" style="color:#409eff;">
{{$t('trials:auditRecord:title:viewDetail')}} {{$t('trials:auditRecord:title:viewDetail')}}
</a> </a>
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'" :ref="scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue" :images="imagesList"> <viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'" :ref="`${scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue}_modelCfg`" :images="imagesList">
<!-- 查看图片 --> <!-- 查看图片 -->
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.oldValue)">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span> <span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.oldValue, 'modelCfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
<template v-for="item of scope.row.oldValue"> <template v-for="item of scope.row.oldValue">
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt=""> <img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
</template> </template>
@ -378,9 +378,9 @@
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="scope.row.newValue" style="color:#409eff;"> <a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="scope.row.newValue" style="color:#409eff;">
{{$t('trials:auditRecord:title:viewDetail')}} {{$t('trials:auditRecord:title:viewDetail')}}
</a> </a>
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'" :ref="scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue" :images="imagesList"> <viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'" :ref="`${scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue}_modelcfg`" :images="imagesList">
<!-- 查看图片 --> <!-- 查看图片 -->
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.newValue)">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span> <span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.newValue, 'modelcfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
<template v-for="item of scope.row.newValue"> <template v-for="item of scope.row.newValue">
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt=""> <img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
</template> </template>
@ -409,9 +409,9 @@
:key="'tableList' + index" :key="'tableList' + index"
> >
<template v-if="!item.IsMerge" slot-scope="scope"> <template v-if="!item.IsMerge" slot-scope="scope">
<viewer v-if="item.IsPicture" :images="imagesList" :ref="scope.row[item.ColumnValue]"> <viewer v-if="item.IsPicture" :images="imagesList" :ref="`${scope.row[item.ColumnValue]}_modelcfg`">
<!-- 查看图片 --> <!-- 查看图片 -->
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[item.ColumnValue])">{{$t('trials:auditRecord:title:viewImage')}}</span> <span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[item.ColumnValue],'modelcfg')">{{$t('trials:auditRecord:title:viewImage')}}</span>
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false" crossorigin="anonymous" alt=""> <img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
</viewer> </viewer>
<span v-else>{{scope.row[item.ColumnValue]}}</span> <span v-else>{{scope.row[item.ColumnValue]}}</span>
@ -426,9 +426,9 @@
:key="'ChildrenList' + index" :key="'ChildrenList' + index"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<viewer v-if="item.IsPicture" :images="imagesList" :ref="scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]"> <viewer v-if="item.IsPicture" :images="imagesList" :ref="`${scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}_modelcfg`">
<!-- 查看图片 --> <!-- 查看图片 -->
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue])"> <span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue], 'modelcfg')">
{{$t('trials:auditRecord:title:viewImage')}} {{$t('trials:auditRecord:title:viewImage')}}
</span> </span>
<img :src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]" v-show="false" crossorigin="anonymous" alt=""> <img :src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
@ -897,19 +897,22 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
openImage(url) { openImage(url, type) {
console.log(url) console.log(url)
this.$nextTick(()=>{ this.$nextTick(()=>{
if (url instanceof Array) { if (url instanceof Array) {
this.imagesList = url.map(v => this.OSSclientConfig.basePath + v) 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 { } else {
this.imagesList = [this.OSSclientConfig.basePath + url] this.imagesList = [this.OSSclientConfig.basePath + url]
if(this.$refs[url] instanceof Array){ 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{ }else{
this.$refs[url].$viewer.show() let refName = type ? `${url}_${type}` : url
this.$refs[refName].$viewer.show()
} }
} }
}) })