能耗监测用查询设备添加deviceNum字段模糊查询

This commit is contained in:
fks-yangshouda
2024-08-20 16:09:57 +08:00
parent cb4fb86cf4
commit 47e6750b24

View File

@@ -441,7 +441,7 @@
if (mode.value == '0') {
http
.post(group.queryDeviceToEnergy, {
deviceName: deviceName.value,
deviceNum: deviceName.value,
energyType: selectedValue.value,
orgId: orgId.value,
// pageNum: 1,
@@ -474,10 +474,12 @@
})
.then((res) => {
treeData2.value = [];
treeData2.value = formatTreeData(pointName.value ? res.data[0].searchList : res.data);
treeData2.value = formatTreeData(res.data);
expandedKeys.value = getAllKeys(treeData2.value);
checkedKeys.value.push(treeData2.value[0].key, treeData2.value[1].key);
if (treeData2.value?.length >= 2) {
checkedKeys.value.push(treeData2.value[0].key, treeData2.value[1].key);
}
getSelect(null);
})
.finally(() => {