Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AIEngine
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AIEngine
Commits
b213f71b
Commit
b213f71b
authored
May 06, 2021
by
wangdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move
parent
da238fc6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
24 deletions
+39
-24
README.md
README.md
+1
-1
src/front/src/components/SshPage/FlexRan.vue
src/front/src/components/SshPage/FlexRan.vue
+7
-7
src/front/src/components/SshPage/SshPage.vue
src/front/src/components/SshPage/SshPage.vue
+3
-3
src/front/utils/flexranAPI.js
src/front/utils/flexranAPI.js
+1
-1
src/renderer/components/SshPage/FlexRan.vue
src/renderer/components/SshPage/FlexRan.vue
+23
-8
src/renderer/components/SshPage/SshPage.vue
src/renderer/components/SshPage/SshPage.vue
+3
-3
src/utils/flexranAPI.js
src/utils/flexranAPI.js
+1
-1
No files found.
README.md
View file @
b213f71b
...
...
@@ -9,7 +9,7 @@
##### STEPS
```
bash
git clone http://
10.25.20.227
/project-ai-scheduler/oai_show_app
git clone http://
202.204.54.185
/project-ai-scheduler/oai_show_app
cd
oai_show_app
...
...
src/front/src/components/SshPage/FlexRan.vue
View file @
b213f71b
...
...
@@ -78,28 +78,28 @@ export default {
name
:
"
OAI_ENB
"
,
active
:
false
,
url
:
"
http://
10.25.20.227
:2222/ssh/host/192.168.1.193?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185
:2222/ssh/host/192.168.1.193?autologin=1&user=root&pass=199710
"
,
},
{
name
:
"
DroneFront
"
,
active
:
false
,
url
:
"
http://
10.25.20.227
:2222/ssh/host/192.168.1.36?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185
:2222/ssh/host/192.168.1.36?autologin=1&user=root&pass=199710
"
,
},
{
name
:
"
AI-Engine
"
,
active
:
false
,
url
:
"
http://
10.25.20.227
:2222/ssh/host/192.168.1.80?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185
:2222/ssh/host/192.168.1.80?autologin=1&user=root&pass=199710
"
,
},
{
name
:
"
CoreNet
"
,
active
:
false
,
url
:
"
http://
10.25.20.227
:2222/ssh/host/192.168.1.12?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185
:2222/ssh/host/192.168.1.12?autologin=1&user=root&pass=199710
"
,
},],
srcs
:
[
{
name
:
"
FlexRan
"
,
active
:
true
,
url
:
"
http://
10.25.20.227
:2224
"
},
{
name
:
"
FlexRan
"
,
active
:
true
,
url
:
"
http://
202.204.54.185
:2224
"
},
],
menus
:
[
{
name
:
"
FlexRan
"
,
active
:
true
},
...
...
@@ -120,12 +120,12 @@ export default {
let
returnCitySN
=
JSON
.
parse
(
res
.
split
(
"
=
"
)[
1
].
split
(
"
;
"
)[
0
]);
let
local
=
await
flexranAPI
.
DETECT_LOCAL
({},
returnCitySN
[
"
cip
"
]);
if
(
local
.
area
==
"
北京科技大学
"
)
{
this
.
src
=
`http://
10.25.20.227
:2224`
;
this
.
src
=
`http://
202.204.54.185
:2224`
;
}
else
{
this
.
src
=
`http://ustb-oai.com:2224`
;
}
}
catch
(
error
)
{
this
.
src
=
`http://
10.25.20.227
:2224`
;
this
.
src
=
`http://
202.204.54.185
:2224`
;
}
},
methods
:
{
...
...
src/front/src/components/SshPage/SshPage.vue
View file @
b213f71b
...
...
@@ -16,7 +16,7 @@ export default {
dataList
:[],
host
:
''
,
action
:
''
,
src
:
'
http://
10.25.20.227
:2222/ssh/host/192.168.1.210?autologin=1&user=root&pass=199710
'
src
:
'
http://
202.204.54.185
:2222/ssh/host/192.168.1.210?autologin=1&user=root&pass=199710
'
};
},
async
mounted
()
{
...
...
@@ -29,7 +29,7 @@ export default {
let
returnCitySN
=
JSON
.
parse
(
res
.
split
(
"
=
"
)[
1
].
split
(
"
;
"
)[
0
])
let
local
=
await
flexranAPI
.
DETECT_LOCAL
({},
returnCitySN
[
'
cip
'
])
if
(
local
.
area
==
"
北京科技大学
"
){
this
.
src
=
`http://
10.25.20.227
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
this
.
src
=
`http://
202.204.54.185
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
}
else
{
...
...
@@ -37,7 +37,7 @@ export default {
}
}
catch
(
error
)
{
this
.
src
=
`http://
10.25.20.227
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
this
.
src
=
`http://
202.204.54.185
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
}
...
...
src/front/utils/flexranAPI.js
View file @
b213f71b
...
...
@@ -3,7 +3,7 @@ let url = `ustb-oai.com`
export
function
SET_URL
(
data
=
{})
{
// 接口请求
url
=
"
10.25.20.227
"
url
=
"
202.204.54.185
"
}
export
function
GET_URL
(
data
=
{})
{
// 接口请求
...
...
src/renderer/components/SshPage/FlexRan.vue
View file @
b213f71b
...
...
@@ -40,6 +40,8 @@
<el-dropdown-item
command=
"1"
>
DroneFront
</el-dropdown-item>
<el-dropdown-item
command=
"2"
>
AI-Engine
</el-dropdown-item>
<el-dropdown-item
command=
"3"
>
CoreNet
</el-dropdown-item>
<el-dropdown-item
command=
"4"
>
Video
</el-dropdown-item>
<el-dropdown-item
command=
"5"
>
OAI
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
...
...
@@ -82,28 +84,41 @@ export default {
name
:
"
OAI_ENB
"
,
active
:
false
,
url
:
"
http://
10.25.20.227:2222/ssh/host/192.168.1.193?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185:2222/ssh/host/192.168.1.68?autologin=1&user=root&pass=123456
"
,
},
{
name
:
"
DroneFront
"
,
active
:
false
,
url
:
"
http://
10.25.20.227:2222/ssh/host/192.168.1.36?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185:2222/ssh/host/192.168.1.61?autologin=1&user=root&pass=123456
"
,
},
{
name
:
"
AI-Engine
"
,
active
:
false
,
url
:
"
http://
10.25.20.227
:2222/ssh/host/192.168.1.80?autologin=1&user=root&pass=199710
"
,
"
http://
202.204.54.185
:2222/ssh/host/192.168.1.80?autologin=1&user=root&pass=199710
"
,
},
{
name
:
"
CoreNet
"
,
active
:
false
,
url
:
"
http://10.25.20.227:2222/ssh/host/192.168.1.12?autologin=1&user=root&pass=199710
"
,
},],
"
http://202.204.54.185:2222/ssh/host/192.168.1.61?autologin=1&user=root&pass=123456
"
,
}
,
{
name
:
"
Video
"
,
active
:
false
,
url
:
"
http://202.204.54.185:82/oai/
"
,
},
{
name
:
"
OAI
"
,
active
:
false
,
url
:
"
http://202.204.54.185:2222/ssh/host/192.168.1.55?autologin=1&user=root&pass=123456
"
,
}],
srcs
:
[
{
name
:
"
FlexRan
"
,
active
:
true
,
url
:
"
http://
10.25.20.227:2224
"
},
{
name
:
"
FlexRan
"
,
active
:
true
,
url
:
"
http://
202.204.54.185:81
"
},
],
menus
:
[
{
name
:
"
FlexRan
"
,
active
:
true
},
...
...
@@ -124,12 +139,12 @@ export default {
let
returnCitySN
=
JSON
.
parse
(
res
.
split
(
"
=
"
)[
1
].
split
(
"
;
"
)[
0
]);
let
local
=
await
flexranAPI
.
DETECT_LOCAL
({},
returnCitySN
[
"
cip
"
]);
if
(
local
.
area
==
"
北京科技大学
"
)
{
this
.
src
=
`http://
10.25.20.227
:2224`
;
this
.
src
=
`http://
202.204.54.185
:2224`
;
}
else
{
this
.
src
=
`http://ustb-oai.com:2224`
;
}
}
catch
(
error
)
{
this
.
src
=
`http://
10.25.20.227
:2224`
;
this
.
src
=
`http://
202.204.54.185
:2224`
;
}
},
methods
:
{
...
...
src/renderer/components/SshPage/SshPage.vue
View file @
b213f71b
...
...
@@ -16,7 +16,7 @@ export default {
dataList
:[],
host
:
''
,
action
:
''
,
src
:
'
http://
10.25.20.227
:2222/ssh/host/192.168.1.210?autologin=1&user=root&pass=199710
'
src
:
'
http://
202.204.54.185
:2222/ssh/host/192.168.1.210?autologin=1&user=root&pass=199710
'
};
},
async
mounted
()
{
...
...
@@ -29,7 +29,7 @@ export default {
let
returnCitySN
=
JSON
.
parse
(
res
.
split
(
"
=
"
)[
1
].
split
(
"
;
"
)[
0
])
let
local
=
await
flexranAPI
.
DETECT_LOCAL
({},
returnCitySN
[
'
cip
'
])
if
(
local
.
area
==
"
北京科技大学
"
){
this
.
src
=
`http://
10.25.20.227
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
this
.
src
=
`http://
202.204.54.185
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
}
else
{
...
...
@@ -37,7 +37,7 @@ export default {
}
}
catch
(
error
)
{
this
.
src
=
`http://
10.25.20.227
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
this
.
src
=
`http://
202.204.54.185
:2222/ssh/host/
${
this
.
host
}
?autologin=1&user=
${
this
.
user
}
&pass=
${
this
.
pass
}
`
}
...
...
src/utils/flexranAPI.js
View file @
b213f71b
...
...
@@ -3,7 +3,7 @@ let url = `ustb-oai.com`
export
function
SET_URL
(
data
=
{})
{
// 接口请求
url
=
"
10.25.20.227
"
url
=
"
202.204.54.185
"
}
export
function
GET_URL
(
data
=
{})
{
// 接口请求
...
...
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