2019-08-30 09:00:36 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
export function querySecheduling(group, params) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/day`,
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function generateScheduling(group, params) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/generate`,
|
|
|
|
method: 'post',
|
|
|
|
params
|
|
|
|
});
|
|
|
|
}
|
2019-08-30 15:46:08 +08:00
|
|
|
|
|
|
|
export function getSchedulingAllTrains(group) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/train/all`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function checkScheduling(group) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/check`,
|
|
|
|
method: 'post'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function saveScheduling(group, data) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/save`,
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
2019-08-30 17:12:39 +08:00
|
|
|
|
|
|
|
export function generateSchedulingAgain(group) {
|
|
|
|
return request({
|
|
|
|
url: `/api/scheduling/${group}/rebuild`,
|
|
|
|
method: 'delete'
|
|
|
|
});
|
|
|
|
}
|