Browse Source

重置时取消部门选中

Signed-off-by: 也曾为你、像超人 <1553592282@qq.com>
也曾为你、像超人 2 years ago
parent
commit
4517dea98d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ruoyi-ui/src/views/system/user/index.vue

+ 3 - 0
ruoyi-ui/src/views/system/user/index.vue

@@ -20,6 +20,7 @@
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             ref="tree"
+            node-key="id"
             default-expand-all
             highlight-current
             @node-click="handleNodeClick"
@@ -536,6 +537,8 @@ export default {
     resetQuery() {
       this.dateRange = [];
       this.resetForm("queryForm");
+      this.queryParams.deptId = undefined;
+      this.$refs.tree.setCurrentKey(null);
       this.handleQuery();
     },
     // 多选框选中数据