| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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
- )
- }
|