| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- import request from '@/utils/request'
- // 获取用户列表数据
- export function getUserAccountLists(params) {
- return request({
- url: 'UserAccount/GetAllList',
- method: 'get',
- params
- })
- }
- // 获取用户数据
- export function getUserAccount(params) {
- return request({
- url: 'UserAccount/GetModel',
- method: 'get',
- params
- })
- }
- // 添加用户数据
- export function addUserAccount(data) {
- return request({
- url: 'UserAccount/AddUsers',
- method: 'post',
- data
- })
- }
- // 编辑用户数据
- export function editUserAccount(data) {
- return request({
- url: 'UserAccount/EditUsers',
- method: 'post',
- data
- })
- }
- // 删除用户数据
- export function deleteUserAccount(params) {
- return request({
- url: 'UserAccount/DeleteUsers',
- method: 'post',
- params
- })
- }
- // 管理员修改密码
- export function updatePassword(data) {
- return request({
- url: 'UserAccount/ResetPwd',
- method: 'post',
- data
- })
- }
- // 获取菜单树 数据
- export function getDeptTree(params) {
- return request({
- url: 'Department/GetTreeList',
- method: 'get',
- params
- })
- }
- // 获取菜单树故障报修数据
- export function getDeptGzbxTree(params) {
- return request({
- url: 'Department/GetTreeListNew',
- method: 'get',
- params
- })
- }
- // 启用禁用
- export function getDelUsers(params) {
- return request({
- url: 'UserAccount/DelUsers',
- method: 'post',
- params
- })
- }
- // 导入
- export function getUserInput(params) {
- return request({
- url: 'UserAccount/UserInput',
- method: 'POST',
- params
- })
- }
- // 导出
- export function getUserExport(params) {
- return request({
- url: 'UserAccount/GetList',
- method: 'get',
- responseType: 'blob',
- params
- })
- }
- // 眼睛
- export function GetCompletePhone(params) {
- return request({
- url: 'UserAccount/GetCompletePhone',
- method: 'get',
- params
- })
- }
- // 重置密码
- export function NewResetPwd(data) {
- return request({
- url: 'UserAccount/NewResetPwd',
- method: 'post',
- data
- })
- }
- // 恢复用户
- export function ChangeDelete(data) {
- return request({
- url: 'UserAccount/ChangeDelete',
- method: 'post',
- data
- })
- }
|