- 添加分页状态管理(currentPage, pageSize, total, allOrgs) - 实现两个数据加载函数(fetchOrgs 用于分页、fetchAllOrgs 用于下拉框) - 添加分页事件处理函数 handlePageChange - 实现删除功能及确认对话框 handleDelete - 更新 UI 组件:表格 loading 状态、删除按钮、分页控件 - 修改 save() 函数完成后重置分页至第一页 - 更新 onMounted 初始化时同时加载分页数据和所有部门数据 - 下拉框改为使用 allOrgs 确保显示完整部门列表 |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
README.md
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.