|
|
@ -20,9 +20,9 @@ |
|
|
|
</div> |
|
|
|
<div class="head-search"> |
|
|
|
<!-- 搜索 --> |
|
|
|
<el-select v-if="!recycleMain.isRecycle" v-model="anjuanQuery.enabled" clearable size="small" placeholder="状态" class="filter-item" style="width: 100px" @change="stateSelect"> |
|
|
|
<el-select v-if="!recycleMain.isRecycle" v-model="query.queryType" clearable size="small" placeholder="状态" class="filter-item" style="width: 100px" @change="stateSelect"> |
|
|
|
<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-option v-for="item in stateOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="anjuanQuery[anjuanInputSelect]" clearable size="small" placeholder="请输入关键词" style="width: 220px;" class="input-prepend filter-item" @clear="getTableList()" @keyup.enter.native="getTableList"> |
|
|
|
<el-select slot="prepend" v-model="anjuanInputSelect" style="width: 112px" @change="querySelect(anjuanInputSelect)"> |
|
|
@ -236,15 +236,16 @@ export default { |
|
|
|
anjuanData: [], |
|
|
|
anjuanQuery: {}, |
|
|
|
queryOption: [], |
|
|
|
tableHeight: null, |
|
|
|
anjuanInputSelect: '', |
|
|
|
anjuanTableHeight: null, |
|
|
|
stateOptions: [ // 搜索 - 状态选择 |
|
|
|
{ key: '全部', label: '全部' }, |
|
|
|
{ key: '未装', label: '未装' }, |
|
|
|
{ key: '未入', label: '未入' }, |
|
|
|
{ key: '在库', label: '在库' }, |
|
|
|
{ key: '待借', label: '待借' }, |
|
|
|
{ key: '已借', label: '已借' } |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '4', label: '在库' }, |
|
|
|
{ value: '5', label: '待借' }, |
|
|
|
{ value: '6', label: '已借' } |
|
|
|
], |
|
|
|
isAnjuan: true, // 用于判断卷内-新增/导出按钮 |
|
|
|
lengingVisible: false // 借阅 |
|
|
@ -281,11 +282,20 @@ export default { |
|
|
|
created() { |
|
|
|
this.resetQuery() |
|
|
|
this.selections = [] |
|
|
|
this.query.queryType = this.stateOptions[0].value |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.tableHeight = window.innerHeight - 50 |
|
|
|
}) |
|
|
|
// this.$nextTick(() => { |
|
|
|
// console.log(this.anjuanData.length) |
|
|
|
// if (this.anjuanData.length === 0 || this.anjuanData.length < 10) { |
|
|
|
// console.log('tres') |
|
|
|
// this.anjuanTableHeight = null |
|
|
|
// } else { |
|
|
|
// console.log('666') |
|
|
|
// const h = '100vh' |
|
|
|
// this.anjuanTableHeight = `calc(${h} - 434px)` |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 文件/案卷重置query |
|
|
|