Pre Merge pull request !75 from Nguyendream/N/A

This commit is contained in:
Nguyendream 2021-08-04 07:05:13 +00:00 committed by Gitee
commit 8b39bc3eec

View File

@ -109,12 +109,11 @@
<el-table-column label="文件展示" align="center" prop="url"> <el-table-column label="文件展示" align="center" prop="url">
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
v-if="previewListResource && scope.row.fileSuffix.indexOf('png','jpg','jpeg') > 0" v-if="previewListResource && /png|jpg|jpeg/.test(scope.row.fileSuffix)"
style="width: 100px; height: 100px;" style="width: 100px; height: 100px;"
:src="scope.row.url" :src="scope.row.url"
:preview-src-list="[scope.row.url]"/> :preview-src-list="[scope.row.url]"/>
<span v-text="scope.row.url" <span v-else v-text="scope.row.url"/>
v-if="scope.row.fileSuffix.indexOf('png','jpg','jpeg') < 0 || !previewListResource"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">