| | |
| | | > |
| | | 下载 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click.prevent="showAttachment(scope.row.attachment)" |
| | | v-if="scope.row.attachment && scope.row.attachment.length > 0" |
| | | > |
| | | 查看附件 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | > |
| | | <DocumentViewer :fileUrl="fileUrl"></DocumentViewer> |
| | | </el-drawer> --> |
| | | |
| | | |
| | | <el-dialog |
| | | v-model="attachmentShow" |
| | | title="附件" |
| | | width="500" |
| | | :close-on-click-modal="false" |
| | | :before-close="handleClose" |
| | | > |
| | | <div v-for="(attachment, index) in attachmentList" :key="index"> |
| | | <el-link type="primary" :href="'/api/upload/download?url=' + attachment.url +'&fileName=' + attachment.name"> |
| | | {{ attachment.name }} |
| | | </el-link> |
| | | </div> |
| | | <div></div> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="handleClose">取消</el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | |
| | | const time = ref(null); |
| | | const attachmentShow = ref(false) |
| | | |
| | | const fileType = { |
| | | img: { |
| | |
| | | const searchText = ref(""); |
| | | const searchSubject = ref(""); |
| | | const searchContentType = ref(""); |
| | | const attachmentList = ref([]); |
| | | |
| | | const loading = ref(false); |
| | | |
| | |
| | | const total = ref(0); |
| | | // const fileUrl = ref(""); |
| | | const fileViewer = ref(false); |
| | | |
| | | const handleClose = () => { |
| | | attachmentShow.value = false |
| | | } |
| | | |
| | | const showAttachment = (attachmentListParam) => { |
| | | |
| | | attachmentList.value = attachmentListParam |
| | | console.log(attachmentList.value, "ww") |
| | | attachmentShow.value = true |
| | | } |
| | | |
| | | const checkRow = (item) => { |
| | | // fileUrl.value = item.contentUrl.url; |
| | | fileType[item.contentType] && fileType[item.contentType].handle(item); |