|
|
@ -39,7 +39,7 @@ |
|
|
|
<el-table-column prop="borrowType" align="center" label="借阅状态" min-width="70"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- 待借阅 --> |
|
|
|
<span class="cell-lend no-lend" style="width:76px">{{ scope.row.borrowType | borrowStatus }}</span> |
|
|
|
<span :class="borrowStyle(scope.row.borrowType)" style="width:76px">{{ scope.row.borrowType | borrowStatus }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createTime" align="center" label="操作时间" min-width="120"> |
|
|
@ -49,6 +49,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<!-- 异常处理 --> |
|
|
|
<el-dialog title="异常处理" :visible.sync="exceptionVisible" :close-on-click-modal="false" :before-close="handleClose"> |
|
|
|
<span class="dialog-right-top" /> |
|
|
|
<span class="dialog-left-bottom" /> |
|
|
@ -101,17 +102,22 @@ export default { |
|
|
|
methods: { |
|
|
|
// 档案异常处理 |
|
|
|
handleBorrowException() { |
|
|
|
const index = this.selections.findIndex(item => item.borrowType === -1) |
|
|
|
if (index === -1) { |
|
|
|
this.exceptionVisible = true |
|
|
|
} else { |
|
|
|
this.$message.error('当前档案为异常状态,请勿重复操作!') |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
// 确认加入异常 |
|
|
|
handleExceptionConfirm() { |
|
|
|
this.tableLoading = true |
|
|
|
const params = this.selections.map(item => item.archivesId) |
|
|
|
const params = this.selections.map(item => item.id) |
|
|
|
FetchBorrowException(params).then(data => { |
|
|
|
if (data === this.selections.length) { |
|
|
|
this.$message.success('已成功加入异常!') |
|
|
|
this.exceptionVisible = false |
|
|
|
this.tableLoading = false |
|
|
|
this.getArchivesTable() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|