Browse Source

档案综合管理选中bug2

master
xuhuajiao 2 years ago
parent
commit
83b63d1be5
  1. 4
      src/views/archivesManage/archivesList/archivesAnjuan/index.vue
  2. 3
      src/views/archivesManage/archivesList/archivesJuannei/index.vue
  3. 3
      src/views/archivesManage/archivesList/archivesProject/index.vue
  4. 10
      src/views/archivesManage/archivesList/index.vue

4
src/views/archivesManage/archivesList/archivesAnjuan/index.vue

@ -312,8 +312,10 @@ export default {
handleSizeChange(size) { handleSizeChange(size) {
this.page.size = size this.page.size = size
this.page.page = 1 this.page.page = 1
this.getListCommon('anjuanData', 'anjuanTableHeight', 1) this.getListCommon('anjuanData', 'anjuanTableHeight', 1)
this.$nextTick(() => {
this.selections = this.$refs.table.selection
})
}, },
// list // list
getTableList() { getTableList() {

3
src/views/archivesManage/archivesList/archivesJuannei/index.vue

@ -230,6 +230,9 @@ export default {
this.page.size = size this.page.size = size
this.page.page = 1 this.page.page = 1
this.getListCommon('junneiData', 'juanneiTableHeight', 2) this.getListCommon('junneiData', 'juanneiTableHeight', 2)
this.$nextTick(() => {
this.selections = this.$refs.table.selection
})
}, },
// list // list
getTableList() { getTableList() {

3
src/views/archivesManage/archivesList/archivesProject/index.vue

@ -178,6 +178,9 @@ export default {
this.page.size = size this.page.size = size
this.page.page = 1 this.page.page = 1
this.getListCommon('projectData', 'projectTableHeight', 0) this.getListCommon('projectData', 'projectTableHeight', 0)
this.$nextTick(() => {
this.selections = this.$refs.table.selection
})
}, },
// table - list // table - list
getTableList(page) { getTableList(page) {

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

@ -246,7 +246,6 @@ export default {
} else { } else {
localStorage.setItem('noClick', true) localStorage.setItem('noClick', true)
} }
console.log('noClick', localStorage.getItem('noClick'))
// //
if (this.$refs.smartTree) { if (this.$refs.smartTree) {
this.treeCurrentNode = null this.treeCurrentNode = null
@ -288,6 +287,10 @@ export default {
'organizationMatter': null 'organizationMatter': null
} }
if ((selectData && selectData.length > 1) || (selectData && selectData.length === 0)) { if ((selectData && selectData.length > 1) || (selectData && selectData.length === 0)) {
this.isProject = true
this.isAnjuan = true
this.$refs.anjuan.selections = []
this.$refs.file.selections = []
this.projectSelection = {} this.projectSelection = {}
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.anjuan) { if (this.$refs.anjuan) {
@ -316,6 +319,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.anjuan) { if (this.$refs.anjuan) {
this.$refs.anjuan.$refs.table.clearSelection() this.$refs.anjuan.$refs.table.clearSelection()
this.clearAnjuan()
this.$refs.anjuan.getTableList() this.$refs.anjuan.getTableList()
if (this.$refs.file) { if (this.$refs.file) {
this.$refs.file.$refs.table.clearSelection() this.$refs.file.$refs.table.clearSelection()
@ -335,6 +339,8 @@ export default {
'organizationMatter': null 'organizationMatter': null
} }
if ((selectData && selectData.length > 1) || (selectData && selectData.length === 0)) { if ((selectData && selectData.length > 1) || (selectData && selectData.length === 0)) {
this.isAnjuan = true
this.$refs.file.selections = []
this.anjuanSelection = {} this.anjuanSelection = {}
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.file) { if (this.$refs.file) {
@ -346,6 +352,7 @@ export default {
this.anjuanSelection = selectData[0] this.anjuanSelection = selectData[0]
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.file) { if (this.$refs.file) {
this.$refs.file.$refs.table.clearSelection()
this.$refs.file.getTableList() this.$refs.file.getTableList()
} }
}) })
@ -353,6 +360,7 @@ export default {
this.anjuanSelection = data this.anjuanSelection = data
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.file) { if (this.$refs.file) {
this.$refs.file.$refs.table.clearSelection()
this.$refs.file.getTableList() this.$refs.file.getTableList()
} }
}) })

Loading…
Cancel
Save