|
|
@ -2,7 +2,7 @@ |
|
|
|
<div class="lend-query"> |
|
|
|
<div class="head-container head-archives clearfix"> |
|
|
|
<div class="archives-crud"> |
|
|
|
<el-button :loading="crud.downloadLoading" size="mini" icon="el-icon-download">导出</el-button> |
|
|
|
<el-button :loading="crud.downloadLoading" :disabled="!selections.length" size="mini" icon="el-icon-download">导出</el-button> |
|
|
|
</div> |
|
|
|
<div class="head-search"> |
|
|
|
<el-select |
|
|
@ -37,11 +37,12 @@ |
|
|
|
style="width: 100%" |
|
|
|
height="calc(100vh - 356px)" |
|
|
|
:data="crud.data" |
|
|
|
:row-key="getRowKey" |
|
|
|
@selection-change="selectionChangeHandler" |
|
|
|
@row-click="clickRowHandler" |
|
|
|
@row-dblclick="handleDbClick" |
|
|
|
> |
|
|
|
<el-table-column type="selection" width="55" /> |
|
|
|
<el-table-column type="selection" :reserve-selection="true" width="55" /> |
|
|
|
<el-table-column type="index" label="序号" align="center" width="55" /> |
|
|
|
<el-table-column prop="borrowType" align="center" label="借阅状态" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -110,7 +111,6 @@ export default { |
|
|
|
selections: [], |
|
|
|
lendStateOptions: [ |
|
|
|
{ value: '全部', label: '全部' }, |
|
|
|
{ value: '1', label: '待登记' }, |
|
|
|
{ value: '2', label: '待借阅' }, |
|
|
|
{ value: '3', label: '待归还' }, |
|
|
|
{ value: '5', label: '逾期' }, |
|
|
@ -146,6 +146,9 @@ export default { |
|
|
|
this.crud.query.caseName = null |
|
|
|
this.crud.query[this.lendSelect] = this.lendQuery[this.lendSelect] |
|
|
|
}, |
|
|
|
selectionChangeHandler(val) { |
|
|
|
this.selections = val |
|
|
|
}, |
|
|
|
clickRowHandler(row) { |
|
|
|
this.$refs.table.toggleRowSelection(row) |
|
|
|
} |
|
|
|