From 11c1104ab1bc5e66d63954e4a066c24d0dd716c3 Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Wed, 25 Mar 2026 17:00:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E9=83=A8=E9=97=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E7=9A=84=E5=88=86=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加分页状态管理(currentPage, pageSize, total, allOrgs) - 实现两个数据加载函数(fetchOrgs 用于分页、fetchAllOrgs 用于下拉框) - 添加分页事件处理函数 handlePageChange - 实现删除功能及确认对话框 handleDelete - 更新 UI 组件:表格 loading 状态、删除按钮、分页控件 - 修改 save() 函数完成后重置分页至第一页 - 更新 onMounted 初始化时同时加载分页数据和所有部门数据 - 下拉框改为使用 allOrgs 确保显示完整部门列表 --- .../views/admin/OrganizationManageView.vue | 92 ++++++++++++++++--- 1 file changed, 80 insertions(+), 12 deletions(-) diff --git a/offer_frontend/src/views/admin/OrganizationManageView.vue b/offer_frontend/src/views/admin/OrganizationManageView.vue index bd442e2..b3d9e70 100644 --- a/offer_frontend/src/views/admin/OrganizationManageView.vue +++ b/offer_frontend/src/views/admin/OrganizationManageView.vue @@ -4,26 +4,39 @@

组织架构管理

新增公司 - + - + - - + + +
+ +
- + @@ -39,18 +52,46 @@