|  | @ -46,7 +46,7 @@ | 
		
	
		
			
				|  |  |           :data="tableData" |  |  |           :data="tableData" | 
		
	
		
			
				|  |  |           style="width: 100%;" |  |  |           style="width: 100%;" | 
		
	
		
			
				|  |  |           height="calc(100vh - 534px)" |  |  |           height="calc(100vh - 534px)" | 
		
	
		
			
				|  |  |           @row-dblclick="handleDbClick" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           @cell-dblclick="handleDbClick" | 
		
	
		
			
				|  |  |           @select-all="selectAll" |  |  |           @select-all="selectAll" | 
		
	
		
			
				|  |  |           @row-click="clickRowHandler" |  |  |           @row-click="clickRowHandler" | 
		
	
		
			
				|  |  |           @select="handleCurrentChange" |  |  |           @select="handleCurrentChange" | 
		
	
	
		
			
				|  | @ -111,7 +111,8 @@ | 
		
	
		
			
				|  |  |         <el-pagination :page-size.sync="page.size" :total="page.total" :current-page.sync="page.page" style="margin-top: 8px;" layout="total, prev, pager, next, sizes" @size-change="sizeChangeHandler($event)" @current-change="pageChangeHandler" /> |  |  |         <el-pagination :page-size.sync="page.size" :total="page.total" :current-page.sync="page.page" style="margin-top: 8px;" layout="total, prev, pager, next, sizes" @size-change="sizeChangeHandler($event)" @current-change="pageChangeHandler" /> | 
		
	
		
			
				|  |  |       </div> |  |  |       </div> | 
		
	
		
			
				|  |  |       <!-- 详情 --> |  |  |       <!-- 详情 --> | 
		
	
		
			
				|  |  |       <detailDialog ref="detailDom" @openCol="openCol" /> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       <!-- <detailDialog ref="detailDom" @openCol="openCol" /> --> | 
		
	
		
			
				|  |  |  |  |  |       <ArchivesInfo ref="archivesInfo" :category-id="categoryId" :arc-id="arcId" /> | 
		
	
		
			
				|  |  |       <!-- 借阅 --> |  |  |       <!-- 借阅 --> | 
		
	
		
			
				|  |  |       <el-dialog title="借阅" :visible.sync="lengingVisible" :close-on-click-modal="false" :before-close="handleClose"> |  |  |       <el-dialog title="借阅" :visible.sync="lengingVisible" :close-on-click-modal="false" :before-close="handleClose"> | 
		
	
		
			
				|  |  |         <span class="dialog-right-top" /> |  |  |         <span class="dialog-right-top" /> | 
		
	
	
		
			
				|  | @ -130,13 +131,21 @@ | 
		
	
		
			
				|  |  | </template> |  |  | </template> | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | <script> |  |  | <script> | 
		
	
		
			
				|  |  | import detailDialog from './module/detailDialog.vue' |  |  |  | 
		
	
		
			
				|  |  | import { querySeniorArchives, FetchArchivesDetails, FetchArchivesMetadata } from '@/api/archivesManage/archivesList' |  |  |  | 
		
	
		
			
				|  |  |  |  |  | import ArchivesInfo from '../../archivesManage/archivesList/module/archivesInfo/index' | 
		
	
		
			
				|  |  |  |  |  | // import detailDialog from './module/detailDialog.vue' | 
		
	
		
			
				|  |  |  |  |  | // , FetchArchivesDetails, FetchArchivesMetadata | 
		
	
		
			
				|  |  |  |  |  | import { getCategoryTree } from '@/api/category/category' | 
		
	
		
			
				|  |  |  |  |  | import { querySeniorArchives } from '@/api/archivesManage/archivesList' | 
		
	
		
			
				|  |  | import { FetchIsExistBorrow, FetchAddArchivesWaitRegister } from '@/api/archivesManage/lendManage' |  |  | import { FetchIsExistBorrow, FetchAddArchivesWaitRegister } from '@/api/archivesManage/lendManage' | 
		
	
		
			
				|  |  | import CallExternal from '@/api/storeManage/deviceManage/device' |  |  | import CallExternal from '@/api/storeManage/deviceManage/device' | 
		
	
		
			
				|  |  | export default { |  |  | export default { | 
		
	
		
			
				|  |  |   name: 'ArchivesSearch', |  |  |   name: 'ArchivesSearch', | 
		
	
		
			
				|  |  |   components: { detailDialog }, |  |  |  | 
		
	
		
			
				|  |  |  |  |  |   components: { ArchivesInfo }, | 
		
	
		
			
				|  |  |  |  |  |   provide() { | 
		
	
		
			
				|  |  |  |  |  |     return { | 
		
	
		
			
				|  |  |  |  |  |       recycleMain: this | 
		
	
		
			
				|  |  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |  |   }, | 
		
	
		
			
				|  |  |   props: { |  |  |   props: { | 
		
	
		
			
				|  |  |     isHomeSearch: { |  |  |     isHomeSearch: { | 
		
	
		
			
				|  |  |       type: Boolean, |  |  |       type: Boolean, | 
		
	
	
		
			
				|  | @ -145,6 +154,9 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   data() { |  |  |   data() { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |  |  |  |       categoryTree: null, | 
		
	
		
			
				|  |  |  |  |  |       categoryId: null, | 
		
	
		
			
				|  |  |  |  |  |       arcId: null, | 
		
	
		
			
				|  |  |       loading: false, |  |  |       loading: false, | 
		
	
		
			
				|  |  |       tableData: [], |  |  |       tableData: [], | 
		
	
		
			
				|  |  |       selections: [], |  |  |       selections: [], | 
		
	
	
		
			
				|  | @ -205,6 +217,7 @@ export default { | 
		
	
		
			
				|  |  |     await this.getDeviceListAll() |  |  |     await this.getDeviceListAll() | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   mounted() { |  |  |   mounted() { | 
		
	
		
			
				|  |  |  |  |  |     this.getCateMenu() | 
		
	
		
			
				|  |  |     if (localStorage.getItem('homeSearchWords') !== null) { |  |  |     if (localStorage.getItem('homeSearchWords') !== null) { | 
		
	
		
			
				|  |  |       this.keywords = localStorage.getItem('homeSearchWords') |  |  |       this.keywords = localStorage.getItem('homeSearchWords') | 
		
	
		
			
				|  |  |       const homeSearchSelect = localStorage.getItem('homeSearchSelect') |  |  |       const homeSearchSelect = localStorage.getItem('homeSearchSelect') | 
		
	
	
		
			
				|  | @ -254,36 +267,78 @@ export default { | 
		
	
		
			
				|  |  |     handleCurrentChange(selection, row) { |  |  |     handleCurrentChange(selection, row) { | 
		
	
		
			
				|  |  |       this.selections = selection |  |  |       this.selections = selection | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 双击详情 |  |  |  | 
		
	
		
			
				|  |  |     handleDbClick(row) { |  |  |  | 
		
	
		
			
				|  |  |       const params = { |  |  |  | 
		
	
		
			
				|  |  |         'categoryId': row.category_id, |  |  |  | 
		
	
		
			
				|  |  |         'archivesId': row.archives_id |  |  |  | 
		
	
		
			
				|  |  |       } |  |  |  | 
		
	
		
			
				|  |  |       FetchArchivesDetails(params).then(res => { |  |  |  | 
		
	
		
			
				|  |  |         if (res) { |  |  |  | 
		
	
		
			
				|  |  |           const rowData = {} |  |  |  | 
		
	
		
			
				|  |  |           res.forEach(item => { |  |  |  | 
		
	
		
			
				|  |  |             rowData[item.fieldName] = item.context |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     getCateMenu() { | 
		
	
		
			
				|  |  |  |  |  |       getCategoryTree().then(res => { | 
		
	
		
			
				|  |  |  |  |  |         this.categoryTree = res | 
		
	
		
			
				|  |  |  |  |  |         console.log('this.categoryTree', this.categoryTree) | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  | 
 |  |  |  | 
		
	
		
			
				|  |  |           // 是否显示开架按钮 |  |  |  | 
		
	
		
			
				|  |  |           if (rowData.folder_location !== null) { |  |  |  | 
		
	
		
			
				|  |  |             this.openLocation = rowData.folder_location |  |  |  | 
		
	
		
			
				|  |  |             this.$refs.detailDom.isShowOpen = true |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     findItemById(data, id) { | 
		
	
		
			
				|  |  |  |  |  |       if (Array.isArray(data)) { | 
		
	
		
			
				|  |  |  |  |  |         for (const item of data) { | 
		
	
		
			
				|  |  |  |  |  |           const result = this.findItemById(item, id) | 
		
	
		
			
				|  |  |  |  |  |           if (result) return result | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |       } else if (typeof data === 'object') { | 
		
	
		
			
				|  |  |  |  |  |         if (data.id === id) { | 
		
	
		
			
				|  |  |  |  |  |           return data | 
		
	
		
			
				|  |  |         } else { |  |  |         } else { | 
		
	
		
			
				|  |  |             this.openLocation = null |  |  |  | 
		
	
		
			
				|  |  |             this.$refs.detailDom.isShowOpen = false |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           if (data.children && data.children.length > 0) { | 
		
	
		
			
				|  |  |  |  |  |             return this.findItemById(data.children, id) | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  | 
 |  |  |  | 
		
	
		
			
				|  |  |           this.$refs.detailDom.rowData = rowData |  |  |  | 
		
	
		
			
				|  |  |           // 元数据 |  |  |  | 
		
	
		
			
				|  |  |           FetchArchivesMetadata(params).then(res => { |  |  |  | 
		
	
		
			
				|  |  |             this.$refs.detailDom.xmlStr = res |  |  |  | 
		
	
		
			
				|  |  |           }) |  |  |  | 
		
	
		
			
				|  |  |           this.$refs.detailDom.detailVisible = true |  |  |  | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |       }) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |       return null | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |     // 双击详情 | 
		
	
		
			
				|  |  |  |  |  |     handleDbClick(row) { | 
		
	
		
			
				|  |  |  |  |  |       console.log(this.$refs.archivesInfo) | 
		
	
		
			
				|  |  |  |  |  |       this.categoryId = row.category_id | 
		
	
		
			
				|  |  |  |  |  |       this.arcId = row.archives_id | 
		
	
		
			
				|  |  |  |  |  |       const currentCategory = this.findItemById(this.categoryTree, row.category_id) | 
		
	
		
			
				|  |  |  |  |  |       console.log(currentCategory.isType) | 
		
	
		
			
				|  |  |  |  |  |       if (currentCategory.isType === 3) { | 
		
	
		
			
				|  |  |  |  |  |         this.$refs.archivesInfo.isHasFile = false | 
		
	
		
			
				|  |  |  |  |  |         this.$refs.archivesInfo.isTidOrBorrow = true | 
		
	
		
			
				|  |  |  |  |  |       } else { | 
		
	
		
			
				|  |  |  |  |  |         this.$refs.archivesInfo.isHasFile = true | 
		
	
		
			
				|  |  |  |  |  |         this.$refs.archivesInfo.isTidOrBorrow = false | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.archivesInfo.isDetailsInfo = true | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.archivesInfo.detailTitle = '档案详情' | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.archivesInfo.archivesInfoVisible = true | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.archivesInfo.archivesTabIndex = 0 | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.archivesInfo.getDetial(row.archives_id, row.category_id) | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |       // const params = { | 
		
	
		
			
				|  |  |  |  |  |       //   'categoryId': row.category_id, | 
		
	
		
			
				|  |  |  |  |  |       //   'archivesId': row.archives_id | 
		
	
		
			
				|  |  |  |  |  |       // } | 
		
	
		
			
				|  |  |  |  |  |       // FetchArchivesDetails(params).then(res => { | 
		
	
		
			
				|  |  |  |  |  |       //   if (res) { | 
		
	
		
			
				|  |  |  |  |  |       //     const rowData = {} | 
		
	
		
			
				|  |  |  |  |  |       //     res.forEach(item => { | 
		
	
		
			
				|  |  |  |  |  |       //       rowData[item.fieldName] = item.context | 
		
	
		
			
				|  |  |  |  |  |       //     }) | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |       //     // 是否显示开架按钮 | 
		
	
		
			
				|  |  |  |  |  |       //     if (rowData.folder_location !== null) { | 
		
	
		
			
				|  |  |  |  |  |       //       this.openLocation = rowData.folder_location | 
		
	
		
			
				|  |  |  |  |  |       //       this.$refs.detailDom.isShowOpen = true | 
		
	
		
			
				|  |  |  |  |  |       //     } else { | 
		
	
		
			
				|  |  |  |  |  |       //       this.openLocation = null | 
		
	
		
			
				|  |  |  |  |  |       //       this.$refs.detailDom.isShowOpen = false | 
		
	
		
			
				|  |  |  |  |  |       //     } | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |       //     this.$refs.detailDom.rowData = rowData | 
		
	
		
			
				|  |  |  |  |  |       //     // 元数据 | 
		
	
		
			
				|  |  |  |  |  |       //     FetchArchivesMetadata(params).then(res => { | 
		
	
		
			
				|  |  |  |  |  |       //       this.$refs.detailDom.xmlStr = res | 
		
	
		
			
				|  |  |  |  |  |       //     }) | 
		
	
		
			
				|  |  |  |  |  |       //     this.$refs.detailDom.detailVisible = true | 
		
	
		
			
				|  |  |  |  |  |       //   } | 
		
	
		
			
				|  |  |  |  |  |       // }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 首页 / 搜索页切换操作 |  |  |     // 首页 / 搜索页切换操作 | 
		
	
		
			
				|  |  |     handleSearch() { |  |  |     handleSearch() { | 
		
	
	
		
			
				|  | 
 |