From 63eccc037b6df07de5470635e084c1d2dc1ef3a7 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期一, 26 二月 2024 18:07:18 +0800 Subject: [PATCH] qxtj --- src/views/system/user/index.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 638ddcf..7a63e71 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -901,7 +901,7 @@ watch: { // 鏍规嵁鍚嶇О绛涢�夐儴闂ㄦ爲 deptName(val) { - this.$refs.tree.filter(val); + console.log(val) }, treeId(newVal, oldVal) { if (newVal) { @@ -935,7 +935,8 @@ /** 鏌ヨ鐢ㄦ埛鍒楄〃 */ getList() { this.loading = true; - listUser(this.addDateRange(this.queryParams, this.dateRange)).then( + if(this.queryParams.deptId){ + listUser(this.addDateRange(this.queryParams, this.dateRange)).then( (response) => { response.rows.forEach((item, index) => { item.newID = @@ -948,6 +949,8 @@ this.loading = false; } ); + } + }, /** 鏌ヨ宀椾綅鍒楄〃 */ getPostList() { @@ -980,8 +983,10 @@ getDeptTree() { deptTreeSelect().then((response) => { this.deptOptions = response.data; + console.log( this.deptOptions) this.treeId.push(this.deptOptions[0].id) this.queryParams.deptId = this.deptOptions[0].id + console.log(this.queryParams.deptId) }); }, // 绛涢�夎妭鐐� -- Gitblit v1.8.0