[mod]适配分页返回数据放入data中返回

This commit is contained in:
Carrierli
2026-03-17 16:18:12 +08:00
parent d97c93cc98
commit 82d28a3188
49 changed files with 121 additions and 94 deletions

View File

@@ -101,8 +101,8 @@ const queryParams = reactive<UserQuery>({
const getList = async () => {
loading.value = true;
const res = await allocatedUserList(queryParams);
userList.value = res.rows;
total.value = res.total;
userList.value = res.data?.rows;
total.value = res.data?.total;
loading.value = false;
};
// 返回按钮

View File

@@ -280,8 +280,8 @@ const dialog = reactive<DialogOption>({
const getList = () => {
loading.value = true;
listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
roleList.value = res.rows;
total.value = res.total;
roleList.value = res.data?.rows;
total.value = res.data?.total;
loading.value = false;
});
};

View File

@@ -100,8 +100,8 @@ const handleSelectionChange = (selection: UserVO[]) => {
/** 查询数据 */
const getList = async () => {
const res = await unallocatedUserList(queryParams);
userList.value = res.rows;
total.value = res.total;
userList.value = res.data?.rows;
total.value = res.data?.total;
};
/** 搜索按钮操作 */
const handleQuery = () => {