From 1e09a7a01a6c1888e1a2a832eb007fb8c2b653a0 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期三, 26 一月 2022 11:06:27 +0800 Subject: [PATCH] Merge branch 'bhomebus' of http://192.168.5.5:10010/r/web/vue-smart-ai into bhomebus --- src/api/helemt.ts | 28 ++++++++++++++++++---------- 1 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/api/helemt.ts b/src/api/helemt.ts index 9dc8d6f..34a4820 100644 --- a/src/api/helemt.ts +++ b/src/api/helemt.ts @@ -2,7 +2,7 @@ export const getHelemtData = (data: any) => { return request({ - url: "/temp/iotdata/devices", + url: "/iotdata/devices", method: "post", data }) @@ -10,7 +10,7 @@ export const sendAudio = (id,data: any) => { return request({ - url: `/temp/iotdata/audio/?sn=${id}`, + url: `/iotdata/audio/?sn=${id}`, method: "post", data }) @@ -18,42 +18,42 @@ export const getBanner = () => { return request({ - url: `/temp/iotdata/banner-info`, + url: `/iotdata/banner-info`, method: "get", }) } export const getChart = () => { return request({ - url: `/temp/iotdata/seven-day`, + url: `/iotdata/seven-day`, method: "get", }) } export const lowBattery = () => { return request({ - url: `/temp/iotdata/low-battery`, + url: `/iotdata/low-battery`, method: "post", }) } export const outBound = () => { return request({ - url: `/temp/iotdata/out-bound`, + url: `/iotdata/out-bound`, method: "post", }) } export const historyWarn = () => { return request({ - url: `/temp/iotdata/history`, + url: `/iotdata/history`, method: "post", }) } export const handleWarn = (data) => { return request({ - url: `/temp/iotdata/handle-warn`, + url: `/iotdata/handle-warn`, method: "post", data }) @@ -61,7 +61,7 @@ export const getZones = (data) => { return request({ - url: `/temp/iotdata/zones`, + url: `/iotdata/zones`, method: "post", data }) @@ -69,7 +69,15 @@ export const createZones = (data) => { return request({ - url: `/temp/iotdata/create-zone`, + url: `/iotdata/create-zone`, + method: "post", + data + }) +} + +export const delZones = (data) => { + return request({ + url: `/iotdata/del-zone`, method: "post", data }) -- Gitblit v1.8.0