cuixq %!s(int64=3) %!d(string=hai) anos
pai
achega
6c7b3e51fe
Modificáronse 1 ficheiros con 24 adicións e 24 borrados
  1. 24 24
      front-vue/src/api/system/user.js

+ 24 - 24
front-vue/src/api/system/user.js

@@ -4,7 +4,7 @@ import { praseStrEmpty } from "@/utils/huyi";
 // 查询用户列表
 export function listUser(query) {
   return request({
-    url: '/system_cc/ownUser/list',
+    url: '/system/ownUser/list',
     method: 'get',
     params: query
   })
@@ -13,14 +13,14 @@ export function listUser(query) {
 // 查询是否经办人
 export function qperatorQuery() {
   return request({
-    url: '/system_cc/ownUser/qperatorQuery',
+    url: '/system/ownUser/qperatorQuery',
     method: 'post'
   })
 }
 //平台查询经办人待办
 export function handlerDo(data) {
   return request({
-    url: '/system_cc/ownUser/handlerDo',
+    url: '/system/ownUser/handlerDo',
     method: 'post',
     data: data
   })
@@ -28,7 +28,7 @@ export function handlerDo(data) {
 //用户查询经办人待办
 export function handleUser() {
   return request({
-    url: '/system_cc/ownUser/handleUser',
+    url: '/system/ownUser/handleUser',
     method: 'post'
   })
 }
@@ -37,12 +37,12 @@ export function handleUser() {
 export function getUser(userId, scyId) {
   if(userId && scyId){
     return request({
-      url: '/system_cc/user/' + praseStrEmpty(userId) +'/' + scyId,
+      url: '/system/user/' + praseStrEmpty(userId) +'/' + scyId,
       method: 'get'
   })
   }else{
     return request({
-      url: '/system_cc/user/' + praseStrEmpty(userId),
+      url: '/system/user/' + praseStrEmpty(userId),
       method: 'get'
     })
   }
@@ -51,7 +51,7 @@ export function getUser(userId, scyId) {
 // 新增用户
 export function addUser(data) {
   return request({
-    url: '/system_cc/user',
+    url: '/system/user',
     method: 'post',
     data: data
   })
@@ -60,7 +60,7 @@ export function addUser(data) {
 // 修改用户
 export function updateUser(data) {
   return request({
-    url: '/system_cc/user',
+    url: '/system/user',
     method: 'put',
     data: data
   })
@@ -68,7 +68,7 @@ export function updateUser(data) {
 
 export function delUser(userId) {
   return request({
-    url: '/system_cc/user/' + userId,
+    url: '/system/user/' + userId,
     method: 'delete'
   })
 }
@@ -80,7 +80,7 @@ export function resetUserPwd(userId, password) {
     password
   }
   return request({
-    url: '/system_cc/user/resetPwd',
+    url: '/system/user/resetPwd',
     method: 'put',
     data: data
   })
@@ -93,7 +93,7 @@ export function changeUserStatus(userId, status) {
     status
   }
   return request({
-    url: '/system_cc/user/changeStatus',
+    url: '/system/user/changeStatus',
     method: 'put',
     data: data
   })
@@ -103,7 +103,7 @@ export function changeUserStatus(userId, status) {
 export function getUserProfile(sscDomain) {
   console.log(sscDomain)
   return request({
-    url: '/system_cc/user/profile/'+sscDomain,
+    url: '/system/user/profile/'+sscDomain,
     method: 'get'
   })
 }
@@ -111,7 +111,7 @@ export function getUserProfile(sscDomain) {
 // 修改用户个人信息
 export function updateUserProfile(data) {
   return request({
-    url: '/system_cc/user/profile',
+    url: '/system/user/profile',
     method: 'put',
     data: data
   })
@@ -124,7 +124,7 @@ export function updateUserPwd(oldPassword, newPassword) {
     newPassword
   }
   return request({
-    url: '/system_cc/user/profile/updatePwd',
+    url: '/system/user/profile/updatePwd',
     method: 'put',
     params: data
   })
@@ -133,7 +133,7 @@ export function updateUserPwd(oldPassword, newPassword) {
 // 用户头像上传
 export function uploadAvatar(data) {
   return request({
-    url: '/system_cc/user/profile/avatar',
+    url: '/system/user/profile/avatar',
     method: 'post',
     data: data
   })
@@ -142,7 +142,7 @@ export function uploadAvatar(data) {
 // 经办人申请变更
 export function handlerChange(data) {
   return request({
-    url: '/system_cc/ownUser/handlerChange',
+    url: '/system/ownUser/handlerChange',
     method: 'post',
     data: data
   })
@@ -150,7 +150,7 @@ export function handlerChange(data) {
 //经办人确认变更
 export function confirmChange(data) {
   return request({
-    url: '/system_cc/ownUser/confirmChange',
+    url: '/system/ownUser/confirmChange',
     method: 'post',
     data: data
   })
@@ -158,7 +158,7 @@ export function confirmChange(data) {
 //查询员工姓名
 export function nameList(userId) {
   return request({
-    url: '/system_cc/ownUser/listUser/'+ userId,
+    url: '/system/ownUser/listUser/'+ userId,
     method: 'get',
 
   })
@@ -166,14 +166,14 @@ export function nameList(userId) {
 //查询经办人变更图片
 export function getFund(userId) {
   return request({
-    url: '/system_cc/ownUser/details/'+ userId,
+    url: '/system/ownUser/details/'+ userId,
     method: 'get',
   })
 }
 //变更管理员角色
 export function adminChange(userId) {
   return request({
-    url: '/system_cc/ownUser/adminChange/'+ userId,
+    url: '/system/ownUser/adminChange/'+ userId,
     method: 'post',
 
   })
@@ -182,7 +182,7 @@ export function adminChange(userId) {
 // 查询当前用户
 export function getNowUser() {
   return request({
-    url: '/system_cc/ownUser/getNowUser',
+    url: '/system/ownUser/getNowUser',
     method: 'get'
   })
 }
@@ -190,7 +190,7 @@ export function getNowUser() {
 // 根据企业id获取部门与角色信息
 export function getRoleDept(companyId) {
   return request({
-    url: '/system_cc/user/getRoleDept/' + companyId,
+    url: '/system/user/getRoleDept/' + companyId,
     method: 'get'
   })
 }
@@ -198,7 +198,7 @@ export function getRoleDept(companyId) {
 // 查询此用户下关联的企业
 export function companyList(userId) {
   return request({
-    url: '/system_cc/ownUser/' + praseStrEmpty(userId),
+    url: '/system/ownUser/' + praseStrEmpty(userId),
     method: 'get'
   })
 }
@@ -207,7 +207,7 @@ export function companyList(userId) {
 export function selectNormalUser(userName) {
   const query = {userName : userName}
   return request({
-    url: '/system_cc/user/selectNormalUser',
+    url: '/system/user/selectNormalUser',
     method: 'get',
     params: query
   })