|  | @@ -3,7 +3,7 @@ import request from '@/utils/request'
 | 
											
												
													
														|  |  // 查询角色列表
 |  |  // 查询角色列表
 | 
											
												
													
														|  |  export function listRole(query) {
 |  |  export function listRole(query) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/list',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/list',
 | 
											
												
													
														|  |      method: 'get',
 |  |      method: 'get',
 | 
											
												
													
														|  |      params: query
 |  |      params: query
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -12,7 +12,7 @@ export function listRole(query) {
 | 
											
												
													
														|  |  // 查询角色详细
 |  |  // 查询角色详细
 | 
											
												
													
														|  |  export function getRole(roleId) {
 |  |  export function getRole(roleId) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/' + roleId,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/' + roleId,
 | 
											
												
													
														|  |      method: 'get'
 |  |      method: 'get'
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
										
											
												
													
														|  | @@ -20,7 +20,7 @@ export function getRole(roleId) {
 | 
											
												
													
														|  |  // 新增角色
 |  |  // 新增角色
 | 
											
												
													
														|  |  export function addRole(data) {
 |  |  export function addRole(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole',
 | 
											
												
													
														|  |      method: 'post',
 |  |      method: 'post',
 | 
											
												
													
														|  |      data: data
 |  |      data: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -29,7 +29,7 @@ export function addRole(data) {
 | 
											
												
													
														|  |  // 修改角色
 |  |  // 修改角色
 | 
											
												
													
														|  |  export function updateRole(data) {
 |  |  export function updateRole(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      data: data
 |  |      data: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -38,7 +38,7 @@ export function updateRole(data) {
 | 
											
												
													
														|  |  // 角色数据权限
 |  |  // 角色数据权限
 | 
											
												
													
														|  |  export function dataScope(data) {
 |  |  export function dataScope(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/dataScope',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/dataScope',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      data: data
 |  |      data: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -51,7 +51,7 @@ export function changeRoleStatus(roleId, status) {
 | 
											
												
													
														|  |      status
 |  |      status
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/changeStatus',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/changeStatus',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      data: data
 |  |      data: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -60,7 +60,7 @@ export function changeRoleStatus(roleId, status) {
 | 
											
												
													
														|  |  // 删除角色
 |  |  // 删除角色
 | 
											
												
													
														|  |  export function delRole(roleId) {
 |  |  export function delRole(roleId) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/' + roleId,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/' + roleId,
 | 
											
												
													
														|  |      method: 'delete'
 |  |      method: 'delete'
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
										
											
												
													
														|  | @@ -68,7 +68,7 @@ export function delRole(roleId) {
 | 
											
												
													
														|  |  // 查询角色已授权用户列表
 |  |  // 查询角色已授权用户列表
 | 
											
												
													
														|  |  export function allocatedUserList(query) {
 |  |  export function allocatedUserList(query) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/authUser/allocatedList',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/authUser/allocatedList',
 | 
											
												
													
														|  |      method: 'get',
 |  |      method: 'get',
 | 
											
												
													
														|  |      params: query
 |  |      params: query
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -77,7 +77,7 @@ export function allocatedUserList(query) {
 | 
											
												
													
														|  |  // 查询角色未授权用户列表
 |  |  // 查询角色未授权用户列表
 | 
											
												
													
														|  |  export function unallocatedUserList(query) {
 |  |  export function unallocatedUserList(query) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/authUser/unallocatedList',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/authUser/unallocatedList',
 | 
											
												
													
														|  |      method: 'get',
 |  |      method: 'get',
 | 
											
												
													
														|  |      params: query
 |  |      params: query
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -86,7 +86,7 @@ export function unallocatedUserList(query) {
 | 
											
												
													
														|  |  // 取消用户授权角色
 |  |  // 取消用户授权角色
 | 
											
												
													
														|  |  export function authUserCancel(data) {
 |  |  export function authUserCancel(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/authUser/cancel',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/authUser/cancel',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      data: data
 |  |      data: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -95,7 +95,7 @@ export function authUserCancel(data) {
 | 
											
												
													
														|  |  // 批量取消用户授权角色
 |  |  // 批量取消用户授权角色
 | 
											
												
													
														|  |  export function authUserCancelAll(data) {
 |  |  export function authUserCancelAll(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/authUser/cancelAll',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/authUser/cancelAll',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      params: data
 |  |      params: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -104,7 +104,7 @@ export function authUserCancelAll(data) {
 | 
											
												
													
														|  |  // 授权用户选择
 |  |  // 授权用户选择
 | 
											
												
													
														|  |  export function authUserSelectAll(data) {
 |  |  export function authUserSelectAll(data) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/authUser/selectAll',
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/authUser/selectAll',
 | 
											
												
													
														|  |      method: 'put',
 |  |      method: 'put',
 | 
											
												
													
														|  |      params: data
 |  |      params: data
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
										
											
												
													
														|  | @@ -113,7 +113,7 @@ export function authUserSelectAll(data) {
 | 
											
												
													
														|  |  // 根据角色ID查询部门树结构
 |  |  // 根据角色ID查询部门树结构
 | 
											
												
													
														|  |  export function deptTreeSelect(roleId) {
 |  |  export function deptTreeSelect(roleId) {
 | 
											
												
													
														|  |    return request({
 |  |    return request({
 | 
											
												
													
														|  | -    url: '/system/role/deptTree/' + roleId,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    url: '/merchant/merchantSysrole/deptTree/' + roleId,
 | 
											
												
													
														|  |      method: 'get'
 |  |      method: 'get'
 | 
											
												
													
														|  |    })
 |  |    })
 | 
											
												
													
														|  |  }
 |  |  }
 |