diff --git a/src/components/cockpit/F47Curve/index.vue b/src/components/cockpit/F47Curve/index.vue index 8c12151..e029702 100644 --- a/src/components/cockpit/F47Curve/index.vue +++ b/src/components/cockpit/F47Curve/index.vue @@ -98,7 +98,7 @@ const data = reactive({ bkrr: 0 }) const tableStore: any = new TableStore({ - url: '/user-boot/dept/deptTree', + url: '/cs-harmonic-boot/csevent/f47Curve', method: 'POST', showPage: false, @@ -109,22 +109,16 @@ const tableStore: any = new TableStore({ tableStore.table.params.searchEndTime = tableStore.table.params.searchEndTime || prop.timeValue?.[1] }, loadCallback: () => { - let res = { - data: { totalNumberOfEvents: 0, voltageToleranceCurveDataList: [] } - } - - const gongData = gongfunction(res.data.voltageToleranceCurveDataList) - data.gs = res.data.voltageToleranceCurveDataList.length + const gongData = gongfunction(tableStore.table.data) + data.gs = tableStore.table.data.length data.krr = gongData.pointI.length data.bkrr = gongData.pointIun.length - console.log(gongData) + console.log(gongData,'789000') echartList.value = { - // backgroundColor: "#f9f9f9", //地图背景色深蓝 title: { text: `F47曲线` }, legend: { - // data: ['上限', '下限', '可容忍事件', '不可容忍事件'], data: ['可容忍事件', '不可容忍事件'], itemWidth: 10, itemHeight: 10, @@ -206,11 +200,11 @@ const tableStore: any = new TableStore({ type: 'scatter', symbol: 'circle', symbolSize: 8, - // data: gongData.pointF, - data: [ - [0.2, 10, '2023-01-01 10:00:00'], - [0.4, 50, '2023-01-01 11:00:00'] - ], + data: gongData.pointF, + // data: [ + // [0.2, 10, '2023-01-01 10:00:00'], + // [0.4, 50, '2023-01-01 11:00:00'] + // ], legendSymbol: 'circle', emphasis: { focus: 'series',