|
@@ -77,7 +77,7 @@
|
|
|
label="图片"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.fileUrlList.length">图片</el-button>
|
|
|
+ <el-button v-if="scope.row.fileUrlList.length > 0" @click="openPreview(scope.row.fileUrlList, scope.$index)">图片</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
@@ -152,6 +152,19 @@ export default {
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
+ openPreview (imageUrl, index) {
|
|
|
+ let imageUrls = []
|
|
|
+ imageUrl.forEach(val => {
|
|
|
+ imageUrls.push({ url: val })
|
|
|
+ });
|
|
|
+ this.$ImagePreview(imageUrls, index, {
|
|
|
+ closeOnClickModal: true,
|
|
|
+ // beforeClose:()=>{
|
|
|
+ // this.$message.success('关闭回调')
|
|
|
+ // }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//#region 接口
|
|
|
async queryUserAssessmentPage () {//分页获取
|
|
|
let times = []
|