mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 17:35:54 +08:00
设备筛选bug处理
This commit is contained in:
@@ -259,11 +259,13 @@ export default {
|
||||
let productId = this.$route.query.productId
|
||||
if (productId != null) {
|
||||
this.queryParams.productId = Number(productId);
|
||||
this.queryParams.groupId=null;
|
||||
}
|
||||
// 分组筛选
|
||||
let groupId = this.$route.query.groupId
|
||||
if (groupId != null) {
|
||||
this.queryParams.groupId = Number(groupId);
|
||||
this.queryParams.productId=null;
|
||||
}
|
||||
this.getList();
|
||||
|
||||
@@ -278,11 +280,13 @@ export default {
|
||||
let productId = this.$route.query.productId
|
||||
if (productId != null) {
|
||||
this.queryParams.productId = Number(productId);
|
||||
this.queryParams.groupId=null;
|
||||
}
|
||||
// 分组筛选
|
||||
let groupId = this.$route.query.groupId
|
||||
if (groupId != null) {
|
||||
this.queryParams.groupId = Number(groupId);
|
||||
this.queryParams.productId=null;
|
||||
}
|
||||
this.getList();
|
||||
}
|
||||
|
||||
@@ -331,14 +331,14 @@ export default {
|
||||
updateDeviceStatus(device) {
|
||||
if (device.status == 3) {
|
||||
this.statusColor.background = '#12d09f';
|
||||
this.title = "设备控制(在线)";
|
||||
this.title = "在线模式";
|
||||
} else {
|
||||
if (device.isShadow == 1) {
|
||||
this.statusColor.background = '#409EFF';
|
||||
this.title = "设备控制(影子模式)";
|
||||
this.title = "影子模式";
|
||||
} else {
|
||||
this.statusColor.background = '#909399';
|
||||
this.title = "设备控制(设备不在线 未启用影子)";
|
||||
this.title = "离线模式";
|
||||
this.shadowUnEnable = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user