From 0fb7aebf6799ec0e5e2753b1809e96e483267b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 27 Jan 2026 10:23:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=83=A8=E9=97=A8):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=83=A8=E9=97=A8=E5=8F=8A=E5=85=B6=E5=AD=90?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在leave.vue和goout.vue中使用新接口listDeptWithChildren替换原有的listDept --- klp-ui/src/api/system/dept.js | 10 ++++++++++ klp-ui/src/views/wms/hrm/apply/goout.vue | 4 ++-- klp-ui/src/views/wms/hrm/apply/leave.vue | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/klp-ui/src/api/system/dept.js b/klp-ui/src/api/system/dept.js index 1905bb07..1430a71f 100644 --- a/klp-ui/src/api/system/dept.js +++ b/klp-ui/src/api/system/dept.js @@ -58,3 +58,13 @@ export function treeselect() { method: 'get' }) } + +export function listDeptWithChildren(deptId) { + if (!deptId) { + return Promise.reject(new Error('deptId is required')) + } + return request({ + url: '/system/dept/list/' + deptId, + method: 'get' + }) +} \ No newline at end of file diff --git a/klp-ui/src/views/wms/hrm/apply/goout.vue b/klp-ui/src/views/wms/hrm/apply/goout.vue index 6f2f9949..9dd763fc 100644 --- a/klp-ui/src/views/wms/hrm/apply/goout.vue +++ b/klp-ui/src/views/wms/hrm/apply/goout.vue @@ -119,7 +119,7 @@