提交代码

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

@@ -43,12 +43,15 @@ const info = () => {
if (item.name == '治理设备') {
item.children.forEach((item: any) => {
item.icon = 'el-icon-HomeFilled'
item.level=1
item.color = config.getColorVal('elementUiPrimary')
item.children.forEach((item2: any) => {
item2.icon = 'el-icon-List'
item2.level=1
item2.color = config.getColorVal('elementUiPrimary')
item2.children.forEach((item3: any) => {
item3.icon = 'el-icon-Platform'
item3.level=1
item3.color =
item3.comFlag === 2 ? config.getColorVal('elementUiPrimary') : '#e26257 !important'
item3.children.forEach((item4: any) => {

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)