Browse Source

管理库

master
xuhuajiao 2 months ago
parent
commit
d1a810e8d5
  1. 10
      src/views/archivesManage/managementLibrary/index.vue
  2. 11
      src/views/archivesManage/managementLibrary/mixins/index.js
  3. 20
      src/views/archivesManage/managementLibrary/module/collectHeader.vue

10
src/views/archivesManage/managementLibrary/index.vue

@ -148,6 +148,7 @@ export default {
'fonds_no': null //
},
fixedStatusBar: false,
checklist: [],
listCategory: null,
authUtilize: {
'look': false,
@ -318,6 +319,7 @@ export default {
if (currentKey && currentKey.id) {
this.$nextTick(() => {
//
console.log('444')
this.handleNodeClick(currentKey)
})
}
@ -329,12 +331,20 @@ export default {
return node.isType !== 1
})
this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey)
console.log('currentKey22', currentKey)
} else {
currentKey = this.crud.data[0]
this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey)
}
if (currentKey && currentKey.id) {
this.$nextTick(() => {
this.handleNodeClick(currentKey)
})
}
},
handleNodeClick(val) {
this.checklist = []
localStorage.removeItem('savePrevFromData')
localStorage.removeItem('currentPageSize')
localStorage.removeItem('currentPage')

11
src/views/archivesManage/managementLibrary/mixins/index.js

@ -36,6 +36,12 @@ export const manageLibraryCrud = {
},
// 组件共用方法
methods: {
// 筛选可销毁/可开放文件
handleFilterChange(val) {
console.log('this.collectLevel:', this.collectLevel)
console.log('选中的值为:', this.parentsData.checklist)
this.handleSearch(this.collectLevel)
},
// 缓存用户对于固定栏操作习惯
statusBarChecked(val) {
this.fixedStatusBar = val
@ -124,6 +130,7 @@ export const manageLibraryCrud = {
})
},
getViewTableList(categoryLevel, parentsId, type) {
console.log('checklist', this.parentsData.checklist)
const currentPageSize = localStorage.getItem('currentPageSize')
if (currentPageSize) {
this.page.size = parseInt(currentPageSize)
@ -150,7 +157,9 @@ export const manageLibraryCrud = {
'archive_ctg_no': this.query.archive_ctg_no,
'page': this.page.page,
'size': this.page.size,
'sort': this.arrySort
'sort': this.arrySort,
'canOpen': this.parentsData.checklist && this.parentsData.checklist.length === 0 ? null : (this.parentsData.checklist && this.parentsData.checklist.includes(1) ? true : null),
'canDestroy': this.parentsData.checklist && this.parentsData.checklist.length === 0 ? null : (this.parentsData.checklist && this.parentsData.checklist.includes(2) ? true : null)
}
FetchInitContorlView(params).then((res) => {
if (res.code !== 500) {

20
src/views/archivesManage/managementLibrary/module/collectHeader.vue

@ -198,8 +198,13 @@
利用结束时间{{ parentsData.authUtilize.endTime | parseTime }}
</div>
<div v-if="isTitleType !== 2 && !isRecycle && isTitleType !== 6" class="mangement-fixed-top">
<el-checkbox v-model="parentsData.fixedStatusBar" @change="statusBarChecked">隐藏状态栏</el-checkbox>
<div v-if="isTitleType !== 2 && !isRecycle && isTitleType !== 6" class="mangement-fixed-top" style="display: flex; justify-content: flex-end;">
<el-checkbox-group v-model="parentsData.checklist" class="checkbox-style" @change="handleFilterChange">
<el-checkbox v-for="item in filterlist" :key="item.value" :label="item.value">{{ item.label }}</el-checkbox>
</el-checkbox-group>
<div style="margin-left:30px;">
<el-checkbox v-model="parentsData.fixedStatusBar" @change="statusBarChecked">隐藏状态栏</el-checkbox>
</div>
</div>
</div>
</div>
@ -390,6 +395,16 @@ export default {
]
}
],
filterlist: [
{
value: 1,
label: '可开放'
},
{
value: 2,
label: '可销毁'
}
],
selectStatus: null,
activeMenuIndex: '1',
formVisible: false,
@ -518,6 +533,7 @@ export default {
children: node.childArchivesClass
}
},
handleSelect(key, keyPath) {
console.log(key, keyPath)
},

Loading…
Cancel
Save