|
|
@ -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); |
|
|
|
if (treeData2.value?.length >= 2) { |
|
|
|
checkedKeys.value.push(treeData2.value[0].key, treeData2.value[1].key); |
|
|
|
} |
|
|
|
getSelect(null); |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|