|
|
@ -45,9 +45,9 @@ |
|
|
|
placeholder="快速检索" |
|
|
|
suffix-icon="el-icon-search" |
|
|
|
/> |
|
|
|
<div class="propListHeader"> |
|
|
|
<!-- <div class="propListHeader"> |
|
|
|
<el-checkbox v-model="checkAll" :indeterminate="isIndeterminate" @change="checkAllChange">全部选择</el-checkbox> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
<el-tree |
|
|
|
ref="treeClassify" |
|
|
|
v-loading="classifyLoading" |
|
|
@ -97,20 +97,21 @@ |
|
|
|
/> |
|
|
|
</el-select> --> |
|
|
|
<div class="search-input"> |
|
|
|
<el-input v-model="keywords" placeholder="请输入检索关键字" class="input-with-select"> |
|
|
|
<el-input v-model="searchkeywords" placeholder="请输入检索关键字" class="input-with-select"> |
|
|
|
<el-button slot="append" icon="el-icon-search" @click="handledResultSearch">搜索</el-button> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
<span class="change-search" @click="returnAdvanced">高级检索</span> |
|
|
|
</div> |
|
|
|
<div v-if="tipShow" class="search-tip"> |
|
|
|
<div class="search-tip"> |
|
|
|
<div v-if="isCommon">检索 “<span>{{ keywords }}</span>” 成功获得<i>{{ page.total }}</i>条结果</div> |
|
|
|
<div v-else>检索成功获得<i>{{ page.total }}</i>条结果<p>高级检索 点击查看检索条件</p></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="resultData.length !== 0" v-loading="resultLoading" class="result-list"> |
|
|
|
<div v-for="(item,index) in resultData" :key="index" class="result-item" @dblclick="handleDetail"> |
|
|
|
<div class="result-item-title"><span>案卷</span><p>{{ item.maintitle }}</p></div> |
|
|
|
<div v-loading="resultLoading"> |
|
|
|
<div v-if="resultData.length !== 0" class="result-list"> |
|
|
|
<div v-for="(item,index) in resultData" :key="index" class="result-item" @dblclick="handleDetail(item)"> |
|
|
|
<div class="result-item-title"><span>{{ getFileType(item.categoryLevel) }}</span><p>{{ item.maintitle }}</p></div> |
|
|
|
<p class="result-item-content" v-html="highlightKeywords(item.matekey)" /> |
|
|
|
<div class="result-item-info"> |
|
|
|
<p>档号:{{ item.archiveNo }}</p> |
|
|
@ -119,14 +120,14 @@ |
|
|
|
<p>档案分类:{{ item.archivesClassName }}</p> |
|
|
|
</div> |
|
|
|
<div class="item-top-tag"> |
|
|
|
<span>实体</span> |
|
|
|
<span>标签</span> |
|
|
|
<span>装盒</span> |
|
|
|
<span>入库</span> |
|
|
|
<span>借阅</span> |
|
|
|
<span v-if="item.isEntity === 1">实体</span> |
|
|
|
<span v-if="item.tid !== null">标签</span> |
|
|
|
<span v-if="item.caseNo !== null">装盒</span> |
|
|
|
<span v-if="item.folderLocation !== ''">入库</span> |
|
|
|
<span v-if="item.isBorrow">借阅</span> |
|
|
|
</div> |
|
|
|
<div class="item-bottom-handle"> |
|
|
|
<span @click.stop="handleDetail">查看详情</span> |
|
|
|
<span @click.stop="handleDetail(item)">查看详情</span> |
|
|
|
<i class="iconfont icon-liuchengfaqi" @click.stop="initiateLending" /> |
|
|
|
<i class="iconfont icon-jiarujieyueche" @click.stop="addLending" /> |
|
|
|
</div> |
|
|
@ -145,13 +146,14 @@ |
|
|
|
/> |
|
|
|
<el-empty v-else description="暂无更多数据" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 档案详情 --> |
|
|
|
<ArchivesInfo ref="archivesInfo" :selected-category="selectedCategory" :arc-id="arcId" /> |
|
|
|
<ArchivesInfo ref="archivesInfo" :category-id="categoryId" :arc-id="arcId" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script > |
|
|
|
import { FetchInitSearchFonds, FetchInitSearchCategory, FetchInitSearchArchiveCtgNo, FetchResearch } from '@/api/archiveUtilize/archiveUtilize' |
|
|
|
import { FetchInitSearchFonds, FetchInitSearchCategory, FetchInitSearchArchiveCtgNo, FetchResearch, FetchSeniorSearch } from '@/api/archiveUtilize/archiveUtilize' |
|
|
|
import ArchivesInfo from '@/views/components/archivesDetail/detail.vue' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
export default { |
|
|
@ -230,12 +232,10 @@ export default { |
|
|
|
} |
|
|
|
], |
|
|
|
status: null, |
|
|
|
searchkeywords: '', |
|
|
|
keywords: '', |
|
|
|
selectedCategory: { |
|
|
|
id: 'DAAC5ED3F86D6481C3C1A5', |
|
|
|
arrangeType: 3 |
|
|
|
}, |
|
|
|
arcId: 'E7DBAF69F1691B063A3129', |
|
|
|
categoryId: null, |
|
|
|
arcId: '', |
|
|
|
page: { |
|
|
|
page: 1, |
|
|
|
size: 10, |
|
|
@ -250,13 +250,14 @@ export default { |
|
|
|
resultData: [], |
|
|
|
classifyLoading: false, |
|
|
|
resultLoading: false, |
|
|
|
tipShow: false |
|
|
|
condition: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'user' |
|
|
|
]) |
|
|
|
|
|
|
|
}, |
|
|
|
watch: { |
|
|
|
filterFondsText(val) { |
|
|
@ -278,10 +279,23 @@ export default { |
|
|
|
this.getArchiveCtgNo(null) |
|
|
|
console.log(localStorage.getItem('searchKeywords')) |
|
|
|
if (localStorage.getItem('searchKeywords')) { |
|
|
|
this.searchkeywords = localStorage.getItem('searchKeywords') |
|
|
|
this.keywords = localStorage.getItem('searchKeywords') |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getFileType(categoryLevel) { |
|
|
|
if (categoryLevel === 1) { |
|
|
|
return '项目' |
|
|
|
} else if (categoryLevel === 2) { |
|
|
|
return '案卷' |
|
|
|
} else if (categoryLevel === 3) { |
|
|
|
return '文件' |
|
|
|
} else if (categoryLevel === 4) { |
|
|
|
return '电子原文' |
|
|
|
} |
|
|
|
return '' |
|
|
|
}, |
|
|
|
highlightKeywords(text) { |
|
|
|
if (!text) { |
|
|
|
return false |
|
|
@ -302,11 +316,13 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handledResultSearch() { |
|
|
|
if (this.keywords) { |
|
|
|
if (this.searchkeywords) { |
|
|
|
this.$emit('common-search') |
|
|
|
this.resultData = [] |
|
|
|
this.resultLoading = true |
|
|
|
this.tipShow = true |
|
|
|
this.keywords = this.searchkeywords |
|
|
|
const params = { |
|
|
|
'keywords': this.keywords, |
|
|
|
'keywords': this.searchkeywords, |
|
|
|
'archiveCtgNos': this.classifysKeys, // 档案分类 |
|
|
|
'categoryIds': this.categoryKeys, // 档案门类 |
|
|
|
'categoryLevel': this.levelsKeys, // 档案层级 |
|
|
@ -327,10 +343,31 @@ export default { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.tipShow = false |
|
|
|
this.$message({ message: '请输入检索关键字段', type: 'error', offset: 8 }) |
|
|
|
} |
|
|
|
}, |
|
|
|
getSeniorSearch() { |
|
|
|
this.searchkeywords = '' |
|
|
|
this.resultData = [] |
|
|
|
this.resultLoading = true |
|
|
|
const params = { |
|
|
|
'condition': this.condition, |
|
|
|
'archiveCtgNos': this.classifysKeys, // 档案分类 |
|
|
|
'categoryIds': this.categoryKeys, // 档案门类 |
|
|
|
'categoryLevel': this.levelsKeys, // 档案层级 |
|
|
|
'fondsNos': this.fondsKeys, // 全宗 |
|
|
|
'page': this.page.page - 1, |
|
|
|
'size': this.page.size |
|
|
|
} |
|
|
|
console.log(params) |
|
|
|
FetchSeniorSearch(params).then(res => { |
|
|
|
this.resultData = res.content |
|
|
|
this.page.total = res.totalElements |
|
|
|
setTimeout(() => { |
|
|
|
this.resultLoading = false |
|
|
|
}, 600) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getFondsDatas() { |
|
|
|
FetchInitSearchFonds().then(res => { |
|
|
|
this.fondsOptions = res |
|
|
@ -376,9 +413,7 @@ export default { |
|
|
|
} |
|
|
|
FetchInitSearchArchiveCtgNo(params).then(res => { |
|
|
|
this.classifyOptions = res |
|
|
|
setTimeout(() => { |
|
|
|
this.classifyLoading = false |
|
|
|
}, 600) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleChange(val) { |
|
|
@ -408,6 +443,11 @@ export default { |
|
|
|
this.fondsKeys = checkedKeys.map(item => item.fondsId) |
|
|
|
} |
|
|
|
console.log('fondsKeys', this.fondsKeys) |
|
|
|
if (this.isCommon) { |
|
|
|
this.handledResultSearch() |
|
|
|
} else { |
|
|
|
this.getSeniorSearch() |
|
|
|
} |
|
|
|
}, |
|
|
|
getCategoryCheckedKeys() { |
|
|
|
const checkedKeys = this.$refs.treeCategory.getCheckedNodes() |
|
|
@ -417,6 +457,12 @@ export default { |
|
|
|
this.categoryKeys = checkedKeys.map(item => item.id) |
|
|
|
} |
|
|
|
this.getArchiveCtgNo(this.categoryKeys) |
|
|
|
console.log(this.isCommon) |
|
|
|
if (this.isCommon) { |
|
|
|
this.handledResultSearch() |
|
|
|
} else { |
|
|
|
this.getSeniorSearch() |
|
|
|
} |
|
|
|
console.log('categoryKeys', this.categoryKeys) |
|
|
|
}, |
|
|
|
checkAllChange() { |
|
|
@ -440,6 +486,11 @@ export default { |
|
|
|
this.classifysKeys = checkedKeys.map(item => item.code) |
|
|
|
} |
|
|
|
console.log('classifysKeys', this.classifysKeys) |
|
|
|
if (this.isCommon) { |
|
|
|
this.handledResultSearch() |
|
|
|
} else { |
|
|
|
this.getSeniorSearch() |
|
|
|
} |
|
|
|
}, |
|
|
|
getLevelCheckedKeys() { |
|
|
|
const checkedKeys = this.$refs.treeLevel.getCheckedNodes() |
|
|
@ -449,44 +500,31 @@ export default { |
|
|
|
this.levelsKeys = checkedKeys.map(item => item.value) |
|
|
|
} |
|
|
|
console.log('levelsKeys', this.levelsKeys) |
|
|
|
if (this.isCommon) { |
|
|
|
this.handledResultSearch() |
|
|
|
} else { |
|
|
|
this.getSeniorSearch() |
|
|
|
} |
|
|
|
}, |
|
|
|
returnAdvanced() { |
|
|
|
this.$emit('close-result') |
|
|
|
}, |
|
|
|
handleDetail() { |
|
|
|
// this.arcId = row.id |
|
|
|
handleDetail(row) { |
|
|
|
this.categoryId = row.categoryId |
|
|
|
this.arcId = row.archivesId |
|
|
|
this.$nextTick(() => { |
|
|
|
// if (this.selectedCategory.arrangeType !== 1) { |
|
|
|
// this.$refs.archivesInfo.isHasFile = false |
|
|
|
// if (this.activeIndex === 1) { |
|
|
|
// this.$refs.archivesInfo.detailTitle = '文件详情' |
|
|
|
// this.$refs.archivesInfo.isHasFile = true |
|
|
|
// this.$refs.archivesInfo.getDetial(3, this.arcId) |
|
|
|
// } else { |
|
|
|
// if (row.categoryLevel !== 1) { |
|
|
|
// this.$refs.archivesInfo.detailTitle = '案卷详情' |
|
|
|
// this.$refs.archivesInfo.getDetial(2, this.arcId) |
|
|
|
// } |
|
|
|
// this.$refs.archivesInfo.getDetial(2, row.archivesId) |
|
|
|
// } else { |
|
|
|
// this.$refs.archivesInfo.isHasFile = true |
|
|
|
// this.$refs.archivesInfo.detailTitle = '文件详情' |
|
|
|
// this.$refs.archivesInfo.getDetial(3, this.arcId) |
|
|
|
// this.$refs.archivesInfo.getDetial(3, row.archivesId) |
|
|
|
// } |
|
|
|
|
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$refs.archivesInfo.isHasFile = true |
|
|
|
// this.$refs.archivesInfo.detailTitle = '卷内详情' |
|
|
|
// this.$refs.archivesInfo.archivesInfoVisible = true |
|
|
|
// this.$refs.archivesInfo.archivesTabIndex = 0 |
|
|
|
// this.$refs.archivesInfo.getDetial(3, this.arcId) |
|
|
|
// }) |
|
|
|
|
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$refs.archivesInfo.detailTitle = '项目详情' |
|
|
|
// this.$refs.archivesInfo.archivesInfoVisible = true |
|
|
|
// this.$refs.archivesInfo.archivesTabIndex = 0 |
|
|
|
// this.$refs.archivesInfo.getDetial(1, this.arcId) |
|
|
|
// }) |
|
|
|
|
|
|
|
this.$refs.archivesInfo.isHasFile = true |
|
|
|
this.$refs.archivesInfo.detailTitle = '文件详情' |
|
|
|
this.$refs.archivesInfo.getDetial(3, row.archivesId) |
|
|
|
this.$refs.archivesInfo.isFourTest = true |
|
|
|
this.$refs.archivesInfo.archivesInfoVisible = true |
|
|
|
this.$refs.archivesInfo.archivesTabIndex = 0 |
|
|
|
}) |
|
|
@ -517,9 +555,11 @@ export default { |
|
|
|
handleSizeChange(size) { |
|
|
|
this.page.size = size |
|
|
|
this.page.page = 1 |
|
|
|
this.handledResultSearch() |
|
|
|
}, |
|
|
|
handleCurrentPage(val) { |
|
|
|
this.page.page = val |
|
|
|
this.handledResultSearch() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -651,9 +691,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.result-list{ |
|
|
|
margin: 20px 0; |
|
|
|
margin: 20px 0 0 0; |
|
|
|
padding: 0 20px; |
|
|
|
height: calc(100vh - 259px); |
|
|
|
height: calc(100vh - 296px); |
|
|
|
overflow: hidden; |
|
|
|
overflow-y: scroll; |
|
|
|
.result-item{ |
|
|
@ -741,6 +781,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.el-pagination{ |
|
|
|
margin: 10px 16px 0 10px !important; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{ |
|
|
|
background-color: transparent !important; |
|
|
|