|
|
@ -6,7 +6,7 @@ |
|
|
|
<div class="head-search"> |
|
|
|
<!-- 搜索 --> |
|
|
|
<el-input v-model="query.blurry" clearable size="small" placeholder="请输入关键词" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
|
|
|
<el-select v-model="query.enabled" clearable size="small" placeholder="状态" class="filter-item" style="width: 126px" @change="crud.toQuery"> |
|
|
|
<el-select v-model="query.enabled" clearable size="small" placeholder="状态" class="filter-item" style="width: 100px" @change="crud.toQuery"> |
|
|
|
<i slot="prefix" class="iconfont icon-zhuangtai-fanbai" /> |
|
|
|
<el-option v-for="item in stateOptions" :key="item.key" :label="item.label" :value="item.key" /> |
|
|
|
</el-select> |
|
|
@ -18,6 +18,7 @@ |
|
|
|
<template v-slot:rightButtonGroup> |
|
|
|
<div class="archives-handler-btn"> |
|
|
|
<el-button class="packing-btn iconfont icon-weibiaoti-2" type="primary">装盒</el-button> |
|
|
|
<el-button class="part-btn iconfont icon-weibiaoti-2" type="primary">分卷装盒</el-button> |
|
|
|
<el-button class="warehousing-btn iconfont icon-weibiaoti-2" type="primary">入库</el-button> |
|
|
|
<el-button class="lending-btn iconfont icon-weibiaoti-2" type="primary">借阅</el-button> |
|
|
|
<el-button class="binding-btn iconfont icon-weibiaoti-2" type="primary">绑定标签</el-button> |
|
|
@ -157,13 +158,11 @@ export default { |
|
|
|
// }, |
|
|
|
stateOptions: [ |
|
|
|
{ key: '1', label: '全部' }, |
|
|
|
{ key: '2', label: '已装盒' }, |
|
|
|
{ key: '3', label: '未装盒' }, |
|
|
|
{ key: '4', label: '已入库' }, |
|
|
|
{ key: '5', label: '未入库' }, |
|
|
|
{ key: '6', label: '已借阅' }, |
|
|
|
{ key: '7', label: '可借阅' }, |
|
|
|
{ key: '8', label: '不可借阅' } |
|
|
|
{ key: '2', label: '未装' }, |
|
|
|
{ key: '3', label: '未入' }, |
|
|
|
{ key: '4', label: '在库' }, |
|
|
|
{ key: '5', label: '待借' }, |
|
|
|
{ key: '6', label: '已借' } |
|
|
|
], |
|
|
|
permission: { |
|
|
|
add: ['admin', 'archivesList:add'], |
|
|
@ -190,6 +189,9 @@ export default { |
|
|
|
this.crud.query.categoryId = newValue.id |
|
|
|
this.crud.refresh() |
|
|
|
} |
|
|
|
}, |
|
|
|
tableDisplayFields(val) { |
|
|
|
this.doLayout() |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -224,6 +226,12 @@ export default { |
|
|
|
return true |
|
|
|
}) |
|
|
|
}, |
|
|
|
/* 重新渲染table组件 防止table-fixed 错位 配合watch-table数据 */ |
|
|
|
doLayout() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.table.doLayout() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// // 获取数据前设置默认参数 |
|
|
|
// [CRUD.HOOK.beforeRefresh]() { |
|
|
|
// this.crud.query.id = this.dicPid |
|
|
|