670 SOS转到服务端进行
This commit is contained in:
@ -9,11 +9,13 @@ function getdata(data,url,method){
|
||||
if(!method){
|
||||
method='POST';
|
||||
}
|
||||
request({
|
||||
let cfg={
|
||||
url: url,
|
||||
method: method,
|
||||
data:data
|
||||
}).then((res)=>{
|
||||
};
|
||||
|
||||
request(cfg).then((res)=>{
|
||||
console.log("res=",res);
|
||||
resolve(res);
|
||||
}).catch(ex=>{
|
||||
@ -90,11 +92,22 @@ function getDetail(id){
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//发送SOS
|
||||
function sendSos(data){
|
||||
return request({
|
||||
url: '/app/xinghan/device/SOSGradeSettings',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
export default{
|
||||
sendUsr:sendUsr,
|
||||
warnMsg:warnMsg,
|
||||
sendPic:sendPic,
|
||||
getDetail:getDetail
|
||||
getDetail:getDetail,
|
||||
sendSos:sendSos,
|
||||
getdata:getdata
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user