|
|
@ -2,22 +2,9 @@ |
|
|
|
<div> |
|
|
|
<div class="head-container dpflex"> |
|
|
|
<div> |
|
|
|
<el-input |
|
|
|
v-model="keyWord" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
placeholder="请输入关键词" |
|
|
|
style="width: 300px;margin-right:10px;" |
|
|
|
class="input-prepend filter-item" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
> |
|
|
|
<el-input v-model="keyWord" size="small" clearable placeholder="请输入关键词" style="width: 300px;margin-right:10px;" class="input-prepend filter-item" @keyup.enter.native="crud.toQuery"> |
|
|
|
<el-select slot="prepend" v-model="optionVal" style="width: 88px"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
</el-input> |
|
|
|
<rrOperation /> |
|
|
@ -29,17 +16,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table |
|
|
|
ref="table" |
|
|
|
v-loading="crud.loading" |
|
|
|
style="width: 100%" |
|
|
|
height="calc(100vh - 357px)" |
|
|
|
:data="crud.data" |
|
|
|
:cell-class-name="cell" |
|
|
|
@row-click="clickRowHandler" |
|
|
|
@row-dblclick="handleDbClick" |
|
|
|
@selection-change="selectionChangeHandler" |
|
|
|
> |
|
|
|
<el-table ref="table" v-loading="crud.loading" style="width: 100%" height="calc(100vh - 357px)" :data="crud.data" :cell-class-name="cell" @row-click="clickRowHandler" @row-dblclick="handleDbClick" @selection-change="selectionChangeHandler"> |
|
|
|
<el-table-column type="selection" width="55" /> |
|
|
|
<el-table-column type="index" label="序号" align="center" width="80" /> |
|
|
|
<el-table-column prop="storageType" label="状态" align="center" min-width="90"> |
|
|
@ -99,7 +76,7 @@ |
|
|
|
import rrOperation from '@crud/RR.operation' |
|
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
import { grant, grantConfirm, initStorageLogList, initStorageLogDetailes } from '@/api/archivesManage/outInStorage' |
|
|
|
import { grant, grantConfirm, initStorageDetailes } from '@/api/archivesManage/outInStorage' |
|
|
|
import detailDialog from '../module/detailDialog.vue' |
|
|
|
|
|
|
|
export default { |
|
|
@ -146,24 +123,35 @@ export default { |
|
|
|
clickRowHandler(row) { |
|
|
|
this.$refs.table.toggleRowSelection(row) // 单击选中 |
|
|
|
}, |
|
|
|
// async handleDbClick(row) { |
|
|
|
// this.$refs.detailDom.rowData = row |
|
|
|
// let logId = null |
|
|
|
// // 获取logId |
|
|
|
// await initStorageLogList().then(res => { |
|
|
|
// const arr = res.content.filter(item => item.caseId === row.id) |
|
|
|
// const logIdArr = arr.map(item => { return item.id }) |
|
|
|
// logId = Math.max(...logIdArr) |
|
|
|
// }) |
|
|
|
// const params = { |
|
|
|
// 'logId': logId |
|
|
|
// } |
|
|
|
// // 调取详情接口 |
|
|
|
// initStorageLogDetailes(params).then(res => { |
|
|
|
// this.$refs.detailDom.tableData = res |
|
|
|
// }) |
|
|
|
// this.$refs.detailDom.detailVisible = true |
|
|
|
// }, |
|
|
|
// 双击 详情 |
|
|
|
async handleDbClick(row) { |
|
|
|
handleDbClick(row) { |
|
|
|
console.log(1) |
|
|
|
this.$refs.detailDom.rowData = row |
|
|
|
let logId = null |
|
|
|
// 获取logId |
|
|
|
await initStorageLogList().then(res => { |
|
|
|
const arr = res.content.filter(item => item.caseId === row.id) |
|
|
|
const logIdArr = arr.map(item => { return item.id }) |
|
|
|
logId = Math.max(...logIdArr) |
|
|
|
}) |
|
|
|
const params = { |
|
|
|
'logId': logId |
|
|
|
caseId: row.id |
|
|
|
} |
|
|
|
// 调取详情接口 |
|
|
|
initStorageLogDetailes(params).then(res => { |
|
|
|
this.$refs.detailDom.tableData = res |
|
|
|
initStorageDetailes(params).then(res => { |
|
|
|
this.$refs.detailDom.tableData = res.archivesSummaries |
|
|
|
this.$refs.detailDom.detailVisible = true |
|
|
|
}) |
|
|
|
this.$refs.detailDom.detailVisible = true |
|
|
|
}, |
|
|
|
selectionChangeHandler(val) { |
|
|
|
this.selections = val |
|
|
@ -233,19 +221,19 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import "~@/assets/styles/archives-manage.scss"; |
|
|
|
@import '~@/assets/styles/lend-manage.scss'; |
|
|
|
.setting-dialog{ |
|
|
|
@import "~@/assets/styles/lend-manage.scss"; |
|
|
|
.setting-dialog { |
|
|
|
color: #fff; |
|
|
|
font-size: 16px; |
|
|
|
} |
|
|
|
.dpflex{ |
|
|
|
.dpflex { |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
.orange-btn{ |
|
|
|
.orange-btn { |
|
|
|
width: 76px; |
|
|
|
height: 30px; |
|
|
|
} |
|
|
|
.green-btn{ |
|
|
|
.green-btn { |
|
|
|
width: 106px; |
|
|
|
height: 30px; |
|
|
|
} |
|
|
|