From d8036665c3b072aa5e7a4b0fe3e3431c7d6caede Mon Sep 17 00:00:00 2001 From: wanglei Date: Sat, 22 Jun 2024 14:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=87=87=E9=9B=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/views/dangan/collection/index.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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);