| | |
| | | @pagination="onCurrentChange" |
| | | > |
| | | <template #commonFilesRef="{ row }"> |
| | | <div v-for="item in row.commonFiles"> |
| | | <el-tag type="primary" class="tagBox"> |
| | | {{ item.name }} |
| | | </el-tag> |
| | | </div> |
| | | <el-button |
| | | v-if="row.commonFiles.length !== 0" |
| | | text |
| | | icon="Files" |
| | | type="danger" |
| | | @click="handleFiles(row.commonFiles)" |
| | | > |
| | | 附件下载 |
| | | </el-button> |
| | | <el-text v-else type="danger">暂无附件</el-text> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | |
| | | prop: "commonFiles", |
| | | dataType: "slot", |
| | | slot: "commonFilesRef", |
| | | width: 200, |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // fixed: "right", |
| | |
| | | }); |
| | | }; |
| | | |
| | | // const handleEdit = () => {}; |
| | | const handleFiles = (fileList) => { |
| | | fileList.forEach((e) => { |
| | | proxy.$download.name(e.url); |
| | | }); |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | getTableData(); |