diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index 6de0d7e..16639dc 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -16,7 +16,10 @@
import { catalogTreeselect } from "@/api/system/user"; +import { listCatalog } from "@/api/dangan/catalog"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import { getCabinetTree } from "@/api/dangan/cabinet"; @@ -245,10 +249,6 @@ export default { dangAnOptions: undefined, // 档案目录名称 muName: undefined, - defaultProps: { - children: "children", - label: "label" - }, // 用户导入参数 upload: { loading: false, @@ -404,8 +404,9 @@ export default { }, /** 查询档案目录下拉树结构 */ getDeptTree() { - catalogTreeselect().then(response => { - this.dangAnOptions = response.data; + listCatalog({status: '0'}).then(response => { + // this.dangAnOptions = response.data; + this.dangAnOptions = this.handleTree(response.data, "id","pid"); if(this.$route.query.id){ this.$nextTick(() => { this.$refs.tree.setCurrentKey(this.$route.query.id);