diff --git a/ZR.Vue/src/views/system/dept/index.vue b/ZR.Vue/src/views/system/dept/index.vue
index ec19685..af46207 100644
--- a/ZR.Vue/src/views/system/dept/index.vue
+++ b/ZR.Vue/src/views/system/dept/index.vue
@@ -19,10 +19,14 @@
新增
+
+
+ 展开/折叠
+
-
+
@@ -119,6 +123,10 @@ export default {
showSearch: true,
// 表格树数据
deptList: [],
+ // 是否展开,默认全部折叠
+ isExpandAll: false,
+ // 重新渲染表格状态
+ refreshTable: true,
// 部门树选项
deptOptions: [],
// 弹出层标题
@@ -283,6 +291,14 @@ export default {
this.msgSuccess("删除成功");
});
},
+ //展开/折叠操作
+ toggleExpandAll() {
+ this.refreshTable = false;
+ this.isExpandAll = !this.isExpandAll;
+ this.$nextTick(() => {
+ this.refreshTable = true;
+ });
+ },
},
};