| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import HttpAxios from '@/utils/axios'
- const base = import.meta.env.VITE_API_HOST
- const baseUrl = `${base}/main_new_version.php`
- /**
- * 获取subscribe数据
- */
- export const getsubscribe = (params: any, config: any) => {
- return HttpAxios.get(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_notification_init',
- ...params
- },
- config
- )
- }
- /**
- * 提交subscribe数据
- */
- export const Savesubscribe = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_notification_event_update',
- ...params
- },
- config
- )
- }
- /**
- * 删除AddedRules表格数据
- */
- export const DeleteAddedRules = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_notification_rules_delete',
- ...params
- },
- config
- )
- }
- /**
- * 收藏
- */
- export const SubscribeShipments = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_shipment',
- ...params
- },
- config
- )
- }
- /**
- * 收藏表格分页切换
- */
- export const SubscribePagination = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_shipment_search',
- ...params
- },
- config
- )
- }
- /**
- * 初始化数据
- */
- export const MonitoringInit = (params: any, config: any) => {
- return HttpAxios.get(
- `${baseUrl}`,
- {
- action: 'monitoring_setting',
- operate: 'monitoring_rules_init',
- ...params
- },
- config
- )
- }
- /**
- * Monitoring保存数据
- */
- export const MonitoringSave = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'monitoring_setting',
- operate: 'monitoring_rules_do',
- ...params
- },
- config
- )
- }
- /**
- * Monitoring表格数据
- */
- export const MonitoringTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'monitoring_setting',
- operate: 'monitoring_rules_search',
- ...params
- },
- config
- )
- }
- /**
- * 删除Monitoring表格数据
- */
- export const deleteMonitoringTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'monitoring_setting',
- operate: 'monitoring_rules_delete',
- ...params
- },
- config
- )
- }
- /**
- * 编辑Monitoring表格数据
- */
- export const EditMonitoringTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'monitoring_setting',
- operate: 'monitoring_rules_edit',
- ...params
- },
- config
- )
- }
- /**
- * 第一次点击设置页面
- */
- export const FirstInitSubscribe = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'system_setting',
- operate: 'subscribe_notification_default_init',
- ...params
- },
- config
- )
- }
|