commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 分页查询定时任务 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @date 2020/7/3 03:13 |
|
8 |
*/ |
|
9 |
export function sysTimersPage (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/sysTimers/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* 获取全部定时任务 |
|
19 |
* |
|
20 |
* @author yubaoshan |
|
21 |
* @date 2020/7/3 03:23 |
|
22 |
*/ |
|
23 |
export function sysTimersList (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/sysTimers/list', |
|
26 |
method: 'get', |
|
27 |
params: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 查看详情定时任务 |
|
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/7/3 03:23 |
|
36 |
*/ |
|
37 |
export function sysTimersDetail (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysTimers/detail', |
|
40 |
method: 'get', |
|
41 |
params: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 添加定时任务 |
|
47 |
* |
|
48 |
* @author yubaoshan |
|
49 |
* @date 2020/7/3 03:23 |
|
50 |
*/ |
|
51 |
export function sysTimersAdd (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/sysTimers/add', |
|
54 |
method: 'post', |
|
55 |
data: parameter |
|
56 |
}) |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 删除定时任务 |
|
61 |
* |
|
62 |
* @author yubaoshan |
|
63 |
* @date 2020/7/3 03:23 |
|
64 |
*/ |
|
65 |
export function sysTimersDelete (parameter) { |
|
66 |
return axios({ |
|
67 |
url: '/sysTimers/delete', |
|
68 |
method: 'post', |
|
69 |
data: parameter |
|
70 |
}) |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 编辑定时任务 |
|
75 |
* |
|
76 |
* @author yubaoshan |
|
77 |
* @date 2020/7/3 03:23 |
|
78 |
*/ |
|
79 |
export function sysTimersEdit (parameter) { |
|
80 |
return axios({ |
|
81 |
url: '/sysTimers/edit', |
|
82 |
method: 'post', |
|
83 |
data: parameter |
|
84 |
}) |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* 获取系统的所有任务列表 |
|
89 |
* |
|
90 |
* @author yubaoshan |
|
91 |
* @date 2020/7/3 03:23 |
|
92 |
*/ |
|
93 |
export function sysTimersGetActionClasses (parameter) { |
|
94 |
return axios({ |
|
95 |
url: '/sysTimers/getActionClasses', |
|
96 |
method: 'post', |
|
97 |
data: parameter |
|
98 |
}) |
|
99 |
} |
|
100 |
|
|
101 |
/** |
|
102 |
* 启动定时任务 |
|
103 |
* |
|
104 |
* @author yubaoshan |
|
105 |
* @date 2020/7/3 03:23 |
|
106 |
*/ |
|
107 |
export function sysTimersStart (parameter) { |
|
108 |
return axios({ |
|
109 |
url: '/sysTimers/start', |
|
110 |
method: 'post', |
|
111 |
data: parameter |
|
112 |
}) |
|
113 |
} |
|
114 |
|
|
115 |
/** |
|
116 |
* 停止定时任务 |
|
117 |
* |
|
118 |
* @author yubaoshan |
|
119 |
* @date 2020/7/3 03:23 |
|
120 |
*/ |
|
121 |
export function sysTimersStop (parameter) { |
|
122 |
return axios({ |
|
123 |
url: '/sysTimers/stop', |
|
124 |
method: 'post', |
|
125 |
data: parameter |
|
126 |
}) |
|
127 |
} |