首页修改单位

This commit is contained in:
fengrong 2024-11-25 14:53:58 +08:00
parent fecad2745e
commit 35992bd781

View File

@ -22,7 +22,7 @@
<div class="small-title">全场实时有功</div> <div class="small-title">全场实时有功</div>
<div class="small-value"> <div class="small-value">
<span class="content-number">{{realData.attributeMap.windfarmactivepower}}</span> <span class="content-number">{{realData.attributeMap.windfarmactivepower}}</span>
<span>MW</span> <span>kW</span>
</div> </div>
</div> </div>
</div> </div>
@ -349,7 +349,7 @@ const getTableData = (deviceCode) => {
limit: 100, limit: 100,
eventLevel:2 eventLevel:2
} }
console.log(JSON.stringify(data)) // console.log(JSON.stringify(data))
getAlarmListReq(data).then((res) => { getAlarmListReq(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
//tableData.value = res.rows //tableData.value = res.rows
@ -431,11 +431,7 @@ const createScroll = () => {
const activeName = ref('first')
//let autoUpdateTimer: any = null
let autoUpdateForSecondTimer: any = null let autoUpdateForSecondTimer: any = null
let autoUpdateTimerForMinuteTimer: any = null
let autoUpdateTimerForHourTimer: any = null
const autoUpdate = () => { const autoUpdate = () => {
if (!autoUpdateForSecondTimer) { if (!autoUpdateForSecondTimer) {
autoUpdateForSecondTimer = setInterval(() => { autoUpdateForSecondTimer = setInterval(() => {
@ -485,10 +481,6 @@ onUnmounted(() => {
window.removeEventListener('resize', sizeChange) window.removeEventListener('resize', sizeChange)
clearInterval(timer) clearInterval(timer)
autoUpdateForSecondTimer && clearInterval(autoUpdateForSecondTimer) autoUpdateForSecondTimer && clearInterval(autoUpdateForSecondTimer)
/*const chartKeys = Object.keys(state.charts) as Array<keyof typeof state.charts>
chartKeys.forEach((key) => {
state.charts[key].dispose()
})*/
}) })
</script> </script>