14 changed files with 205 additions and 185 deletions
-
6src/views/collectReorganizi/collectionLibrary/anjuan/index.vue
-
7src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
-
3src/views/collectReorganizi/collectionLibrary/file/index.vue
-
69src/views/collectReorganizi/collectionLibrary/index.vue
-
5src/views/collectReorganizi/collectionLibrary/juannei/index.vue
-
4src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
-
19src/views/prearchiveLibrary/data.json
-
33src/views/prearchiveLibrary/index.vue
-
43src/views/prearchiveLibrary/mixins/index.js
-
10src/views/prearchiveLibrary/module/batchFile.vue
-
1src/views/prearchiveLibrary/module/form.vue
-
71src/views/prearchiveLibrary/module/moveFile.vue
-
31src/views/prearchiveLibrary/module/scope.vue
-
32src/views/prearchiveLibrary/module/tree.json
@ -1,19 +0,0 @@ |
|||
[ |
|||
{ |
|||
"id": 1, |
|||
"label": "预归档库", |
|||
"isType": 1, |
|||
"children": [ |
|||
{ |
|||
"id": 2, |
|||
"isType": 2, |
|||
"label": "收文" |
|||
}, |
|||
{ |
|||
"id": 3, |
|||
"isType": 2, |
|||
"label": "发文" |
|||
} |
|||
] |
|||
} |
|||
] |
@ -0,0 +1,43 @@ |
|||
// import qs from 'qs'
|
|||
// import { exportFile } from '@/utils/index'
|
|||
// import { FetchTableDisplayFields, FetchInitArchivesView, FetchFormDisplayFields } from '@/api/archivesManage/archivesList'
|
|||
export const preLibraryCrud = { |
|||
// 组件共用属性
|
|||
data() { |
|||
return { |
|||
} |
|||
}, |
|||
// 组件共用方法
|
|||
methods: { |
|||
filterData(data) { |
|||
return data.filter(node => { |
|||
if (node.children && node.children.length > 0) { |
|||
node.children = this.filterData(node.children) // 递归处理子节点
|
|||
} |
|||
return node.isType !== 3 // 过滤掉isType为3的节点
|
|||
}) |
|||
}, |
|||
// 逆归实现 获取指定元素
|
|||
findNode(tree, func) { |
|||
for (const node of tree) { |
|||
if (func(node)) return node |
|||
if (node.children) { |
|||
const res = this.findNode(node.children, func) |
|||
if (res) return res |
|||
} |
|||
} |
|||
return null |
|||
}, |
|||
// 展开选中的父级
|
|||
expandParents(node) { |
|||
node.expanded = true |
|||
if (node.parent) { |
|||
this.expandParents(node.parent) |
|||
} |
|||
} |
|||
}, |
|||
// 组件挂载时的共用方法
|
|||
mounted() { |
|||
|
|||
} |
|||
} |
@ -1,32 +0,0 @@ |
|||
[ |
|||
{ |
|||
"id": 1, |
|||
"label": "档案门类", |
|||
"children": [ |
|||
{ |
|||
"id": 2, |
|||
"label": "文书档案", |
|||
"children": [ |
|||
{ |
|||
"id": 4, |
|||
"label": "文书档案(案卷)" |
|||
}, |
|||
{ |
|||
"id": 5, |
|||
"label": "文书档案(文件)" |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
"id": 3, |
|||
"label": "基建档案", |
|||
"children": [ |
|||
{ |
|||
"id": 6, |
|||
"label": "基建档案(项目)" |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue