济菏高速业务端
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.

72 lines
1.8 KiB

import request from '@/utils/request'
1 year ago
export function submitTaskRequest(id, jobGroup, time, devices, params, others) {
1 year ago
let functions;
let deviceType = others.deviceType;
if (deviceType == '2'){ //情报板
functions = [
{
"functionId": "11",
"params": {
"size": "65535",
"fileName": "play012.lst"
1 year ago
}
},
{
"functionId": "13",
"params": params
},
{
"functionId": "1B",
"params": {
"fileId": "12"
1 year ago
}
}
]
1 year ago
} else if (deviceType == '5'){ //语音广播
functions = [
{
"functionId": "",
"params": {
"name": "task-3",
"outVol": "6",
"priority": "1",
"text": params.text,
"repeatTimes": "3",
"termList": [
{
"zoneld": "6001",
"termDN": "601"
}
],
"functionType": "startPaTts"
}
}
]
}
let temp = [{
...others,
devices,
functions
}];
let data = {
1 year ago
jobGroup,
1 year ago
time,
callParameter: JSON.stringify(temp)
}
1 year ago
if(id!=undefined){
data.jobId = id;
}
// console.log(JSON.stringify(data));
return request({
// url: '/business/board/batch/publish',
url: `/business/dcBatchFunctionsJob`,
1 year ago
method: id ? 'put' : 'post',
// data: data
data
})
1 year ago
}