Browse Source

fix: 图表接口更新

master
guoapeng 2 weeks ago
parent
commit
e9df8bcc57
  1. 9
      src/views/home/chart.vue

9
src/views/home/chart.vue

@ -86,11 +86,6 @@ const operationState = computed(() => {
let poll = null
const getData = async () => {
const res = await syncSendCmd({
className: 'DisinfectionCtrlServiceExt',
fnName: 'getState',
})
console.log(res.rely.startTimestamp)
const data = await syncSendCmd({
className: 'H2O2SensorMgr',
fnName: 'getH2O2SensorList',
@ -100,13 +95,11 @@ const getData = async () => {
const item: any = chartList.value[i]
const list = await syncSendCmd({
className: 'H2O2SensorMgr',
fnName: 'getH2O2DataRecordList',
fnName: 'getDisinfectionH2O2DataRecordList',
params: {
type: item.type,
id: item.id,
since: res.rely?.startTimestamp,
interval: 30,
before: 0,
},
})
chartList.value[i].data = list.rely

Loading…
Cancel
Save