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.
67 lines
1.1 KiB
67 lines
1.1 KiB
import request from "@/utils/request.js"; |
|
import functions from "@/utils/functions.js"; |
|
|
|
/** |
|
* 登录 |
|
* @param {Object} data |
|
*/ |
|
export function login(data) { |
|
console.log(data) |
|
return request({ |
|
url: `${functions.getDomain()}/api/login`, |
|
method: "post", |
|
data |
|
}); |
|
} |
|
|
|
/** |
|
* 修改密码 |
|
* @param {Object} data |
|
*/ |
|
export function modifyPassword(data) { |
|
console.log(data) |
|
return request({ |
|
url: `${functions.getDomain()}/api/modify-password`, |
|
method: "post", |
|
data |
|
}); |
|
} |
|
/** |
|
* 获取权限 |
|
* @param {Object} data |
|
*/ |
|
export function power(data) { |
|
console.log(data) |
|
return request({ |
|
url: `${functions.getDomain()}/api/power`, |
|
method: "get", |
|
data |
|
}); |
|
} |
|
|
|
|
|
/** |
|
* 首检、冲压、喷涂、小五金、组装巡检列表 |
|
* @param {Object} data |
|
*/ |
|
export function firstCheckLists(data) { |
|
console.log(data) |
|
return request({ |
|
url: `${functions.getDomain()}/api/first-check-lists`, |
|
method: "get", |
|
data |
|
}); |
|
} |
|
|
|
/** |
|
* 首检详情 |
|
* @param {Object} data |
|
*/ |
|
export function firstCheckDetail(data) { |
|
console.log(data) |
|
return request({ |
|
url: `${functions.getDomain()}/api/first-check-detail`, |
|
method: "post", |
|
data |
|
}); |
|
} |