import axios from "./axios";
|
import md5 from "js-md5";
|
/**
|
* 登录系统
|
* 参数 "uinf.UName="+用户名+"&uinf.Upassword="+密码+"&uinf.UId="+是否记住密码(0,1)
|
* 密码需要使用hex_md5加密
|
*/
|
export const login = (username, password) => {
|
return axios({
|
method: "post",
|
url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${md5(password)}&uinf.UId=0`,
|
data: null
|
})
|
}
|
|
/**
|
* 获取用户告警列表
|
*/
|
export const searchAllByUserId = (data) => {
|
return axios({
|
method: "post",
|
url: `UserWorkAction!searchAllByUserId`,
|
data: 'json=' + JSON.stringify(data)
|
})
|
}
|
|
/**
|
* 查询订单当前最新状态
|
*/
|
export const updateWorkAlarm = (data) => {
|
return axios({
|
method: "post",
|
url: `UserWorkAction!updateWorkAlarm`,
|
data: 'json=' + JSON.stringify(data)
|
})
|
}
|
|
/**
|
* 开始处理更新状态
|
*/
|
export const searchStatusById = (data) => {
|
return axios({
|
method: "post",
|
url: `UserWorkAction!searchStatusById`,
|
data: 'json=' + JSON.stringify(data)
|
})
|
}
|
|
/**
|
* 文件上传
|
*/
|
export const uploadAlarmFile = (data) => {
|
return axios({
|
method: "post",
|
url: `MyFileAction!uploadAlarmFile`,
|
headers: {
|
"Content-Type": "multipart/form-data"
|
},
|
data: data
|
})
|
}
|
|
/**
|
* 更新告警处理
|
*/
|
export const updateUserWork = (data) => {
|
return axios({
|
method: "post",
|
url: `UserWorkAction!updateUserWork`,
|
data: 'json=' + JSON.stringify(data)
|
})
|
}
|
|
/**
|
* 查询告警处理详情
|
*/
|
export const serchByCondition = (data) => {
|
return axios({
|
method: "post",
|
url: `UserWorkAction!serchByCondition`,
|
data: 'json=' + JSON.stringify(data)
|
})
|
}
|