From be028017a461af4c9745c69c4df084d4c3e6b296 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 22 十月 2025 18:08:49 +0800
Subject: [PATCH] fix: bug
---
src/views/Account/AccountManageList.vue | 72 ++++++++++++++++++------------------
1 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/src/views/Account/AccountManageList.vue b/src/views/Account/AccountManageList.vue
index e4ae234..c5a3c20 100644
--- a/src/views/Account/AccountManageList.vue
+++ b/src/views/Account/AccountManageList.vue
@@ -43,9 +43,8 @@
useFormDialog,
} from '@bole-core/components';
import { useAccess } from '@/hooks';
-import * as userServices from '@/services/api/User';
import { RoleClientType } from '@/constants';
-import { Message, OrderInputType } from '@bole-core/core';
+import { Message } from '@bole-core/core';
import AddOrEditAccountDialog from './components/AddOrEditAccountDialog.vue';
defineOptions({
@@ -80,23 +79,24 @@
} = useTable(
async ({ pageIndex, pageSize }, extraParamState) => {
try {
- let params: API.QueryUserPageInput = {
- pageModel: {
- rows: pageSize,
- page: pageIndex,
- orderInput: extraParamState.orderInput,
- },
- searchKey: extraParamState.keyword,
- };
- let res = await userServices.getUserPage(params, {
- showLoading: !state.loading,
- });
- return res;
+ // let params: API.QueryUserPageInput = {
+ // pageModel: {
+ // rows: pageSize,
+ // page: pageIndex,
+ // orderInput: extraParamState.orderInput,
+ // },
+ // searchKey: extraParamState.keyword,
+ // };
+ // let res = await userServices.getUserPage(params, {
+ // showLoading: !state.loading,
+ // });
+ // return res;
+ return {};
} catch (error) {}
},
{
defaultExtraParams: {
- orderInput: [{ property: 'id', order: OrderInputType.Desc }],
+ orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }],
keyword: '',
},
columnsRenderProps: {
@@ -141,27 +141,27 @@
async function handleAddOrEdit() {
try {
let isEdit = !!editForm.id;
- let params: API.CreateAccountInput = {
- name: editForm.name,
- userName: editForm.userName,
- remark: editForm.remark,
- password: editForm.password,
- phoneNumber: editForm.phoneNumber,
- channel: editForm.channel,
- // clientId: RoleClientType.RoleBackendClientId,
- roleNames: [editForm.roleName],
- };
- let res;
- if (isEdit) {
- (params as API.UpdateAccountInput).id = editForm.id;
- res = await userServices.updateAccount(params);
- } else {
- res = await userServices.createAccount(params);
- }
- if (res) {
- Message.successMessage('鎿嶄綔鎴愬姛');
- getList(isEdit ? paginationState.pageIndex : 1);
- }
+ // let params: API.CreateAccountInput = {
+ // name: editForm.name,
+ // userName: editForm.userName,
+ // remark: editForm.remark,
+ // password: editForm.password,
+ // phoneNumber: editForm.phoneNumber,
+ // channel: editForm.channel,
+ // // clientId: RoleClientType.RoleBackendClientId,
+ // roleNames: [editForm.roleName],
+ // };
+ // let res;
+ // if (isEdit) {
+ // (params as API.UpdateAccountInput).id = editForm.id;
+ // res = await userServices.updateAccount(params);
+ // } else {
+ // res = await userServices.createAccount(params);
+ // }
+ // if (res) {
+ // Message.successMessage('鎿嶄綔鎴愬姛');
+ // getList(isEdit ? paginationState.pageIndex : 1);
+ // }
} catch (error) {}
}
</script>
--
Gitblit v1.9.1