|
|
|
@ -33,7 +33,7 @@ |
|
|
|
</div> |
|
|
|
<div v-if="this.$route.path.indexOf('dashboard') === -1" class="search-result"> |
|
|
|
<div v-show="isShow" class="search-title"> |
|
|
|
<!-- <el-button v-if="resNum !== 0" class="lending-btn iconfont" :disabled="selections.length === 0" type="primary" @click="handleLending"><i class="iconfont icon-chuku-fanbai" style="margin-right: 6px;" />借阅</el-button> --> |
|
|
|
<el-button v-if="resNum !== 0" class="lending-btn iconfont" :disabled="selections.length === 0" type="primary" @click="handleLending"><i class="iconfont icon-chuku-fanbai" style="margin-right: 6px;" />借阅</el-button> |
|
|
|
<p v-if="resNum === 0" class="search-res-left">检索结果</p> |
|
|
|
<p :class="{'search-res-num' : resNum !== 0 }">本次检索结果共计{{ resNum }}条数据</p> |
|
|
|
<el-checkbox v-if="resNum !== 0" v-model="fixedStatusBar">隐藏状态栏</el-checkbox> |
|
|
|
@ -87,11 +87,11 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- 未绑 / 已绑 --> |
|
|
|
<el-table-column label="标签" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
|
<!-- <el-table-column label="标签" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.category_type !== 3" :class="['row-state', 'row-binding', scope.row.tag_no ? 'state-active' : '' ]">{{ scope.row.tag_no ? '已绑': '未绑' }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> --> |
|
|
|
<!-- state-active 已装/已入/已借/已绑 --> |
|
|
|
<!-- 未装 / 已装 --> |
|
|
|
<el-table-column label="装盒" width="100" align="center" :fixed="fixedStatusBar ? false : 'right' "> |
|
|
|
@ -174,8 +174,8 @@ export default { |
|
|
|
keywords: '', |
|
|
|
select: ['maintitle'], |
|
|
|
options: [ |
|
|
|
{ value: 'maintitle', label: '姓名' }, |
|
|
|
{ value: 'archive_no', label: '编号' } |
|
|
|
{ value: 'maintitle', label: '题名' }, |
|
|
|
{ value: 'archive_no', label: '档号' } |
|
|
|
// { value: 'responsibleby', label: '责任者' }, |
|
|
|
// { value: 'doc_no', label: '发文字号' }, |
|
|
|
// { value: 'record_type', label: '文种' }, |
|
|
|
@ -537,7 +537,8 @@ export default { |
|
|
|
}, |
|
|
|
// 借阅 |
|
|
|
handleLending() { |
|
|
|
const index = this.selections.findIndex((item) => item.is_storage === 0 || item.is_storage === '' || item.is_storage === 1) |
|
|
|
console.log('selections', this.selections) |
|
|
|
const index = this.selections.findIndex((item) => item.is_storage === 0 || item.is_storage === null || item.is_storage === '' || item.is_storage === 1) |
|
|
|
const index2 = this.selections.findIndex((item) => item.is_borrow === 3) |
|
|
|
const index3 = this.selections.findIndex((item) => item.is_storage === 3) |
|
|
|
if (index !== -1) { |
|
|
|
|