安虹睿
1 year ago
7 changed files with 39 additions and 283 deletions
@ -1,51 +0,0 @@ |
|||
// dev_win
|
|||
window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:60021' |
|||
window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:60021' |
|||
window.SITE_CONFIG['loginApi'] = 'http://dev.ccwin-in.com:60020' |
|||
window.SITE_CONFIG['businessApi'] = 'http://dev.ccwin-in.com:10097' |
|||
//是否登录配置信息【loginName】
|
|||
window.SITE_CONFIG['isConfigLogin'] = false |
|||
//如果【isConfigLogin】为true则使用【loginName】登录
|
|||
window.SITE_CONFIG['configLoginName'] = 'admin' |
|||
// 默认登录密码(isConfigLogin为true或者链接参数存在loginName使用)
|
|||
window.SITE_CONFIG['configLoginPass'] = '1q2w3E*' |
|||
// 是否单页面(不显示菜单头部等部分)
|
|||
window.SITE_CONFIG['isSinglePage'] = false |
|||
// 项目配置
|
|||
window.SITE_CONFIG['appClientId'] = 'Z_App' |
|||
// 项目配置内部名称
|
|||
window.SITE_CONFIG['appClientScope'] = 'Z' |
|||
// 浏览器名称
|
|||
window.SITE_CONFIG['browserTitle'] = '接口看板-QAD&WMS' |
|||
// 单点登录使用数据
|
|||
window.SITE_CONFIG['oidcLogin_url'] = 'http://dev.ccwin-in.com:60065', |
|||
window.SITE_CONFIG['oidcLogin_clientId'] = 'InterfaceDash_App' |
|||
window.SITE_CONFIG['oidcLogin_scopes'] = 'offline_access Z profile' |
|||
// 隐藏的页面
|
|||
window.SITE_CONFIG['menuHiddenConfig'] = [ |
|||
'ArriveNoticeDetail','ContainerBindNoteDetail','CountAdjustNoteDetail', |
|||
'CountNoteDetail','CountPlanDetail','CustomerAsnDetail', |
|||
'CustomerReturnNoteDetail','DeliverNoteDetail','DeliverPlanDetail', |
|||
'DeliverRequestDetail','InspectAbnormalNoteDetail','InspectNoteDetail', |
|||
'InspectNoticeDetail','InventoryTransferNoteDetail','IPurchaseOrderDetailRepository', |
|||
'IsolationNoteDetail','IssueNoteDetail','IssueNoteDetailToMes', |
|||
'JisDeliverNoteDetail','JisProductDetail','JisProductReceiptNoteDetail', |
|||
'JisProductRecycleNoteDetail','JisProductReturnNoteDetail','JisProductTransferNoteDetail', |
|||
'MaterialRequestDetail','OfflineSettlementNoteDetail','OuterJisDeliverNoteDetail', |
|||
'OuterJisUnplannedIssueNoteDetail','OuterJisUnplannedReceiptNoteDetail','OuterPillarDeliverNoteDetail', |
|||
'PillarDeliverNoteDetail','PreparationPlanDetail','ProductionPlanDetail', |
|||
'ProductL7PartsNoteDetail','ProductReceiptLogDetail','ProductReceiptNoteDetail', |
|||
'ProductRecycleNoteDetail','PurchaseOrderDetail','PurchaseReceiptNoteDetail', |
|||
'PurchaseReturnNoteDetail','PutawayNoteDetail','ReceiptAbnormalNoteDetail', |
|||
'ReworkNoteDetail','SaleOrderDetail','ScrapNoteDetail', |
|||
'ScrapOutNoteDetail','SingleDoorPanelCustomerReturnNoteDetail','SingleDoorPanelDeliverNoteDetail', |
|||
'SingleDoorPanelProductAdjustNoteDetail','SingleDoorPanelProductReceiptNoteDetail','SingleDoorPanelProductTransferNoteDetail', |
|||
'StockReturnNoteDetail','SupplierAsnDetail','TracebackNoteDetail', |
|||
'UnplannedIssueNoteDetail','UnplannedReceiptNoteDetail','WarehouseTransferNoteDetail', |
|||
'WorkOrderDetail' |
|||
] |
|||
|
|||
// window.SITE_CONFIG['isAutoLogin'] = true
|
|||
// window.SITE_CONFIG['userNameOrEmailAddress'] = 'admin'
|
|||
// window.SITE_CONFIG['client_secret'] = '1q2w3E*'
|
|||
// window.SITE_CONFIG['columnsApiNamesZh'] = 'Z'
|
@ -1,205 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
let authApi = localStorage.getItem('authApi') + '/api' |
|||
let loginApi = localStorage.getItem('loginApi') |
|||
|
|||
export function logout() { |
|||
return request({ |
|||
url: authApi + '/account/logout', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
|
|||
// faster-new
|
|||
// 登录
|
|||
export function login(data) { |
|||
return request({ |
|||
url: loginApi + '/CustAccount/login', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 获取token
|
|||
export function token(data) { |
|||
return request({ |
|||
url: authApi + '/connect/token', |
|||
method: 'post', |
|||
headers: { |
|||
'Content-Type': 'application/x-www-form-urlencoded' |
|||
}, |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 通过token获取用户信息(单点登录)
|
|||
export function getUsersByToken(token) { |
|||
return request({ |
|||
url: loginApi + '/connect/userinfo', |
|||
method: 'get', |
|||
Token:token |
|||
}) |
|||
} |
|||
|
|||
// 通过用户名获取用户信息
|
|||
export function getUsersByUserName(name) { |
|||
return request({ |
|||
url: authApi + '/identity/users/by-username/'+name, |
|||
method: 'get', |
|||
}) |
|||
} |
|||
|
|||
// 获取表头zh转义数据
|
|||
export function getInterfaceBoard() { |
|||
return request({ |
|||
method:'get', |
|||
url: authApi + '/abp/application-localization', |
|||
params:{ |
|||
CultureName:localStorage.getItem('browserLanguage'), |
|||
OnlyDynamics:false |
|||
} |
|||
// params:{IncludeLocalizationResources:true}
|
|||
}) |
|||
} |
|||
|
|||
// 获取菜单数据
|
|||
export function getDefinitionMenu(IncludeTypes) { |
|||
return request({ |
|||
method:'get', |
|||
url: authApi + '/abp/application-configuration', |
|||
params:{IncludeLocalizationResources:true} |
|||
}) |
|||
} |
|||
|
|||
// 获取枚举数据/dto列类型等所有配置
|
|||
export async function getApiDefinition() { |
|||
return request({ |
|||
method:'get', |
|||
url: authApi + '/abp/api-definition', |
|||
params:{IncludeTypes:true} |
|||
}) |
|||
} |
|||
|
|||
// *************权限Roles页面维护*************
|
|||
//获取列表
|
|||
export function getPageListRoles(data) { |
|||
return request({ |
|||
url: authApi + '/identity/roles', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
//获取权限模板
|
|||
export function getPermissionsRoles(data) { |
|||
return request({ |
|||
url: authApi +'/permission-management/permissions', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 创建角色
|
|||
export function postCreateRoles(data) { |
|||
return request({ |
|||
url: authApi + '/identity/roles', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
//编辑角色
|
|||
export function postUpdateRoles(data, id) { |
|||
return request({ |
|||
url: authApi+'/identity/roles/' + id, |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
//删除角色
|
|||
export function postDeleteRoles(id) { |
|||
return request({ |
|||
url: authApi + '/identity/roles/' + id, |
|||
method: 'delete', |
|||
}) |
|||
} |
|||
|
|||
//保存权限模板
|
|||
export function savePermissionsRoles(URL, data) { |
|||
return request({ |
|||
url: authApi + URL, |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 更新权限
|
|||
export function updatePermissionsGranted(pname,pkey) { |
|||
return request({ |
|||
url: authApi + `/permissions/get-isGranted?name=demox&providerName=${pname}&providerKey=${pkey}`, |
|||
method: 'post', |
|||
}) |
|||
} |
|||
|
|||
// *************用户Users页面维护*************
|
|||
|
|||
//获取全部用户信息
|
|||
export function getPageListUsers(data) { |
|||
return request({ |
|||
url: authApi + '/identity/users', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
//新建用户
|
|||
export function postCreateUser(data) { |
|||
return request({ |
|||
url: authApi + '/identity/users', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
//编辑用户
|
|||
export function postUpdateUser(data, id) { |
|||
return request({ |
|||
url: authApi + '/identity/users/' + id, |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
//删除用户
|
|||
export function postDeleteUser(id) { |
|||
return request({ |
|||
url: authApi + '/identity/users/' + id, |
|||
method: 'delete', |
|||
}) |
|||
} |
|||
|
|||
// 获取当前用户的角色
|
|||
export function usersroles() { |
|||
return request({ |
|||
url: authApi + '/identity/users/assignable-roles', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
//获取当前角色
|
|||
export function getusersID(data) { |
|||
return request({ |
|||
url: authApi + '/identity/users/' + data + '/roles', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
//修改登录用户的密码-强密码规则
|
|||
export function postLoginUserInfo(data, id) { |
|||
return request({ |
|||
url: authApi + '/identity/users/change-password/' + id, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
Loading…
Reference in new issue