-
{{ getHarmonicTypeName() }}谐波次数
+
+ {{ getHarmonicTypeName() }}谐波次数
([])
-
// 计算是否全屏展示
const fullscreen = computed(() => {
const w = Number(prop.w)
@@ -122,13 +125,10 @@ const indicatorList = ref()
const initLineList = async () => {
cslineList({}).then(res => {
lineList.value = res.data
- if (lineList.value && lineList.value.length > 0) {
- tableStore.table.params.lineId = lineList.value[0].lineId
- }
+ tableStore.table.params.lineId = lineList.value[0].lineId
})
}
-
const echartList = ref()
const headerHeight = ref(57)
@@ -143,7 +143,6 @@ const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
}
const setEchart = () => {
-
// 获取当前选择的功率和指标名称
const powerName = powerList.value?.find((item: any) => item.id === tableStore.table.params.power)?.name || '功率'
const indicatorName =
@@ -257,7 +256,7 @@ const setEchart = () => {
} catch (error) {
console.error('处理图表数据时出错:', error)
showEchart.value = false
- }
+ }
}
const initCode = () => {
@@ -395,7 +394,6 @@ watch(
onMounted(() => {
initLineList().then(() => {
- // 确保 lineList 加载完成后再初始化其他数据
initCode()
})
})
diff --git a/src/views/pqs/cockpit/homePage/index.vue b/src/views/pqs/cockpit/homePage/index.vue
index 095d255..4005a66 100644
--- a/src/views/pqs/cockpit/homePage/index.vue
+++ b/src/views/pqs/cockpit/homePage/index.vue
@@ -71,7 +71,6 @@ import { queryActivatePage, queryByPagePath } from '@/api/system-boot/csstatisti
import RoutingConfig from '@/views/pqs/cockpit/homePage/components/routingConfig.vue'
import { useRouter, useRoute } from 'vue-router'
import { useTimeCacheStore } from '@/stores/timeCache'
-import {cslineList} from '@/api/harmonic-boot/cockpit/cockpit'
const { push } = useRouter()
const datePickerRef = ref()
const router = useRouter()
@@ -247,17 +246,10 @@ const handleDatePickerChange = (value: any) => {
}
}
-// 监测点列表
-const initCSlineList = async () => {
- const res = await cslineList({})
- window.localStorage.setItem('lineIdList', JSON.stringify(res.data))
-}
-
// 生命周期钩子
onMounted(() => {
// initRowHeight()
fetchLayoutData()
- initCSlineList()
// 添加窗口大小变化监听器
window.addEventListener('resize', handleResize)