Pārlūkot izejas kodu

重置时取消部门选中

RuoYi 3 gadi atpakaļ
vecāks
revīzija
652f4372c0
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 @@
20 20
             :expand-on-click-node="false"
21 21
             :filter-node-method="filterNode"
22 22
             ref="tree"
23
+            node-key="id"
23 24
             default-expand-all
24 25
             highlight-current
25 26
             @node-click="handleNodeClick"
@@ -536,6 +537,8 @@ export default {
536 537
     resetQuery() {
537 538
       this.dateRange = [];
538 539
       this.resetForm("queryForm");
540
+      this.queryParams.deptId = undefined;
541
+      this.$refs.tree.setCurrentKey(null);
539 542
       this.handleQuery();
540 543
     },
541 544
     // 多选框选中数据