| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- import request from '@/router/axios';
- export const getList = (current, size, params) => {
- return request({
- url: '/api/blade-user/page',
- method: 'get',
- params: {
- ...params,
- current,
- size,
-
- }
- })
- }
- export const remove = (ids) => {
- return request({
- url: '/api/blade-user/remove',
- method: 'post',
- params: {
- ids,
- }
- })
- }
- export const add = (row) => {
- return request({
- url: '/api/blade-user/submit2',
- method: 'post',
- data: row
- })
- }
- export const update = (row) => {
- return request({
- url: '/api/blade-user/update2',
- method: 'post',
- data: row
- })
- }
- export const updatePlatform = (userId, userType, userExt) => {
- return request({
- url: '/api/blade-user/update-platform',
- method: 'post',
- params: {
- userId,
- userType,
- userExt,
- }
- })
- }
- export const getUser = (id) => {
- return request({
- url: '/api/blade-user/detail',
- method: 'get',
- params: {
- id,
- }
- })
- }
- export const getUserPlatform = (id) => {
- return request({
- url: '/api/blade-user/platform-detail',
- method: 'get',
- params: {
- id,
- }
- })
- }
- export const getUserInfo = () => {
- return request({
- url: '/api/blade-user/info',
- method: 'get',
- })
- }
- export const resetPassword = (userIds) => {
- return request({
- url: '/api/blade-user/reset-password',
- method: 'post',
- params: {
- userIds,
- }
- })
- }
- export const updatePassword = (oldPassword, newPassword, newPassword1, plaintextPassword) => {
- return request({
- url: '/api/blade-user/update-password',
- method: 'post',
- params: {
- oldPassword,
- newPassword,
- newPassword1,
- plaintextPassword,
- }
- })
- }
- export const updateInfo = (row) => {
- return request({
- url: '/api/blade-user/update-info',
- method: 'post',
- data: row
- })
- }
- export const grant = (userIds, roleIds) => {
- return request({
- url: '/api/blade-user/grant',
- method: 'post',
- params: {
- userIds,
- roleIds,
- }
- })
- }
- export const unlock = (userIds) => {
- return request({
- url: '/api/blade-user/unlock',
- method: 'post',
- params: {
- userIds,
- }
- })
- }
- export const lock = (userIds) => {
- return request({
- url: '/api/blade-user/lock',
- method: 'post',
- params: {
- userIds,
- }
- })
- }
- export const getUserList = (params) => {
- return request({
- url: '/api/blade-user/user-list',
- method: 'get',
- params: {
- ...params,
- }
- })
- }
- //删除参建项目整个项目
- export const removeUserProjectInfoAndRoleById = (params) => {
- return request({
- url: '/api/blade-manager/contractInfo/remove-userProjectInfo-role-byId',
- method: 'post',
- params
- })
- }
- //获取用户
- export const getListBySearch = (params) => {
- return request({
- url: '/api/blade-user/search/user',
- method: 'get',
- params
- })
- }
|