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.

87 lines
2.2 KiB

/*
* @Author: your name
* @Date: 2021-10-23 17:19:09
* @LastEditTime: 2021-10-28 13:17:39
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/mySelf/index.js
*/
import httpService from "@/request"
// 获取当前的数据
export function getMyFileInfoExcel(params) {
let obj = Object.assign({action: 'getFileInfoExcel', sType: 'User'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 获取用户信息
export function getUserData(params) {
let obj = Object.assign({action: 'getUserData'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 更新用户信息
export function updUserData(params) {
let obj = Object.assign({action: 'updUserData'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 发送验证码
export function getUserDataVERCode(params) {
let obj = Object.assign({action: 'getUserDataVERCode'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 获取预警推送
export function getSwsQyWarningConf(params) {
let obj = Object.assign({action: 'getSwsQyWarningConf'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 设置预警推送
export function saveSwsQyWarningConf(params) {
let obj = Object.assign({action: 'saveSwsQyWarningConf'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}