Browse Source

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

temp
fks-yangshouda 1 month ago
parent
commit
47e6750b24
  1. 8
      hx-ai-intelligent/src/view/monitor/energyMonitor/tree/index.vue

8
hx-ai-intelligent/src/view/monitor/energyMonitor/tree/index.vue

@ -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(() => {

Loading…
Cancel
Save