|
|
@@ -42,20 +42,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column header-align="center" align="center" min-width="50" label="图纸文件">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="scope.row.attachList && scope.row.attachList.length">
|
|
|
- <template v-if="isImage(scope.row.attachList[0])">
|
|
|
- <img :src="getThumbUrl(scope.row.attachList[0])" :alt="scope.row.attachList[0].fileName"
|
|
|
- style="width:48px;height:48px;object-fit:cover;border-radius:4px;cursor:pointer;border:1px solid #e5e6eb;"
|
|
|
- @click="openImagePreview(scope.row.attachList)" />
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <div title="非图片文件,点击查看图片预览" @click.stop="openImagePreview(scope.row.attachList)"
|
|
|
- style="width:48px;height:48px;border-radius:4px;border:1px solid #e5e6eb;display:flex;align-items:center;justify-content:center;background:#f5f7fa;color:#909399;cursor:pointer;">
|
|
|
- <i class="el-icon-picture-outline" style="font-size:20px;"></i>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <span v-else style="color:#c0c4cc;">无</span>
|
|
|
+ <span v-if="scope.row.attachList && scope.row.attachList.length">
|
|
|
+ <el-link type="primary" @click="openImagePreview(scope.row.attachList)" style="cursor: pointer;">
|
|
|
+ 查看({{ scope.row.attachList.length }})
|
|
|
+ </el-link>
|
|
|
+ </span>
|
|
|
+ <span v-else style="color:#c0c4cc; cursor: not-allowed;">
|
|
|
+ 查看(0)
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column
|