| | |
| | | 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" |
| | | /** |
| | | * 根据事件推送主题的一级和二级选项获取最后下拉菜单列表 |
| | | */ |
| | |
| | | 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状态 |
| | |
| | | url: "/data/api-v/eventPush/changeStatus", |
| | | method: "post", |
| | | data: query |
| | | }); |
| | | }; |
| | | |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 根据事件id获取事件详情 |
| | |
| | | url: "/data/api-v/eventPush/getById", |
| | | method: "get", |
| | | params: query |
| | | }); |
| | | }; |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 根据id删除 |
| | |
| | | url: "/data/api-v/eventPush/delete", |
| | | method: "post", |
| | | data: qs.stringify(query) |
| | | }); |
| | | }; |
| | | }) |
| | | } |
| | | |
| | | //获取事件声音列表 |
| | | export const getSoundList = () => { |
| | | return request({ |
| | | url: "/saas/api-s/voice/findAll", |
| | | method: "get" |
| | | |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const uploadSound = (data: any) => { |
| | | return request({ |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | //获取所有的推送字段配置 |
| | | 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 |
| | | }) |
| | | } |