reactor:【system 系统管理】dept 部门管理的实现,对齐 ele 和 antd(isExpanded 放在 onRefresh 前面)
This commit is contained in:
@@ -30,11 +30,6 @@ function getLeaderName(userId: number) {
|
||||
return userList.value.find((user) => user.id === userId)?.nickname;
|
||||
}
|
||||
|
||||
/** 刷新表格 */
|
||||
function onRefresh() {
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
/** 切换树形展开/收缩状态 */
|
||||
const isExpanded = ref(true);
|
||||
function toggleExpand() {
|
||||
@@ -42,6 +37,11 @@ function toggleExpand() {
|
||||
gridApi.grid.setAllTreeExpand(isExpanded.value);
|
||||
}
|
||||
|
||||
/** 刷新表格 */
|
||||
function onRefresh() {
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
/** 创建部门 */
|
||||
function handleCreate() {
|
||||
formModalApi.setData(null).open();
|
||||
|
||||
Reference in New Issue
Block a user