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. 18
      src/views/archivesManage/managementLibrary/module/collectHeader.vue

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

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

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

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

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

@ -198,11 +198,16 @@
利用结束时间{{ parentsData.authUtilize.endTime | parseTime }} 利用结束时间{{ parentsData.authUtilize.endTime | parseTime }}
</div> </div>
<div v-if="isTitleType !== 2 && !isRecycle && isTitleType !== 6" class="mangement-fixed-top">
<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> <el-checkbox v-model="parentsData.fixedStatusBar" @change="statusBarChecked">隐藏状态栏</el-checkbox>
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
@ -390,6 +395,16 @@ export default {
] ]
} }
], ],
filterlist: [
{
value: 1,
label: '可开放'
},
{
value: 2,
label: '可销毁'
}
],
selectStatus: null, selectStatus: null,
activeMenuIndex: '1', activeMenuIndex: '1',
formVisible: false, formVisible: false,
@ -518,6 +533,7 @@ export default {
children: node.childArchivesClass children: node.childArchivesClass
} }
}, },
handleSelect(key, keyPath) { handleSelect(key, keyPath) {
console.log(key, keyPath) console.log(key, keyPath)
}, },

Loading…
Cancel
Save