提交代码

This commit is contained in:
GGJ
2025-01-23 14:04:27 +08:00
parent 027172d8a8
commit d282e7a2f2
2 changed files with 12 additions and 8 deletions

View File

@@ -703,14 +703,6 @@ const nodeClick = async (e: anyObj) => {
return loading.value = false
}
searchValue.value = ''
await queryDictType({
lineId: e?.id,
conType: e.conType
}).then(res => {
oddAndEvenFlag.value = false
queryList.value = res.data
formInline.targetType = res.data[0].id
})
deviceId.value = e?.pid
@@ -723,6 +715,15 @@ const nodeClick = async (e: anyObj) => {
//选中设备名称后,点击标签页也能查询数据,要求点击设备名称后,点击标签页默认查询第一个监测点数据
if (e.level == 3 || e.level == 2) {
await queryDictType({
lineId: e?.id,
conType: e.conType
}).then(res => {
oddAndEvenFlag.value = false
queryList.value = res.data
formInline.targetType = res.data[0].id
})
loading.value = true
formInline.lineId = e.level == 3 ? e.id : e.children[0].id
await getDeviceData(e.level == 3 ? e.pid : e.id, 'history', e.level == 3 ? e.id : e.children[0].id)