|
@ -1,6 +1,7 @@ |
|
|
import request from '@/utils/request' |
|
|
import request from '@/utils/request' |
|
|
let authApi = localStorage.getItem('authApi') + '/api' |
|
|
let baseApi = localStorage.getItem('baseApi') + '/api' |
|
|
let loginApi = localStorage.getItem('loginApi') |
|
|
let authUrl = localStorage.getItem('authApi') |
|
|
|
|
|
let authApi = authUrl + '/api' |
|
|
|
|
|
|
|
|
export function logout() { |
|
|
export function logout() { |
|
|
return request({ |
|
|
return request({ |
|
@ -14,7 +15,7 @@ export function logout() { |
|
|
// 登录
|
|
|
// 登录
|
|
|
export function login(data) { |
|
|
export function login(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: loginApi + '/CustAccount/login', |
|
|
url: authUrl + '/CustAccount/login', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data |
|
|
data |
|
|
}) |
|
|
}) |
|
@ -35,7 +36,7 @@ export function token(data) { |
|
|
// 通过token获取用户信息(单点登录)
|
|
|
// 通过token获取用户信息(单点登录)
|
|
|
export function getUsersByToken(token) { |
|
|
export function getUsersByToken(token) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: loginApi + '/connect/userinfo', |
|
|
url: authUrl + '/connect/userinfo', |
|
|
method: 'get', |
|
|
method: 'get', |
|
|
Token:token |
|
|
Token:token |
|
|
}) |
|
|
}) |
|
@ -53,7 +54,7 @@ export function getUsersByUserName(name) { |
|
|
export function getInterfaceBoard() { |
|
|
export function getInterfaceBoard() { |
|
|
return request({ |
|
|
return request({ |
|
|
method:'get', |
|
|
method:'get', |
|
|
url: authApi + '/abp/application-localization', |
|
|
url: baseApi + '/abp/application-localization', |
|
|
params:{ |
|
|
params:{ |
|
|
CultureName:localStorage.getItem('browserLanguage'), |
|
|
CultureName:localStorage.getItem('browserLanguage'), |
|
|
OnlyDynamics:false |
|
|
OnlyDynamics:false |
|
@ -66,7 +67,7 @@ export function getInterfaceBoard() { |
|
|
export function getDefinitionMenu(IncludeTypes) { |
|
|
export function getDefinitionMenu(IncludeTypes) { |
|
|
return request({ |
|
|
return request({ |
|
|
method:'get', |
|
|
method:'get', |
|
|
url: authApi + '/abp/application-configuration', |
|
|
url: baseApi + '/abp/application-configuration', |
|
|
params:{IncludeLocalizationResources:true} |
|
|
params:{IncludeLocalizationResources:true} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -75,7 +76,7 @@ export function getDefinitionMenu(IncludeTypes) { |
|
|
export async function getApiDefinition() { |
|
|
export async function getApiDefinition() { |
|
|
return request({ |
|
|
return request({ |
|
|
method:'get', |
|
|
method:'get', |
|
|
url: authApi + '/abp/api-definition', |
|
|
url: baseApi + '/abp/api-definition', |
|
|
params:{IncludeTypes:true} |
|
|
params:{IncludeTypes:true} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -85,6 +86,7 @@ export async function getApiDefinition() { |
|
|
export function getPageListRoles(data) { |
|
|
export function getPageListRoles(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: authApi + '/identity/roles', |
|
|
url: authApi + '/identity/roles', |
|
|
|
|
|
// url: 'http://192.168.0.190:44330/Identity/Roles',
|
|
|
method: 'get', |
|
|
method: 'get', |
|
|
params: data |
|
|
params: data |
|
|
}) |
|
|
}) |
|
|