fix(admin): 用户管理页面优化,增加服务器端分页,避免拉全量用户数据,同时修复一些bug
This commit is contained in:
1 parent
950d661b4f
commit
6f9c25bb34
12 files changed
+816
-70
No files matched your search
@@ -43,6 +43,7 @@ const confirmButtonClass = computed(() =>
|
||||
props.confirmTone === 'primary' ? 'btn-primary btn-sm' : 'btn-danger btn-sm'
|
||||
);
|
||||
|
||||
/** 关闭弹窗并同步 v-model。 */
|
||||
const closeDialog = () => {
|
||||
emit('update:modelValue', false);
|
||||
};
|
||||
@@ -52,8 +53,13 @@ const handleCancel = () => {
|
||||
closeDialog();
|
||||
};
|
||||
|
||||
/**
|
||||
* 触发确认回调并关闭弹窗。
|
||||
* 核心逻辑:先 emit confirm 供父级执行删除,再 closeDialog,与取消行为一致,避免仅依赖父级 v-model 时弹窗残留。
|
||||
*/
|
||||
const handleConfirm = () => {
|
||||
emit('confirm');
|
||||
closeDialog();
|
||||
};
|
||||
|
||||
const handleEscKey = (event: KeyboardEvent) => {
|
||||
|
||||
Reference in new issue
Block a user