|
@@ -206,10 +206,12 @@
|
|
|
const {
|
|
|
dataList,
|
|
|
pagination,
|
|
|
+ loading: loadingTable,
|
|
|
+ selectedRows,
|
|
|
getList,
|
|
|
toPage,
|
|
|
pageSizeChange,
|
|
|
- loading: loadingTable,
|
|
|
+ handleSelectionChange,
|
|
|
} = useTable<UserItem>(userListPage, searchModel);
|
|
|
|
|
|
const modifyUserRef = ref<InstanceType<typeof ModifyUser> | null>(null);
|
|
@@ -217,7 +219,6 @@
|
|
|
typeof BatchCreateUserDialog
|
|
|
> | null>(null);
|
|
|
const curRow = ref<UserItem | undefined>(undefined);
|
|
|
- const selectedRows = ref<UserItem[]>([]);
|
|
|
|
|
|
const canBatchAction = computed(() => {
|
|
|
return selectedRows.value.length > 0;
|
|
@@ -237,10 +238,6 @@
|
|
|
modifyUserRef.value?.open();
|
|
|
};
|
|
|
|
|
|
- const handleSelectionChange = (selection: UserItem[]) => {
|
|
|
- selectedRows.value = selection;
|
|
|
- };
|
|
|
-
|
|
|
const onResetPassword = async (row: UserItem) => {
|
|
|
const confirm = await modalConfirm(
|
|
|
`确定要重置用户 "${row.name}" 的密码吗?`,
|