|
|
@@ -39,17 +39,30 @@
|
|
|
<el-table-column prop="versionNumber" header-align="center" align="center" min-width="140"
|
|
|
:show-tooltip-when-overflow="true" label="版本号">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="attachList2" header-align="center" align="center" min-width="100"
|
|
|
- :show-tooltip-when-overflow="true" label="简图">
|
|
|
+ <el-table-column header-align="center" align="center" label="图纸">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.attachList2 && scope.row.attachList2.length" type="text" size="small"
|
|
|
- @click="openImagePreview(scope.row.attachList2)">
|
|
|
- 查看({{ scope.row.attachList2.length }})
|
|
|
+ <el-button v-if="scope.row.drawings && scope.row.drawings.length" type="text" size="small"
|
|
|
+ @click="openImagePreview(scope.row.drawings)">
|
|
|
+ 查看({{ scope.row.drawings.length }})
|
|
|
</el-button>
|
|
|
<el-button v-else type="text" size="small" disabled>
|
|
|
查看(0)
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
+ <el-button :disabled="!scope.row.proDrawings || scope.row.proDrawings.length === 0" type="text" size="small"
|
|
|
+ @click="drawDetails(scope.row)">查看</el-button>
|
|
|
+ </template> -->
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="attachList2" header-align="center" align="center" min-width="100"
|
|
|
+ :show-tooltip-when-overflow="true" label="简图">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="thumb-list" v-if="getImageList(scope.row.attachList2).length">
|
|
|
+ <img v-for="(img, idx) in getImageList(scope.row.attachList2)" :key="(img.url || '') + idx" class="thumb"
|
|
|
+ :src="downloadUrl + img.url" :alt="img.fileName" @click="previewFile(img.fileName, img.url)" />
|
|
|
+ </div>
|
|
|
+ <div v-else style="color: #909399;">暂无图片</div>
|
|
|
+ </template>
|
|
|
<!-- <template slot-scope="scope">
|
|
|
<div class="thumb-list" v-if="getImageList(scope.row.attachList2).length">
|
|
|
<img v-for="(img, idx) in getImageList(scope.row.attachList2)" :key="(img.url || '') + idx" class="thumb"
|