feat:【antd】【crm】产品分类的代码优化
This commit is contained in:
@@ -89,7 +89,7 @@ async function handleDelete(row: SystemUserApi.User) {
|
||||
duration: 0,
|
||||
});
|
||||
try {
|
||||
await deleteUser(row.id as number);
|
||||
await deleteUser(row.id!);
|
||||
message.success($t('ui.actionMessage.deleteSuccess', [row.username]));
|
||||
handleRefresh();
|
||||
} finally {
|
||||
@@ -144,7 +144,7 @@ async function handleStatusChange(
|
||||
})
|
||||
.then(async () => {
|
||||
// 更新用户状态
|
||||
const res = await updateUserStatus(row.id as number, newStatus);
|
||||
const res = await updateUserStatus(row.id!, newStatus);
|
||||
if (res) {
|
||||
// 提示并返回成功
|
||||
message.success($t('ui.actionMessage.operationSuccess'));
|
||||
|
||||
@@ -28,7 +28,7 @@ function handleSearch(e: any) {
|
||||
: deptList.value;
|
||||
deptTree.value = handleTree(filteredList);
|
||||
// 展开所有节点
|
||||
expandedKeys.value = deptTree.value.map((node) => node.id as number);
|
||||
expandedKeys.value = deptTree.value.map((node) => node.id!);
|
||||
}
|
||||
|
||||
/** 选中部门 */
|
||||
|
||||
Reference in New Issue
Block a user