From d3fbd83787573e9e67067b7b65ae9d5ce8ecb0b8 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 16 八月 2022 10:03:20 +0800
Subject: [PATCH] 添加统计分析大屏
---
src/api/event.ts | 60 ++++++++++++++++--------------------------------------------
1 files changed, 16 insertions(+), 44 deletions(-)
diff --git a/src/api/event.ts b/src/api/event.ts
index d1b14fe..f2d6694 100644
--- a/src/api/event.ts
+++ b/src/api/event.ts
@@ -1,18 +1,5 @@
-import request from "@/scripts/httpRequest";
-import qs from "qs";
-
-/**
- * 浜嬩欢鎺ㄩ�佷繚瀛�
- */
-export const eventPushsSave = (query: any) => {
- return request({
- url: "/data/api-v/eventPush/save",
- method: "post",
- data: query
- });
-};
-
-
+import request from "@/scripts/httpRequest"
+import qs from "qs"
/**
* 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
*/
@@ -21,19 +8,8 @@
url: "/data/api-v/eventPush/findByEventTopic",
method: "get",
params: query
- });
-};
-
-/**
- * 鏌ヨ浜嬩欢鍒楄〃
- */
-export const findAll = (query: any) => {
- return request({
- url: "/data/api-v/eventPush/findAll",
- method: "get",
- params: query
- });
-};
+ })
+}
/**
* 鏀瑰彉enable鐘舵��
@@ -43,9 +19,8 @@
url: "/data/api-v/eventPush/changeStatus",
method: "post",
data: query
- });
-};
-
+ })
+}
/**
* 鏍规嵁浜嬩欢id鑾峰彇浜嬩欢璇︽儏
@@ -55,8 +30,8 @@
url: "/data/api-v/eventPush/getById",
method: "get",
params: query
- });
-};
+ })
+}
/**
* 鏍规嵁id鍒犻櫎
@@ -66,18 +41,16 @@
url: "/data/api-v/eventPush/delete",
method: "post",
data: qs.stringify(query)
- });
-};
+ })
+}
//鑾峰彇浜嬩欢澹伴煶鍒楄〃
export const getSoundList = () => {
return request({
- url: "/data/api-v/voice/findAll",
+ url: "/saas/api-s/voice/findAll",
method: "get"
-
})
}
-
export const uploadSound = (data: any) => {
return request({
@@ -87,19 +60,18 @@
})
}
-
//鑾峰彇鎵�鏈夌殑鎺ㄩ�佸瓧娈甸厤缃�
-export const getPushSet = ()=>{
+export const getPushSet = () => {
return request({
- url:'/data/api-v/eventPush/getPushSet',
- method:'get'
+ url: "/data/api-v/eventPush/getPushSet",
+ method: "get"
})
}
-export const deleteSound = (q:any) => {
+export const deleteSound = (q: any) => {
return request({
url: "/data/api-v/voice/del",
method: "get",
- params:q
+ params: q
})
}
--
Gitblit v1.8.0