Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gateway-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
gateway-ui
Commits
d54f6e50
Commit
d54f6e50
authored
Feb 26, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip设置
parent
358b4e6d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1051 additions
and
305 deletions
+1051
-305
.eslintrc.js
.eslintrc.js
+1
-0
mainconfigguration.server.js
src/api/mainconfigguration.server.js
+49
-28
env.config.js
src/config/env.config.js
+1
-1
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+1000
-276
No files found.
.eslintrc.js
View file @
d54f6e50
...
...
@@ -19,6 +19,7 @@ module.exports = {
'
prettier/prettier
'
:
'
error
'
,
// 防止iview的标签报错
'
vue/no-parsing-error
'
:
[
2
,
{
'
x-invalid-end-tag
'
:
false
}],
'
prettier/prettier
'
:
0
,
},
}
src/api/mainconfigguration.server.js
View file @
d54f6e50
import
axios
from
'
../services/http.service
'
import
{
sapi
}
from
'
../config
'
import
qs
from
'
qs
'
let
comapi
=
'
/heimdallr-config
'
import
axios
from
"
../services/http.service
"
;
import
{
sapi
}
from
"
../config
"
;
// import qs from "qs";
// 获取服务列表
export
function
getservicelist
()
{
return
axios
.
get
(
`
${
sapi
}
/service/list`
)
export
function
getservicelist
()
{
return
axios
.
get
(
`
${
sapi
}
/service/list`
)
;
}
// 获取文字说明
export
function
getkey
(
key
)
{
return
axios
.
get
(
`
${
sapi
}
/get-key-explain/
${
key
}
`
)
export
function
getkey
(
key
)
{
return
axios
.
get
(
`
${
sapi
}
/get-key-explain/
${
key
}
`
)
;
}
// 获取配置列表
export
function
getconfigurelist
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config/service/
${
data
.
key
}
/
${
data
.
service_name
}
`
)
export
function
getconfigurelist
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config/service/
${
data
.
key
}
/
${
data
.
service_name
}
`
)
;
}
// 发布
export
function
postconfigurelist
(
data
,
params
)
{
return
axios
.
post
(
`
${
sapi
}
/config/service/
${
data
.
key
}
/
${
data
.
service_name
}
`
,
params
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
export
function
postconfigurelist
(
data
,
params
)
{
return
axios
.
post
(
`
${
sapi
}
/config/service/
${
data
.
key
}
/
${
data
.
service_name
}
`
,
params
,
{
headers
:
{
"
Content-Type
"
:
"
application/json
"
}
}
);
}
// 获取版本
export
function
getVersionnumber
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config-version/service/
${
data
.
key
}
/
${
data
.
service_name
}
/list`
)
export
function
getVersionnumber
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config-version/service/
${
data
.
key
}
/
${
data
.
service_name
}
/list`
);
}
// 回滚版本
export
function
rollbacknum
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config-version/service/
${
data
.
key
}
/
${
data
.
service_name
}
/set/
${
data
.
version
}
`
)
export
function
rollbacknum
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config-version/service/
${
data
.
key
}
/
${
data
.
service_name
}
/set/
${
data
.
version
}
`
);
}
// 获取节点列表
export
function
getnodelist
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/node/list/
${
data
.
service_name
}
`
)
export
function
getnodelist
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/node/list/
${
data
.
service_name
}
`
)
;
}
// 获取节点配置
export
function
getnodeconfig
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config/node/
${
data
.
service_name
}
/
${
data
.
node_id
}
`
)
export
function
getnodeconfig
(
data
)
{
return
axios
.
get
(
`
${
sapi
}
/config/node/
${
data
.
service_name
}
/
${
data
.
node_id
}
`
)
;
}
// 设置节点配置
export
function
nodeconfig
(
data
,
weight
)
{
return
axios
.
post
(
`
${
sapi
}
/config/node/
${
data
.
service_name
}
/
${
data
.
node_id
}
`
,
weight
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
export
function
nodeconfig
(
data
,
weight
)
{
return
axios
.
post
(
`
${
sapi
}
/config/node/
${
data
.
service_name
}
/
${
data
.
node_id
}
`
,
weight
,
{
headers
:
{
"
Content-Type
"
:
"
application/json
"
}
}
);
}
// 获取菜单列表
export
function
getMenuList
()
{
return
axios
.
get
(
`
${
sapi
}
/key/list`
);
}
// 获取标签列表
export
function
getTypeList
()
{
return
axios
.
get
(
`
${
sapi
}
/filter/list`
);
}
src/config/env.config.js
View file @
d54f6e50
const
sapi
=
"
https://kapi-
fe
.liangkebang.net
"
;
const
sapi
=
"
https://kapi-
arch
.liangkebang.net
"
;
// const sapi = 'http://192.168.29.88:5555'
export
{
sapi
};
src/pages/mainconfiguration/mainconfiguration.vue
View file @
d54f6e50
This diff is collapsed.
Click to expand it.
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