update vue/src/views/iot/group/device-list.vue.

修改分组添加设备可以看见其他的设备
This commit is contained in:
redamancy_zxp
2022-04-16 05:10:52 +00:00
committed by Gitee
parent d95e625297
commit 4de11c5f96

View File

@@ -107,6 +107,9 @@ export default {
this.queryParams.params["beginActiveTime"] = this.daterangeActiveTime[0]; this.queryParams.params["beginActiveTime"] = this.daterangeActiveTime[0];
this.queryParams.params["endActiveTime"] = this.daterangeActiveTime[1]; 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 => { listDeviceShort(this.queryParams).then(response => {
this.deviceList = response.rows; this.deviceList = response.rows;
this.total = response.total; this.total = response.total;