From 46c4b4305e233a9a0f5132a52a2cea70e8109bcc Mon Sep 17 00:00:00 2001 From: "BOE\\10867418" Date: Thu, 17 Aug 2023 15:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84=E5=9B=BE?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E7=BB=87=E6=A0=91=E8=8E=B7=E5=8F=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/Learningpathmap.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/views/report/Learningpathmap.vue b/src/views/report/Learningpathmap.vue index fabd33cc..434ec082 100644 --- a/src/views/report/Learningpathmap.vue +++ b/src/views/report/Learningpathmap.vue @@ -11,9 +11,9 @@ placeholder="请选择归属组织" :allowClear="allowClear" :fieldNames="{ - label: 'name', - value: 'id', - children: 'treeChildList', + label: 'orgName', + value: 'organizationId', + children: 'childList', }" > @@ -173,12 +173,10 @@ export default { const getOrgList = async () => { const res = await api.userGetUserOrg({}); if (res) { - state.option = res.data?.result?.list; - state.orgId = res.data?.result?.treeNodeList; - state.resetOrgId = res.data?.result?.treeNodeList; - res.data?.result?.userType === 1 - ? (state.allowClear = true) - : (state.allowClear = false); + state.option = res.data?.result; + state.orgId = state.option[0]?.organizationId; + state.resetOrgId = state.option[0]?.organizationId; + state.allowClear = false getTableData(); } };