|
|
@ -9,7 +9,7 @@ |
|
|
|
ref="table" |
|
|
|
style="min-width: 100%" |
|
|
|
height="calc(100vh - 355px)" |
|
|
|
:data="tableData" |
|
|
|
:data="crud.data" |
|
|
|
@selection-change="selectionChangeHandler" |
|
|
|
@row-click="clickRowHandler" |
|
|
|
@row-dblclick="handleDbClick" |
|
|
@ -17,14 +17,14 @@ |
|
|
|
<el-table-column type="selection" width="55" /> |
|
|
|
<el-table-column type="index" label="序号" align="center" width="55" /> |
|
|
|
<el-table-column prop="categoryName" label="门类名称" align="center" min-width="85" /> |
|
|
|
<el-table-column prop="archivesID" label="档号" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="titleName" align="center" label="题名" min-width="120" /> |
|
|
|
<el-table-column prop="fieldName" align="center" label="盒名称" min-width="85" /> |
|
|
|
<el-table-column prop="storagePath" align="center" label="存放位置" min-width="120" /> |
|
|
|
<el-table-column prop="archiveNo" label="档号" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="maintitle" align="center" label="题名" min-width="120" /> |
|
|
|
<el-table-column prop="caseName" align="center" label="盒名称" min-width="85" /> |
|
|
|
<el-table-column prop="folderLocationDetails" align="center" label="存放位置" min-width="120" /> |
|
|
|
<el-table-column prop="lendStatus" align="center" label="借阅状态" min-width="60"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- 待登记 --> |
|
|
|
<span class="cell-lend no-lend" style="width:80px">{{ scope.row.lendStatus }}</span> |
|
|
|
<span class="cell-lend no-lend" style="width:80px">{{ scope.row.borrowType | borrowStatus }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="operationTime" align="center" label="操作时间" min-width="85" /> |
|
|
@ -41,23 +41,20 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// import crudUser from '@/api/system/user' |
|
|
|
|
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
// import crudOperation from '@crud/CRUD.operation' |
|
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
|
import { lendingCrud } from '../mixins/lending' |
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
import delConfirm from '../components/delConfirm.vue' |
|
|
|
import archiveDetail from './module/archiveDetail.vue' |
|
|
|
import lendRecord from './module/lendRecord.vue' |
|
|
|
import data2 from '../data2.json' |
|
|
|
export default { |
|
|
|
components: { pagination, delConfirm, archiveDetail, lendRecord }, |
|
|
|
mixins: [presenter(), crud()], |
|
|
|
|
|
|
|
mixins: [presenter(), crud(), lendingCrud], |
|
|
|
cruds() { |
|
|
|
return CRUD({ |
|
|
|
url: 'api/case/initCaseList', |
|
|
|
// crudMethod: caseCrudMethod, |
|
|
|
title: '档案盒', |
|
|
|
url: 'api/borrow/initWaitRegisterList', |
|
|
|
title: '待借档案', |
|
|
|
optShow: { |
|
|
|
add: false, |
|
|
|
edit: false, |
|
|
@ -69,19 +66,13 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tableData: [], |
|
|
|
selections: [], // 选中列表 |
|
|
|
selections: [], |
|
|
|
listName: '待借列表' |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取数据 |
|
|
|
getData() { |
|
|
|
this.tableData = data2.rows |
|
|
|
}, |
|
|
|
handleRecord() { |
|
|
|
this.$refs.lendRecordDom.recordFormVisible = true |
|
|
|
}, |
|
|
|