稽查更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
db5e5da06a
commit
dd0cd1ec64
|
@ -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;">
|
||||
{{$t('trials:auditRecord:title:viewDetail')}}
|
||||
</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">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
</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;">
|
||||
{{$t('trials:auditRecord:title:viewDetail')}}
|
||||
</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">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
</template>
|
||||
|
@ -409,9 +409,9 @@
|
|||
:key="'tableList' + index"
|
||||
>
|
||||
<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="">
|
||||
</viewer>
|
||||
<span v-else>{{scope.row[item.ColumnValue]}}</span>
|
||||
|
@ -426,9 +426,9 @@
|
|||
:key="'ChildrenList' + index"
|
||||
>
|
||||
<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')}}
|
||||
</span>
|
||||
<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()
|
||||
},
|
||||
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()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue