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.
98 lines
1.9 KiB
98 lines
1.9 KiB
2 months ago
|
import upload from '@/utils/upload'
|
||
|
import request from '@/utils/request'
|
||
|
//动火人接口
|
||
|
// 查询特殊作业人员证照列表--未被选中
|
||
|
export function listStaffSpecialNotSelect(query) {
|
||
|
return request({
|
||
|
url: '/office/staff/staffSpecial/listStaffSpecialNotSelect',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
// 查询部门列表
|
||
|
export function listDept(query) {
|
||
|
return request({
|
||
|
url: '/system/dept/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
// 1、全部部门接口
|
||
|
// 查询部门列表全部
|
||
|
export function listDeptAll(query) {
|
||
|
return request({
|
||
|
url: '/system/dept/listAll',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
// 2、全部用户接口
|
||
|
export function selectUserListBaseInfo(query) {
|
||
|
return request({
|
||
|
url: '/system/user/selectUserListBaseInfo',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
// 用户密码重置
|
||
|
export function updateUserPwd(oldPassword, newPassword) {
|
||
|
const data = {
|
||
|
oldPassword,
|
||
|
newPassword
|
||
|
}
|
||
|
return request({
|
||
|
url: '/system/user/profile/updatePwd',
|
||
|
method: 'put',
|
||
|
params: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询用户个人信息
|
||
|
export function getUserProfile() {
|
||
|
return request({
|
||
|
url: '/system/user/profile',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
// 查询用户签名详细
|
||
|
export function getUserSignByUserId(userId) {
|
||
|
return request({
|
||
|
url: '/system/userSign/getUserSignByUserId/' + userId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
//保存签名
|
||
|
export function updateUserSignByUser(data) {
|
||
|
return request({
|
||
|
url: '/system/userSign/updateUserSignByUser',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
// 修改用户个人信息
|
||
|
export function updateUserProfile(data) {
|
||
|
return request({
|
||
|
url: '/system/user/profile',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 用户头像上传
|
||
|
export function uploadAvatar(data) {
|
||
|
return upload({
|
||
|
url: '/system/user/profile/avatar',
|
||
|
name: data.name,
|
||
|
filePath: data.filePath
|
||
|
})
|
||
|
}
|
||
|
// 查询应急通讯录列表
|
||
|
export function listAddressBook(query) {
|
||
|
return request({
|
||
|
url: '/system/addressBook/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|