套餐设置套餐管理完善

This commit is contained in:
2026-02-03 14:03:07 +08:00
parent 3acf8ad50a
commit 3d31b3482a
4 changed files with 136 additions and 80 deletions

View File

@@ -398,8 +398,13 @@ function resetQuery() {
getPageList();
}
function getPageList() {
function getPageList(pagination) {
loading.value = true;
// 如果传入了分页参数更新queryParams
if (pagination) {
queryParams.value.pageNo = pagination.page;
queryParams.value.pageSize = pagination.limit;
}
// 创建API调用的查询参数副本处理classEnum的转换
const apiParams = { ...queryParams.value };
if (Array.isArray(apiParams.classEnum)) {
@@ -435,6 +440,7 @@ function getPageList() {
organization.value = processedData;
total.value = res.data.total;
}).catch(error => {
console.error('获取科室列表失败:', error);
proxy.$modal.msgError('获取科室列表失败,请稍后重试');