You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
47 lines
1.0 KiB
|
|
import request from '@/utils/request'
|
|
|
|
export function submitTaskRequest(id, jobGroup, time, devices, params, others) {
|
|
let temp = [{
|
|
...others,
|
|
devices: devices,
|
|
"functions": [
|
|
{
|
|
"functionId": "11",
|
|
"params": {
|
|
"size": "65535",
|
|
"fileName": "play012.lst"
|
|
}
|
|
},
|
|
{
|
|
"functionId": "13",
|
|
"params": params
|
|
},
|
|
{
|
|
"functionId": "1B",
|
|
"params": {
|
|
"fileId": "12"
|
|
}
|
|
}
|
|
|
|
]
|
|
}];
|
|
let data = {
|
|
jobGroup,
|
|
time,
|
|
callParameter: JSON.stringify(temp)
|
|
}
|
|
if(id!=undefined){
|
|
data.jobId = id;
|
|
}
|
|
// console.log(JSON.stringify(data));
|
|
return request({
|
|
// url: '/business/board/batch/publish',
|
|
url: `/business/dcBatchFunctionsJob`,
|
|
method: id ? 'put' : 'post',
|
|
// data: data
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
|