Browse Source

bug修复

master
xuhuajiao 10 hours ago
parent
commit
4b6e70abd3
  1. 10
      src/layout/components/Sidebar/index.vue
  2. 1
      src/views/archivesManage/managementLibrary/anjuan/tableList.vue
  3. 2
      src/views/archivesManage/managementLibrary/file/index.vue
  4. 1
      src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
  5. 2
      src/views/collectReorganizi/collectionLibrary/file/index.vue
  6. 2
      src/views/collectReorganizi/collectionLibrary/index.vue
  7. 1
      src/views/collectReorganizi/collectionLibrary/mixins/index.js
  8. 8
      src/views/components/categoryTree.vue
  9. 10
      src/views/prearchiveLibrary/file/index.vue

10
src/layout/components/Sidebar/index.vue

@ -33,8 +33,8 @@ export default {
activeMenu() { activeMenu() {
const route = this.$route const route = this.$route
const { meta, path } = route const { meta, path } = route
console.log('meta', meta)
console.log('path', path)
// console.log('meta', meta)
// console.log('path', path)
// if set path, the sidebar will highlight the path you set // if set path, the sidebar will highlight the path you set
if (meta.activeMenu) { if (meta.activeMenu) {
return meta.activeMenu return meta.activeMenu
@ -52,12 +52,12 @@ export default {
} }
}, },
mounted() { mounted() {
console.log('sidebarRouters', this.sidebarRouters)
// console.log('sidebarRouters', this.sidebarRouters)
}, },
methods: { methods: {
handleSelect(key, keyPath) { handleSelect(key, keyPath) {
console.log('el-menu')
console.log(key, keyPath)
// console.log('el-menu')
// console.log(key, keyPath)
} }
} }
} }

1
src/views/archivesManage/managementLibrary/anjuan/tableList.vue

@ -290,6 +290,7 @@ export default {
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
this.parentId = row.id this.parentId = row.id
localStorage.removeItem('currentPageSize') localStorage.removeItem('currentPageSize')
localStorage.removeItem('currentPage')
this.openJuannei('所属' + this.title + ':' + row.archive_no, this.parentId) this.openJuannei('所属' + this.title + ':' + row.archive_no, this.parentId)
}, 300) }, 300)
this.selections = this.crud.selections this.selections = this.crud.selections

2
src/views/archivesManage/managementLibrary/file/index.vue

@ -219,6 +219,7 @@ export default {
this.currentPage = 1 this.currentPage = 1
this.page.size = size this.page.size = size
this.page.page = 0 this.page.page = 0
localStorage.setItem('currentPageSize', size)
if (this.selectedCategory.arrangeType === 1) { if (this.selectedCategory.arrangeType === 1) {
this.getViewTable(4, this.parentsData.parentsAnjuanId) this.getViewTable(4, this.parentsData.parentsAnjuanId)
} else { } else {
@ -228,6 +229,7 @@ export default {
handleCurrentPage(pageVal) { handleCurrentPage(pageVal) {
this.currentPage = pageVal this.currentPage = pageVal
this.page.page = pageVal - 1 this.page.page = pageVal - 1
localStorage.setItem('currentPage', JSON.stringify(this.page.page))
if (this.selectedCategory.arrangeType === 1) { if (this.selectedCategory.arrangeType === 1) {
this.getViewTable(4, this.parentsData.parentsAnjuanId) this.getViewTable(4, this.parentsData.parentsAnjuanId)
} else { } else {

1
src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue

@ -267,6 +267,7 @@ export default {
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
this.parentId = row.id this.parentId = row.id
localStorage.removeItem('currentPageSize') localStorage.removeItem('currentPageSize')
localStorage.removeItem('currentPage')
this.openJuannei('所属' + this.title + ':' + row.archive_no, this.parentId, row) this.openJuannei('所属' + this.title + ':' + row.archive_no, this.parentId, row)
}, 300) }, 300)
} }

2
src/views/collectReorganizi/collectionLibrary/file/index.vue

@ -250,6 +250,7 @@ export default {
this.currentPage = 1 this.currentPage = 1
this.page.size = size this.page.size = size
this.page.page = 0 this.page.page = 0
localStorage.setItem('currentPageSize', size)
if (this.selectedCategory.arrangeType === 1) { if (this.selectedCategory.arrangeType === 1) {
this.getViewTable(4, this.parentsData.parentsAnjuanId) this.getViewTable(4, this.parentsData.parentsAnjuanId)
} else { } else {
@ -259,6 +260,7 @@ export default {
handleCurrentPage(pageVal) { handleCurrentPage(pageVal) {
this.currentPage = pageVal this.currentPage = pageVal
this.page.page = pageVal - 1 this.page.page = pageVal - 1
localStorage.setItem('currentPage', JSON.stringify(this.page.page))
if (this.selectedCategory.arrangeType === 1) { if (this.selectedCategory.arrangeType === 1) {
this.getViewTable(4, this.parentsData.parentsAnjuanId) this.getViewTable(4, this.parentsData.parentsAnjuanId)
} else { } else {

2
src/views/collectReorganizi/collectionLibrary/index.vue

@ -307,7 +307,7 @@ export default {
if (currentKey && currentKey.id) { if (currentKey && currentKey.id) {
this.$nextTick(() => { this.$nextTick(() => {
// //
console.log('444')
// console.log('444')
this.handleNodeClick(currentKey) this.handleNodeClick(currentKey)
}) })
} }

1
src/views/collectReorganizi/collectionLibrary/mixins/index.js

@ -49,7 +49,6 @@ export const collectionLibraryCrud = {
}, },
handleSearch(categoryLevel) { handleSearch(categoryLevel) {
const queryResult = this.hasValue(this.query) const queryResult = this.hasValue(this.query)
// console.log(queryResult)
if (localStorage.getItem('currentPage') && !queryResult) { if (localStorage.getItem('currentPage') && !queryResult) {
this.page.page = parseInt(localStorage.getItem('currentPage')) this.page.page = parseInt(localStorage.getItem('currentPage'))
} else { } else {

8
src/views/components/categoryTree.vue

@ -70,11 +70,11 @@ export default {
this.loading = true this.loading = true
getfondMenu().then(res => { getfondMenu().then(res => {
this.categroyTree = this.filterData(this.transformData(res)) this.categroyTree = this.filterData(this.transformData(res))
console.log('this.categroyTree', this.categroyTree)
console.log('this.user', this.user.fonds.id)
// console.log('this.categroyTree', this.categroyTree)
// console.log('this.user', this.user.fonds.id)
// fondsId // fondsId
console.log('this.isMoveFile', this.isMoveFile)
// console.log('this.isMoveFile', this.isMoveFile)
if (this.isMoveFile === 'true') { if (this.isMoveFile === 'true') {
const targetFondsId = this.user.fonds.id const targetFondsId = this.user.fonds.id
this.categroyTree = this.categroyTree.filter(item => { this.categroyTree = this.categroyTree.filter(item => {
@ -127,7 +127,7 @@ export default {
if (currentKey && currentKey.id) { if (currentKey && currentKey.id) {
this.$nextTick(() => { this.$nextTick(() => {
// //
console.log('444')
// console.log('444')
this.handleNodeClick(currentKey) this.handleNodeClick(currentKey)
}) })
} }

10
src/views/prearchiveLibrary/file/index.vue

@ -21,10 +21,9 @@
<i class="iconfont icon-changgui" /> <i class="iconfont icon-changgui" />
<span>常规</span> <span>常规</span>
</template> </template>
<el-menu-item-group class="collect-submenu-group">
<!-- @click="toDelete" -->
<!-- <el-menu-item-group class="collect-submenu-group">
<el-menu-item index="1-3">删除</el-menu-item> <el-menu-item index="1-3">删除</el-menu-item>
</el-menu-item-group>
</el-menu-item-group> -->
<el-menu-item-group class="collect-submenu-group submenu-tree"> <el-menu-item-group class="collect-submenu-group submenu-tree">
<template slot="title">原文上传</template> <template slot="title">原文上传</template>
<!-- <el-menu-item index="1-5" @click="fileUpload(0)">普通上传</el-menu-item> --> <!-- <el-menu-item index="1-5" @click="fileUpload(0)">普通上传</el-menu-item> -->
@ -32,16 +31,15 @@
<el-menu-item index="1-6" @click="fileUpload">文件上传</el-menu-item> <el-menu-item index="1-6" @click="fileUpload">文件上传</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu>
<el-submenu index="3">
<!-- <el-submenu index="3">
<template slot="title"> <template slot="title">
<i class="iconfont icon-gengduo" /> <i class="iconfont icon-gengduo" />
<span>更多</span> <span>更多</span>
</template> </template>
<el-menu-item-group class="collect-submenu-group"> <el-menu-item-group class="collect-submenu-group">
<!-- @click="handleOriginalDownload" -->
<el-menu-item index="3-4">下载</el-menu-item> <el-menu-item index="3-4">下载</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu>
</el-submenu> -->
</el-menu> </el-menu>
</div> </div>
</div> </div>

Loading…
Cancel
Save