|
@ -72,6 +72,7 @@ import archivesAnjuan from './archivesAnjuan/index' |
|
|
import archivesJuannei from './archivesJuannei/index' |
|
|
import archivesJuannei from './archivesJuannei/index' |
|
|
import crudCategory from '@/api/category/category' |
|
|
import crudCategory from '@/api/category/category' |
|
|
import CRUD, { presenter } from '@crud/crud' |
|
|
import CRUD, { presenter } from '@crud/crud' |
|
|
|
|
|
import { archivesCrud } from './mixins/archives' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'ArchivesList', |
|
|
name: 'ArchivesList', |
|
@ -89,7 +90,7 @@ export default { |
|
|
recycleMain: this |
|
|
recycleMain: this |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mixins: [presenter()], |
|
|
|
|
|
|
|
|
mixins: [presenter(), archivesCrud], |
|
|
props: { |
|
|
props: { |
|
|
isdel: { |
|
|
isdel: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
@ -126,7 +127,8 @@ export default { |
|
|
'securityClass': null, |
|
|
'securityClass': null, |
|
|
'organizationMatter': null |
|
|
'organizationMatter': null |
|
|
}, |
|
|
}, |
|
|
treeCurrentNode: null |
|
|
|
|
|
|
|
|
treeCurrentNode: null, |
|
|
|
|
|
nodeClick: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
@ -196,8 +198,33 @@ export default { |
|
|
if (this.$refs.archivesTree.getNode(selectedKey) && this.$refs.archivesTree.getNode(selectedKey).parent) { |
|
|
if (this.$refs.archivesTree.getNode(selectedKey) && this.$refs.archivesTree.getNode(selectedKey).parent) { |
|
|
this.expandParents(this.$refs.archivesTree.getNode(selectedKey).parent) |
|
|
this.expandParents(this.$refs.archivesTree.getNode(selectedKey).parent) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 删除刷新 |
|
|
|
|
|
if (localStorage.getItem('isDelt') === '1') { |
|
|
|
|
|
if (this.$refs.project) { |
|
|
|
|
|
this.$refs.project.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
this.clearAnjuan() |
|
|
|
|
|
this.clearFile() |
|
|
|
|
|
} else if (localStorage.getItem('isDelt') === '2') { |
|
|
|
|
|
if (this.$refs.project) { |
|
|
|
|
|
this.$refs.project.selections = this.$refs.project.$refs.table.selection |
|
|
|
|
|
} |
|
|
|
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
this.clearFile() |
|
|
|
|
|
} else if (localStorage.getItem('isDelt') === '3') { |
|
|
|
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.selections = this.$refs.anjuan.$refs.table.selection |
|
|
|
|
|
} |
|
|
|
|
|
if (this.$refs.file) { |
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
// 选中节点的门类详情 |
|
|
// 选中节点的门类详情 |
|
|
this.handleNodeClick(selectedKey) |
|
|
this.handleNodeClick(selectedKey) |
|
|
|
|
|
localStorage.removeItem('noClick') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
this.getIntellClassify() |
|
|
this.getIntellClassify() |
|
@ -211,9 +238,14 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 选中字典后,设置字典详情数据 |
|
|
|
|
|
|
|
|
// 选中门类后,设置字典详情数据 |
|
|
handleNodeClick(val) { |
|
|
handleNodeClick(val) { |
|
|
if (val) { |
|
|
if (val) { |
|
|
|
|
|
if (localStorage.getItem('isForm')) { |
|
|
|
|
|
localStorage.removeItem('noClick') |
|
|
|
|
|
} else { |
|
|
|
|
|
localStorage.setItem('noClick', true) |
|
|
|
|
|
} |
|
|
// 初始化智能分类的操作 |
|
|
// 初始化智能分类的操作 |
|
|
if (this.$refs.smartTree) { |
|
|
if (this.$refs.smartTree) { |
|
|
this.treeCurrentNode = null |
|
|
this.treeCurrentNode = null |
|
@ -233,6 +265,7 @@ export default { |
|
|
this.crud.selectionChangeHandler([val]) |
|
|
this.crud.selectionChangeHandler([val]) |
|
|
this.selectedCategory = val |
|
|
this.selectedCategory = val |
|
|
this.handleTableList() |
|
|
this.handleTableList() |
|
|
|
|
|
|
|
|
// 缓存当前的选中的 |
|
|
// 缓存当前的选中的 |
|
|
localStorage.setItem('currentArchivesKey', JSON.stringify(val)) |
|
|
localStorage.setItem('currentArchivesKey', JSON.stringify(val)) |
|
|
} |
|
|
} |
|
@ -257,11 +290,11 @@ export default { |
|
|
this.projectSelection = {} |
|
|
this.projectSelection = {} |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
if (this.$refs.anjuan) { |
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
|
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
|
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
this.clearAnjuan() |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -269,10 +302,11 @@ export default { |
|
|
this.projectSelection = selectData[0] |
|
|
this.projectSelection = selectData[0] |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
this.$refs.anjuan.getTableList() |
|
|
this.$refs.anjuan.getTableList() |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -280,10 +314,11 @@ export default { |
|
|
this.projectSelection = data |
|
|
this.projectSelection = data |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
this.$refs.anjuan.getTableList() |
|
|
this.$refs.anjuan.getTableList() |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -302,7 +337,8 @@ export default { |
|
|
this.anjuanSelection = {} |
|
|
this.anjuanSelection = {} |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else if (selectData && selectData.length === 1) { |
|
|
} else if (selectData && selectData.length === 1) { |
|
@ -348,6 +384,15 @@ export default { |
|
|
handleIntellNodeClick(data, node, ele) { |
|
|
handleIntellNodeClick(data, node, ele) { |
|
|
if (data) { |
|
|
if (data) { |
|
|
if (node.childNodes.length === 0) { |
|
|
if (node.childNodes.length === 0) { |
|
|
|
|
|
if (this.$refs.project) { |
|
|
|
|
|
this.$refs.project.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
if (this.$refs.file) { |
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
const selectedKey = this.$refs.smartTree.getCurrentNode() |
|
|
const selectedKey = this.$refs.smartTree.getCurrentNode() |
|
|
const selectedParentVal = this.$refs.smartTree.getNode(selectedKey).parent.data.dicCode |
|
|
const selectedParentVal = this.$refs.smartTree.getNode(selectedKey).parent.data.dicCode |
|
|
this.treeCurrentNode = ele.$el |
|
|
this.treeCurrentNode = ele.$el |
|
@ -396,17 +441,23 @@ export default { |
|
|
// 获取档案list |
|
|
// 获取档案list |
|
|
handleTableList() { |
|
|
handleTableList() { |
|
|
// 门类菜单切换时案卷/卷内'新增'btn不可操作 |
|
|
// 门类菜单切换时案卷/卷内'新增'btn不可操作 |
|
|
|
|
|
localStorage.removeItem('isForm') |
|
|
|
|
|
localStorage.removeItem('isDelt') |
|
|
this.isProject = true |
|
|
this.isProject = true |
|
|
this.isAnjuan = true |
|
|
this.isAnjuan = true |
|
|
if (this.selectedCategory.isType === 2) { |
|
|
if (this.selectedCategory.isType === 2) { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
if (this.$refs.anjuan) { |
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
|
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
|
|
|
|
|
|
if (localStorage.getItem('noClick')) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
this.clearAnjuan() |
|
|
} |
|
|
} |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
if (localStorage.getItem('noClick')) { |
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
this.$refs.project.getTableDisplayFields(0) |
|
|
this.$refs.project.getTableDisplayFields(0) |
|
|
if (this.selectedCategory.children.length !== 0) { |
|
|
if (this.selectedCategory.children.length !== 0) { |
|
@ -419,6 +470,25 @@ export default { |
|
|
} |
|
|
} |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.$refs.project.getTableList() |
|
|
this.$refs.project.getTableList() |
|
|
|
|
|
|
|
|
|
|
|
if (this.$refs.project.$refs.table.selection.length !== 0) { |
|
|
|
|
|
this.$refs.project.selections = this.$refs.project.$refs.table.selection |
|
|
|
|
|
this.$refs.anjuan.getTableList() |
|
|
|
|
|
this.isProject = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.$refs.anjuan.$refs.table.selection.length !== 0) { |
|
|
|
|
|
this.$refs.anjuan.selections = this.$refs.anjuan.$refs.table.selection |
|
|
|
|
|
this.$refs.file.getTableList() |
|
|
|
|
|
this.isAnjuan = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
|
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
|
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
} |
|
|
}, 200) |
|
|
}, 200) |
|
|
if (!this.treeCurrentNode) { |
|
|
if (!this.treeCurrentNode) { |
|
|
this.getYear('project') |
|
|
this.getYear('project') |
|
@ -427,12 +497,17 @@ export default { |
|
|
} else if (this.selectedCategory.isType === 3) { |
|
|
} else if (this.selectedCategory.isType === 3) { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
if (localStorage.getItem('noClick')) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
} |
|
|
} |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
if (localStorage.getItem('noClick')) { |
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
} |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
this.$refs.anjuan.getTableDisplayFields(1) |
|
|
this.$refs.anjuan.getTableDisplayFields(1) |
|
|
if (this.selectedCategory.children.length !== 0) { |
|
|
if (this.selectedCategory.children.length !== 0) { |
|
@ -442,6 +517,17 @@ export default { |
|
|
} |
|
|
} |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.$refs.anjuan.getTableList() |
|
|
this.$refs.anjuan.getTableList() |
|
|
|
|
|
if (this.$refs.anjuan.$refs.table.selection.length !== 0) { |
|
|
|
|
|
this.$refs.anjuan.selections = this.$refs.anjuan.$refs.table.selection |
|
|
|
|
|
this.$refs.file.getTableList() |
|
|
|
|
|
if (this.$refs.file.$refs.table.selection.length !== 0) { |
|
|
|
|
|
this.$refs.file.selections = this.$refs.file.$refs.table.selection |
|
|
|
|
|
} |
|
|
|
|
|
this.isAnjuan = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
} |
|
|
}, 200) |
|
|
}, 200) |
|
|
if (!this.treeCurrentNode) { |
|
|
if (!this.treeCurrentNode) { |
|
|
this.getYear('anjuan') |
|
|
this.getYear('anjuan') |
|
@ -450,8 +536,8 @@ export default { |
|
|
} else if (this.selectedCategory.isType === 4) { |
|
|
} else if (this.selectedCategory.isType === 4) { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.file) { |
|
|
if (this.$refs.file) { |
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
|
|
|
this.$refs.file.$refs.table.clearSelection() |
|
|
|
|
|
this.clearFile() |
|
|
} |
|
|
} |
|
|
this.$refs.file.getTableDisplayFields(2) |
|
|
this.$refs.file.getTableDisplayFields(2) |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
@ -463,20 +549,44 @@ export default { |
|
|
}) |
|
|
}) |
|
|
} else if (this.selectedCategory.isType === 5) { |
|
|
} else if (this.selectedCategory.isType === 5) { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
|
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
|
|
|
|
|
|
if (localStorage.getItem('noClick')) { |
|
|
|
|
|
this.$refs.anjuan.$refs.table.clearSelection() |
|
|
} |
|
|
} |
|
|
|
|
|
this.clearAnjuan() |
|
|
this.$refs.anjuan.getTableDisplayFields(1) |
|
|
this.$refs.anjuan.getTableDisplayFields(1) |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.$refs.anjuan.getTableList() |
|
|
this.$refs.anjuan.getTableList() |
|
|
|
|
|
this.$refs.anjuan.selections = this.$refs.anjuan.$refs.table.selection |
|
|
}, 200) |
|
|
}, 200) |
|
|
if (!this.treeCurrentNode) { |
|
|
if (!this.treeCurrentNode) { |
|
|
this.getYear('anjuan') |
|
|
this.getYear('anjuan') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
clearAnjuan() { |
|
|
|
|
|
if (this.$refs.anjuan) { |
|
|
|
|
|
this.$refs.anjuan.anjuanData = [] |
|
|
|
|
|
this.$refs.anjuan.anjuanTableHeight = '' |
|
|
|
|
|
this.$refs.anjuan.page = { |
|
|
|
|
|
page: 1, |
|
|
|
|
|
size: 10, |
|
|
|
|
|
total: 0 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
clearFile() { |
|
|
|
|
|
if (this.$refs.file) { |
|
|
|
|
|
this.$refs.file.junneiData = [] |
|
|
|
|
|
this.$refs.file.juanneiTableHeight = '' |
|
|
|
|
|
this.$refs.file.page = { |
|
|
|
|
|
page: 1, |
|
|
|
|
|
size: 10, |
|
|
|
|
|
total: 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|