fix: 资产信息ui
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 24m28s

This commit is contained in:
luo
2026-08-21 16:56:34 +08:00
parent 4d023e7666
commit d8191f03a0
16 changed files with 661 additions and 135 deletions

View File

@@ -57,7 +57,7 @@
<script setup lang="ts">
import { ref, reactive, computed, onMounted, h } from 'vue'
import { ElMessage, ElTag } from 'element-plus'
import { ElTag } from 'element-plus'
import { PollingAlertService } from '@/api/modules'
import type {
PollingAlertHistory,
@@ -264,7 +264,7 @@
loadData()
}
const handleRowContextMenu = (row: PollingAlertHistory, column: any, event: MouseEvent) => {
const handleRowContextMenu = (row: PollingAlertHistory, _column: any, event: MouseEvent) => {
event.preventDefault()
event.stopPropagation()
currentClickRow.value = row

View File

@@ -379,7 +379,7 @@
})
dialogType.value = 'edit'
dialogVisible.value = true
nextTick(() => {
await nextTick(() => {
formRef.value?.clearValidate()
})
}
@@ -398,7 +398,7 @@
if (res.code === 0) {
ElMessage.success('创建成功')
dialogVisible.value = false
loadData()
await loadData()
}
} else {
const { id, metric_type, task_type, operator, ...updateData } = form
@@ -406,7 +406,7 @@
if (res.code === 0) {
ElMessage.success('更新成功')
dialogVisible.value = false
loadData()
await loadData()
}
}
} catch (error) {
@@ -422,7 +422,7 @@
const res = await PollingAlertService.updatePollingAlertRule(row.id, { status: newStatus })
if (res.code === 0) {
ElMessage.success(newStatus === 1 ? '已启用' : '已禁用')
loadData()
await loadData()
}
} catch (error) {
console.log('操作失败')
@@ -439,7 +439,7 @@
const res = await PollingAlertService.deletePollingAlertRule(row.id)
if (res.code === 0) {
ElMessage.success('删除成功')
loadData()
await loadData()
}
} catch (error) {
console.log('删除失败')

View File

@@ -611,7 +611,7 @@
card_status_check_interval: data.card_status_check_interval
})
dialogVisible.value = true
nextTick(() => {
await nextTick(() => {
formRef.value?.clearValidate()
})
} catch {