From a266ece06a2a4c906e5377d3417962fa3760aef6 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期三, 29 六月 2022 18:31:53 +0800 Subject: [PATCH] 'lct' --- src/views/system/department/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue index e5e0505..ca69129 100644 --- a/src/views/system/department/index.vue +++ b/src/views/system/department/index.vue @@ -20,7 +20,6 @@ :data="tableData.data" style="width: 100%" row-key="id" - default-expand-all :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > <el-table-column prop="name" label="部门名称" show-overflow-tooltip> </el-table-column> @@ -34,7 +33,7 @@ </el-table-column> </el-table> </el-card> - <deptDialog ref="deptDialog" /> + <deptDialog ref="deptDialog" @getDepartmentList="initTableData"/> </div> </template> @@ -87,8 +86,8 @@ } }; // 打开新增菜单弹窗 - const onOpenDeptDialog = (type: string,value: any) => { - deptDialog.value.openDialog(type,value,state.tableData.data); + const onOpenDeptDialog = (type: string, value: any) => { + deptDialog.value.openDialog(type, value, state.tableData.data); }; // 删除当前行 const onTabelRowDel = (row: TableDataRow) => { @@ -106,6 +105,7 @@ }); return { deptDialog, + initTableData, onOpenDeptDialog, onTabelRowDel, ...toRefs(state), -- Gitblit v1.9.2