From 4de11c5f9617761266d6f82f238a2c8334794dc0 Mon Sep 17 00:00:00 2001 From: redamancy_zxp <2638265504@qq.com> Date: Sat, 16 Apr 2022 05:10:52 +0000 Subject: [PATCH] =?UTF-8?q?update=20vue/src/views/iot/group/device-list.vu?= =?UTF-8?q?e.=20=E4=BF=AE=E6=94=B9=E5=88=86=E7=BB=84=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=8F=AF=E4=BB=A5=E7=9C=8B=E8=A7=81=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E7=9A=84=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/group/device-list.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vue/src/views/iot/group/device-list.vue b/vue/src/views/iot/group/device-list.vue index d4ec72ad..46a64beb 100644 --- a/vue/src/views/iot/group/device-list.vue +++ b/vue/src/views/iot/group/device-list.vue @@ -107,6 +107,9 @@ export default { this.queryParams.params["beginActiveTime"] = this.daterangeActiveTime[0]; this.queryParams.params["endActiveTime"] = this.daterangeActiveTime[1]; } + if (this.$store.state.user.roles.indexOf("admin") === -1){ + this.queryParams.userName=this.$store.state.user.name; + } listDeviceShort(this.queryParams).then(response => { this.deviceList = response.rows; this.total = response.total;