Browse Source

【接口看板】API接口调整

faster_AG_grid
安虹睿 1 year ago
parent
commit
40f632d42f
  1. 7
      PC/InterFace.Dash/public/config.js
  2. 1
      PC/InterFace.Dash/src/App.vue
  3. 16
      PC/InterFace.Dash/src/api/wms-auth.js

7
PC/InterFace.Dash/public/config.js

@ -1,7 +1,8 @@
// dev_win // dev_win
window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:60021' window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:60012'
window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:60021' window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:60020'
window.SITE_CONFIG['loginApi'] = 'http://dev.ccwin-in.com:60020' // window.SITE_CONFIG['baseApi'] = 'http://192.168.0.190:60078'//http://dev.ccwin-in.com:60022
// window.SITE_CONFIG['authApi'] = 'http://192.168.0.190:60065'//http://dev.ccwin-in.com:60020
window.SITE_CONFIG['businessApi'] = 'http://dev.ccwin-in.com:10097' window.SITE_CONFIG['businessApi'] = 'http://dev.ccwin-in.com:10097'
//是否登录配置信息【loginName】 //是否登录配置信息【loginName】
window.SITE_CONFIG['isConfigLogin'] = false window.SITE_CONFIG['isConfigLogin'] = false

1
PC/InterFace.Dash/src/App.vue

@ -10,7 +10,6 @@ export default {
} }
localStorage.setItem('baseApi',window.SITE_CONFIG['baseApi']) localStorage.setItem('baseApi',window.SITE_CONFIG['baseApi'])
localStorage.setItem('authApi',window.SITE_CONFIG['authApi']) localStorage.setItem('authApi',window.SITE_CONFIG['authApi'])
localStorage.setItem('loginApi',window.SITE_CONFIG['loginApi'])
// localStorage.setItem('userApi',window.SITE_CONFIG['userApi']) // localStorage.setItem('userApi',window.SITE_CONFIG['userApi'])
localStorage.setItem('businessApi',window.SITE_CONFIG['businessApi']) localStorage.setItem('businessApi',window.SITE_CONFIG['businessApi'])
localStorage.setItem('isConfigLogin',window.SITE_CONFIG['isConfigLogin']) localStorage.setItem('isConfigLogin',window.SITE_CONFIG['isConfigLogin'])

16
PC/InterFace.Dash/src/api/wms-auth.js

@ -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
}) })

Loading…
Cancel
Save