Browse Source

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

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

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

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

Loading…
Cancel
Save