|
@@ -164,7 +164,6 @@ const getListEquipment = () => {
|
|
|
if (res.data.code == "200") {
|
|
|
const data = res.data.data;
|
|
|
const typeObj = {};
|
|
|
- debugger;
|
|
|
data.list.forEach((item) => {
|
|
|
if (typeObj[item.monitorScene]) {
|
|
|
typeObj[item.monitorScene].num++;
|
|
@@ -238,20 +237,24 @@ const deviceTypeArr = computed(() => {
|
|
|
|
|
|
//设备类型选中
|
|
|
const selectCurrentKey = (params) => {
|
|
|
- //暂时只支持单选,如果后续可以多选,将下行代码注释
|
|
|
- selectDeviceType.value = [];
|
|
|
-
|
|
|
if (selectDeviceType.value.includes(params.monitorScene)) {
|
|
|
+
|
|
|
selectDeviceType.value = selectDeviceType.value.filter(
|
|
|
(item) => item != params.monitorScene
|
|
|
);
|
|
|
return;
|
|
|
}
|
|
|
+ //暂时只支持单选,如果后续可以多选,将下行代码注释
|
|
|
+ selectDeviceType.value = [];
|
|
|
selectDeviceType.value.push(params.monitorScene);
|
|
|
};
|
|
|
|
|
|
//基本情况设备状态选择
|
|
|
const deviceStatusSelect = (status) => {
|
|
|
+ if(deviceStatus.value == status){
|
|
|
+ deviceStatus.value = null
|
|
|
+ return
|
|
|
+ }
|
|
|
deviceStatus.value = status;
|
|
|
};
|
|
|
|