| | |
| | | const tableColumns = ref([ |
| | | { |
| | | label: '文档名称', |
| | | prop: 'documentationId', |
| | | prop: 'docName', |
| | | width: '200', |
| | | formatData: (params) => { |
| | | if (!params) return '-'; |
| | | const doc = documentList.value.find(item => item.id === params); |
| | | return doc ? (doc.docName || doc.name) : params; |
| | | } |
| | | }, |
| | | { label: '借阅人', prop: 'borrower' }, |
| | | { label: '借阅目的', prop: 'borrowPurpose' }, |
| | |
| | | }; |
| | | |
| | | // 打开借阅弹框 |
| | | const openBorrowDia = (type, data) => { |
| | | const openBorrowDia = async (type, data) => { |
| | | // 先刷新文档列表 |
| | | await loadDocumentList(); |
| | | |
| | | borrowOperationType.value = type; |
| | | borrowDia.value = true; |
| | | |