Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
0fe37e5f
Commit
0fe37e5f
authored
Apr 21, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置全局资产url
parent
83c75ed9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
user-right-box.vue
src/components/global/user-right-box.vue
+3
-1
AssetsShenpi.vue
src/pages/administration/AssetsSystem/AssetsShenpi.vue
+3
-7
request_zc.js
src/utils/request_zc.js
+1
-3
url.js
src/utils/url.js
+1
-0
No files found.
src/components/global/user-right-box.vue
View file @
0fe37e5f
...
...
@@ -103,6 +103,7 @@
<
script
>
import
Lockr
from
"lockr"
import
{
url_jump_zc
}
from
"../../utils/url"
export
default
{
props
:
{
showObj
:
{
...
...
@@ -146,7 +147,8 @@ export default {
let
userinfo
=
this
.
getLocalStorage
();
let
token
=
Lockr
.
get
(
"Token"
);
// let url = "http://www.test.com:8080/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey;
let
url
=
"http://zcyx.oytour.com/#/Autologin?ObjInfo="
+
token
+
"&SecretKey="
+
userinfo
.
UploadConfig
.
SecretKey
;
// let url = "http://zcyx.oytour.com/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey;
let
url
=
url_jump_zc
+
"/#/Autologin?ObjInfo="
+
token
+
"&SecretKey="
+
userinfo
.
UploadConfig
.
SecretKey
;
window
.
open
(
url
)
},
},
...
...
src/pages/administration/AssetsSystem/AssetsShenpi.vue
View file @
0fe37e5f
...
...
@@ -391,6 +391,7 @@
<
script
>
import
CheckDetails
from
"./CheckDetails.vue"
;
import
{
getAuditChangeLogPageList
,
auditOrRefund
,
getPropertyAuditDetail
}
from
"../../../api/administration/AssetsShenpi"
import
{
url_jump_zc
}
from
"../../../utils/url"
export
default
{
name
:
'approvalDetails'
,
components
:
{
...
...
@@ -415,7 +416,7 @@ export default {
addMsg
:{
AuditDescription
:
''
,
ImageList
:[],
UseReceiveId
:
0
,
UseReceiveId
:
115
,
AuditType
:
''
,
SignImage
:
''
,
},
...
...
@@ -478,12 +479,7 @@ export default {
methods
:{
GoZcUrl
(){
let
url
=
''
;
if
(
!
this
.
isOnline
())
{
url
=
"http://testerp.oytour.com:8080/#/Home"
;
}
else
{
url
=
"http://zcyx.oytour.com/#/Home"
;
}
let
url
=
url_jump_zc
+
"/#/Home"
;
window
.
open
(
url
)
},
inited
(
viewer
){
...
...
src/utils/request_zc.js
View file @
0fe37e5f
...
...
@@ -8,13 +8,11 @@ import {
Dialog
,
Notify
}
from
'quasar'
let
url_zc
=
'http://192.168.1.13:8087/api'
var
showLoginMessageBox
=
false
;
axios
.
defaults
.
headers
[
"Content-Type"
]
=
"application/json;charset=UTF-8"
;
//application/x-www-form-urlencoded;charset=UTF-8
let
token
=
Lockr
.
get
(
"Token"
);
const
service
=
axios
.
create
({
baseURL
:
url_zc
,
baseURL
:
process
.
env
.
API_ZC
,
timeout
:
15000
});
...
...
src/utils/url.js
0 → 100644
View file @
0fe37e5f
export
let
url_jump_zc
=
"http://zcyx.oytour.com"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment