Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api-gateway
Overview
Overview
Details
Activity
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
API
api-gateway
Commits
ef7944d1
Commit
ef7944d1
authored
Nov 12, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改显示配置
parent
25879116
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
18 deletions
+26
-18
index.html
dist/index.html
+2
-2
app.ae0375b5aeb001d12d527c4d6408f474.css
dist/static/css/app.ae0375b5aeb001d12d527c4d6408f474.css
+0
-0
16.6e70f43452cbef826036.js
dist/static/js/16.6e70f43452cbef826036.js
+2
-0
17.8354f7b686256ddf47fb.js
dist/static/js/17.8354f7b686256ddf47fb.js
+2
-2
17.f5d115eeadcbe382c07b.js
dist/static/js/17.f5d115eeadcbe382c07b.js
+0
-2
app.9c166ead6e4a1e024065.js
dist/static/js/app.9c166ead6e4a1e024065.js
+2
-2
manifest.2782f1bf2e182747b34d.js
dist/static/js/manifest.2782f1bf2e182747b34d.js
+2
-0
manifest.86d2e973d07b89639562.js
dist/static/js/manifest.86d2e973d07b89639562.js
+0
-2
createEnvSet.vue
src/views/index/createEnvSet.vue
+16
-8
No files found.
dist/index.html
View file @
ef7944d1
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.6c93ef3f3df82fed3dbd41027170f1f9.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.15.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js
></script><script
type=
text/javascript
src=
./static/js/manifest.86d2e973d07b89639562.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.575fad855a1894b36131.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.ae0375b5aeb001d12d527c4d6408f474.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.15.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js
></script><script
type=
text/javascript
src=
./static/js/manifest.2782f1bf2e182747b34d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.9c166ead6e4a1e024065.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
6c93ef3f3df82fed3dbd41027170f1f9
.css
→
dist/static/css/app.
ae0375b5aeb001d12d527c4d6408f474
.css
View file @
ef7944d1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/16.6e70f43452cbef826036.js
0 → 100644
View file @
ef7944d1
webpackJsonp
([
16
],{
hMb6
:
function
(
e
,
t
){},
vm6Q
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
n
=
a
(
"319J"
),
s
=
a
(
"l46T"
),
l
=
a
(
"Kkt8"
),
i
=
a
(
"P9l9"
),
c
=
a
(
"TUB1"
),
u
=
a
(
"LlAa"
),
d
=
{
name
:
"createEnvSet"
,
components
:{
navBread
:
n
.
a
,
limitInput
:
s
.
a
,
limitTextarea
:
l
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"环境管理"
,
path
:
"/envManage"
},{
name
:
"配置列表"
,
path
:
"/envManage?tabChildid=second"
},{
name
:
this
.
$route
.
query
.
backendProxyId
?
"show"
==
this
.
$route
.
query
.
envSetFlag
?
"查看配置"
:
"修改配置"
:
"新增配置"
,
path
:
""
}],
formData
:{
backendProxyId
:
this
.
$route
.
query
.
backendProxyId
||
""
,
proxyType
:
this
.
$route
.
query
.
proxyType
||
"0"
,
proxyCode
:
""
,
proxyName
:
""
,
description
:
""
,
envParams
:
""
},
rules
:{
proxyName
:[{
required
:
!
0
,
message
:
"请输入配置名称"
,
trigger
:
"blur"
}],
proxyCode
:[{
required
:
!
0
,
message
:
"请输入配置code"
,
trigger
:
"blur"
}]},
shoEnvFlag
:
!
1
,
tableData
:[{
sceneCode
:
""
,
proxyParams
:[{
balence
:
"random"
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
}]}],
envOptions
:[]}},
methods
:{
showEnvSet
:
function
(){
this
.
shoEnvFlag
=!
0
},
toDel
:
function
(
e
,
t
,
a
){
if
(
"show"
==
this
.
$route
.
query
.
envSetFlag
)
return
!
1
;
e
.
proxyParams
.
splice
(
a
,
1
)},
toAdd
:
function
(
e
,
t
,
a
){
if
(
"show"
==
this
.
$route
.
query
.
envSetFlag
)
return
!
1
;
e
.
proxyParams
.
push
({
balence
:
""
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
})},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确定删除该环境?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
tableData
.
splice
(
e
,
1
)}).
catch
(
function
(){})},
toAddRow
:
function
(){
this
.
tableData
.
push
({
sceneCode
:
""
,
proxyParams
:[{
balence
:
""
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
}]})},
handleSave
:
function
(
e
){
var
t
=
this
;
t
.
formData
.
proxyName
=
String
(
t
.
formData
.
proxyName
).
replace
(
/
\s
+/g
,
""
),
t
.
formData
.
proxyCode
=
String
(
t
.
formData
.
proxyCode
).
replace
(
/
\s
+/g
,
""
),
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
saveData
()})},
saveData
:
function
(){
var
e
=
this
,
t
=!
0
,
a
=!
0
,
o
=!
0
;
if
(
e
.
tableData
.
forEach
(
function
(
r
){
""
==
r
.
sceneCode
&&
(
t
=!
1
),
0
==
e
.
formData
.
proxyType
?
r
.
proxyParams
.
forEach
(
function
(
r
){
!
1
===
/
((
2
(
5
[
0-5
]
|
[
0-4
]\d))
|
[
0-1
]?\d{1,2})(\.((
2
(
5
[
0-5
]
|
[
0-4
]\d))
|
[
0-1
]?\d{1,2})){3}
/g
.
test
(
r
.
url
)
&&
(
o
=!
1
),
r
.
weight
<
1
e4
||
(
a
=!
1
),
""
!=
r
.
url
&&
""
!=
r
.
weight
||
(
t
=!
1
),
e
.
$delete
(
r
,
"zookeeperUrl"
)}):
r
.
proxyParams
.
forEach
(
function
(
a
){
""
==
a
.
zookeeperUrl
&&
(
t
=!
1
),
e
.
$delete
(
a
,
"balence"
),
e
.
$delete
(
a
,
"url"
),
e
.
$delete
(
a
,
"weight"
)})}),
!
t
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请完善环境配置"
}),
!
1
;
if
(
!
a
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请填写小于10000以内的权重值"
}),
!
1
;
if
(
!
o
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请填写正确的 IP 地址"
}),
!
1
;
var
n
=
{
backendProxyId
:
e
.
formData
.
backendProxyId
,
proxyType
:
e
.
formData
.
proxyType
,
proxyName
:
e
.
formData
.
proxyName
,
proxyCode
:
e
.
formData
.
proxyCode
,
description
:
e
.
formData
.
description
,
envParams
:
e
.
shoEnvFlag
?
r
()(
e
.
tableData
):
""
};
Object
(
i
.
b
)(
e
.
$route
.
query
.
backendProxyId
?
"/gateway-manage/update-proxy"
:
"/gateway-manage/create-proxy"
,
n
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
c
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
$router
.
push
(
"/envManage?tabChildid=second"
);
u
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
i
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
u
.
a
.
errorMsg
(
a
):
e
.
envOptions
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
backendProxyId
:
e
.
formData
.
backendProxyId
};
Object
(
i
.
a
)(
"/gateway-manage/get-proxy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
){
e
.
formData
=
a
.
result
;
var
o
=
JSON
.
parse
(
a
.
result
.
envParams
);
return
e
.
tableData
=
o
,
void
(
e
.
tableData
.
length
&&
(
e
.
shoEnvFlag
=!
0
))}
u
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
3
),
this
.
getEnvData
(),
this
.
$route
.
query
.
backendProxyId
&&
this
.
getData
()}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"base-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"set-title font-14 color-303133"
},[
e
.
_v
(
"基础配置"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"envForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"94px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数类型:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
e
.
formData
.
proxyType
?
"http"
:
"dubbo"
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"配置名称:"
,
prop
:
"proxyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
disflag
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
inputValue
:
e
.
formData
.
proxyName
,
holder
:
"请输入配置名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"proxyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"配置code:"
,
prop
:
"proxyCode"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
disflag
:
!!
e
.
formData
.
backendProxyId
,
inputValue
:
e
.
formData
.
proxyCode
,
holder
:
"请输入配置code"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"proxyCode"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
,
prop
:
"description"
}},[
a
(
"limit-textarea"
,{
attrs
:{
disInput
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
inputWidth
:
440
,
inputValue
:
e
.
formData
.
description
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"description"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
e
.
shoEnvFlag
?
e
.
_e
():
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"div"
,{
staticClass
:
"show-set-env"
,
on
:{
click
:
e
.
showEnvSet
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-5584FF"
},[
e
.
_v
(
"添加环境配置"
)]),
a
(
"i"
,{
staticClass
:
"iconfont iconxiala1 font-14 color-5584FF p-l-10"
})])])],
1
)],
1
),
e
.
_v
(
" "
),
e
.
shoEnvFlag
?
a
(
"div"
,{
staticClass
:
"env-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"set-title font-14 color-303133"
},[
e
.
_v
(
"环境配置"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"env-set-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"envName"
,
label
:
"配置名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
},
model
:{
value
:
t
.
row
.
sceneCode
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sceneCode"
,
a
)},
expression
:
"scope.row.sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
sceneCode
,
attrs
:{
label
:
e
.
sceneName
,
value
:
e
.
sceneCode
}})}))]}}])}),
e
.
_v
(
" "
),
0
==
e
.
$route
.
query
.
proxyType
?
a
(
"el-table-column"
,{
attrs
:{
label
:
"IP地址"
,
width
:
"550px"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
e
.
_l
(
t
.
row
.
proxyParams
,
function
(
o
,
r
){
return
a
(
"div"
,{
key
:
r
,
class
:[
"ip-cell "
,
0
==
r
?
""
:
"m-t-18"
]},[
a
(
"el-input"
,{
staticClass
:
"w-200 font-14"
,
attrs
:{
placeholder
:
"请输入ip地址"
,
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
},
model
:{
value
:
o
.
url
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"url"
,
t
)},
expression
:
"item.url"
}}),
a
(
"el-input"
,{
staticClass
:
"w-200 font-14 m-l-10"
,
attrs
:{
placeholder
:
"请输入权重值"
,
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
},
model
:{
value
:
o
.
weight
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"weight"
,
t
)},
expression
:
"item.weight"
}}),
e
.
_v
(
" "
),
t
.
row
.
proxyParams
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10"
,
on
:{
click
:
function
(
a
){
e
.
toDel
(
t
.
row
,
t
.
$index
,
r
)}}}):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
proxyParams
.
length
-
1
==
r
?
a
(
"i"
,{
staticClass
:
"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10"
,
on
:{
click
:
function
(
a
){
e
.
toAdd
(
t
.
row
,
t
.
$index
,
r
)}}}):
e
.
_e
()],
1
)})}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
$route
.
query
.
proxyType
?
a
(
"el-table-column"
,{
attrs
:{
label
:
"注册中心"
,
width
:
"550px"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
e
.
_l
(
t
.
row
.
proxyParams
,
function
(
t
,
o
){
return
a
(
"div"
,{
key
:
o
,
class
:[
"ip-cell w-206"
,
0
==
o
?
""
:
"m-t-18"
]},[
a
(
"el-input"
,{
staticClass
:
"font-14"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
zookeeperUrl
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"zookeeperUrl"
,
a
)},
expression
:
"item.zookeeperUrl"
}})],
1
)})}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
tableData
.
length
>
1
?
a
(
"el-button"
,{
attrs
:{
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-row text-center pointer"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
type
:
"text"
},
on
:{
click
:
e
.
toAddRow
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline font-14 color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-5584FF p-l-4"
},[
e
.
_v
(
"添加行"
)])])],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"save-wrap"
,
style
:{
"padding-left"
:
e
.
shoEnvFlag
?
"0"
:
"97px"
}},[
a
(
"el-button"
,{
attrs
:{
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
handleSave
(
"envForm"
)}}},[
e
.
_v
(
"保存"
)])],
1
)])])])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"hMb6"
)},
"data-v-c53f5054"
,
null
);
t
.
default
=
m
.
exports
}});
\ No newline at end of file
dist/static/js/1
6.915ed31249867849353a
.js
→
dist/static/js/1
7.8354f7b686256ddf47fb
.js
View file @
ef7944d1
webpackJsonp
([
16
],{
BQCD
:
function
(
e
,
t
){},
S82n
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
o
=
a
(
"f2i8"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"jvWE"
),
l
=
a
(
"LlAa"
),
c
=
{
name
:
"apiProgramGroup"
,
components
:{
navBread
:
r
.
a
,
newApiGroup
:
o
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
this
.
$route
.
query
.
projectName
+
"项目列表"
,
path
:
"/apiProgramGroup"
},{
name
:
this
.
$route
.
query
.
interfaceGroupName
+
"分组列表"
,
path
:
"/groupApiList"
},{
name
:
"API列表"
,
path
:
""
}],
projectId
:
this
.
$route
.
query
.
projectId
||
""
,
interfaceGroupId
:
this
.
$route
.
query
.
interfaceGroupId
||
""
,
searchValue
:
""
,
targetType
:
"-1"
,
targetTypeOptions
:[{
value
:
"-1"
,
label
:
"所有"
},{
value
:
"0"
,
label
:
"私有"
},{
value
:
"1"
,
label
:
"公开"
}],
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
showDialog
:
!
1
,
editIndex
:
""
,
editRow
:{}}},
methods
:{
searchData
:
Object
(
i
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeTargetType
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getData
()},
createApi
:
function
(){
this
.
$router
.
push
(
"/createApi?projectId="
+
this
.
$route
.
query
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
this
.
$route
.
query
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
toApiListManage
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
t
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
t
.
interfaceGroupName
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
projectId
:
e
.
projectId
,
interfaceGroupId
:
e
.
interfaceGroupId
,
search
:
e
.
searchValue
,
target
:
e
.
targetType
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
};
Object
(
n
.
a
)(
"/gateway-manage/page-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
,
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
21
),
this
.
getData
()}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"search-wrap m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticStyle
:{
"font-size"
:
"0"
}},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入API名称"
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchData
(
a
);
var
a
}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"searchValue"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-137 margin-left10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeTargetType
},
model
:{
value
:
e
.
targetType
,
callback
:
function
(
t
){
e
.
targetType
=
t
},
expression
:
"targetType"
}},
e
.
_l
(
e
.
targetTypeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
e
.
$route
.
query
.
projectName
&&
e
.
$route
.
query
.
interfaceGroupId
?
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
createApi
}},[
e
.
_v
(
"创建API"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"interfaceName"
,
label
:
"API名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"API类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"0"
==
t
.
row
.
interfaceType
?
"http"
:
"1"
==
t
.
row
.
interfaceType
?
"dubbo "
:
"自定义返回"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问路径"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
interfaceUrl
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
optType
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目/分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
projectName
+
"/"
+
t
.
row
.
interfaceGroupName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toApiListManage
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"管理"
)])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"prev, pager, next"
,
total
:
e
.
totalCount
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
a
(
"new-api-group"
,{
attrs
:{
editRow
:
e
.
editRow
,
showDialog
:
e
.
showDialog
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
s
,
!
1
,
function
(
e
){
a
(
"BQCD"
)},
"data-v-8f41f928"
,
null
);
t
.
default
=
u
.
exports
}});
webpackJsonp
([
17
],{
BQCD
:
function
(
e
,
t
){},
S82n
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
o
=
a
(
"f2i8"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"jvWE"
),
l
=
a
(
"LlAa"
),
c
=
{
name
:
"apiProgramGroup"
,
components
:{
navBread
:
r
.
a
,
newApiGroup
:
o
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
this
.
$route
.
query
.
projectName
+
"项目列表"
,
path
:
"/apiProgramGroup"
},{
name
:
this
.
$route
.
query
.
interfaceGroupName
+
"分组列表"
,
path
:
"/groupApiList"
},{
name
:
"API列表"
,
path
:
""
}],
projectId
:
this
.
$route
.
query
.
projectId
||
""
,
interfaceGroupId
:
this
.
$route
.
query
.
interfaceGroupId
||
""
,
searchValue
:
""
,
targetType
:
"-1"
,
targetTypeOptions
:[{
value
:
"-1"
,
label
:
"所有"
},{
value
:
"0"
,
label
:
"私有"
},{
value
:
"1"
,
label
:
"公开"
}],
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
showDialog
:
!
1
,
editIndex
:
""
,
editRow
:{}}},
methods
:{
searchData
:
Object
(
i
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeTargetType
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getData
()},
createApi
:
function
(){
this
.
$router
.
push
(
"/createApi?projectId="
+
this
.
$route
.
query
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
this
.
$route
.
query
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
toApiListManage
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
t
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
t
.
interfaceGroupName
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
projectId
:
e
.
projectId
,
interfaceGroupId
:
e
.
interfaceGroupId
,
search
:
e
.
searchValue
,
target
:
e
.
targetType
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
};
Object
(
n
.
a
)(
"/gateway-manage/page-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
,
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
21
),
this
.
getData
()}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"search-wrap m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticStyle
:{
"font-size"
:
"0"
}},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入API名称"
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchData
(
a
);
var
a
}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"searchValue"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-137 margin-left10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeTargetType
},
model
:{
value
:
e
.
targetType
,
callback
:
function
(
t
){
e
.
targetType
=
t
},
expression
:
"targetType"
}},
e
.
_l
(
e
.
targetTypeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
e
.
$route
.
query
.
projectName
&&
e
.
$route
.
query
.
interfaceGroupId
?
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
createApi
}},[
e
.
_v
(
"创建API"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"interfaceName"
,
label
:
"API名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"API类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"0"
==
t
.
row
.
interfaceType
?
"http"
:
"1"
==
t
.
row
.
interfaceType
?
"dubbo "
:
"自定义返回"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问路径"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
interfaceUrl
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
optType
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目/分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
projectName
+
"/"
+
t
.
row
.
interfaceGroupName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toApiListManage
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"管理"
)])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"prev, pager, next"
,
total
:
e
.
totalCount
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
a
(
"new-api-group"
,{
attrs
:{
editRow
:
e
.
editRow
,
showDialog
:
e
.
showDialog
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
s
,
!
1
,
function
(
e
){
a
(
"BQCD"
)},
"data-v-8f41f928"
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/17.f5d115eeadcbe382c07b.js
deleted
100644 → 0
View file @
25879116
webpackJsonp
([
17
],{
Q2i7
:
function
(
e
,
t
){},
vm6Q
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
n
=
a
(
"319J"
),
s
=
a
(
"l46T"
),
l
=
a
(
"Kkt8"
),
i
=
a
(
"P9l9"
),
c
=
a
(
"TUB1"
),
d
=
a
(
"LlAa"
),
u
=
{
name
:
"createEnvSet"
,
components
:{
navBread
:
n
.
a
,
limitInput
:
s
.
a
,
limitTextarea
:
l
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"环境管理"
,
path
:
"/envManage"
},{
name
:
"配置列表"
,
path
:
"/envManage?tabChildid=second"
},{
name
:
this
.
$route
.
query
.
backendProxyId
?
"show"
==
this
.
$route
.
query
.
envSetFlag
?
"查看配置"
:
"修改配置"
:
"新增配置"
,
path
:
""
}],
formData
:{
backendProxyId
:
this
.
$route
.
query
.
backendProxyId
||
""
,
proxyType
:
this
.
$route
.
query
.
proxyType
||
"0"
,
proxyCode
:
""
,
proxyName
:
""
,
description
:
""
,
envParams
:
""
},
rules
:{
proxyName
:[{
required
:
!
0
,
message
:
"请输入配置名称"
,
trigger
:
"blur"
}],
proxyCode
:[{
required
:
!
0
,
message
:
"请输入配置code"
,
trigger
:
"blur"
}]},
shoEnvFlag
:
!
1
,
tableData
:[{
sceneCode
:
""
,
proxyParams
:[{
balence
:
"random"
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
}]}],
envOptions
:[]}},
methods
:{
showEnvSet
:
function
(){
this
.
shoEnvFlag
=!
0
},
toDel
:
function
(
e
,
t
,
a
){
e
.
proxyParams
.
splice
(
a
,
1
)},
toAdd
:
function
(
e
,
t
,
a
){
e
.
proxyParams
.
push
({
balence
:
""
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
})},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确定删除该环境?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
tableData
.
splice
(
e
,
1
)}).
catch
(
function
(){})},
toAddRow
:
function
(){
this
.
tableData
.
push
({
sceneCode
:
""
,
proxyParams
:[{
balence
:
""
,
url
:
""
,
weight
:
""
,
zookeeperUrl
:
""
}]})},
handleSave
:
function
(
e
){
var
t
=
this
;
t
.
formData
.
proxyName
=
String
(
t
.
formData
.
proxyName
).
replace
(
/
\s
+/g
,
""
),
t
.
formData
.
proxyCode
=
String
(
t
.
formData
.
proxyCode
).
replace
(
/
\s
+/g
,
""
),
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
saveData
()})},
saveData
:
function
(){
var
e
=
this
,
t
=!
0
,
a
=!
0
,
o
=!
0
;
if
(
e
.
tableData
.
forEach
(
function
(
r
){
""
==
r
.
sceneCode
&&
(
t
=!
1
),
0
==
e
.
formData
.
proxyType
?
r
.
proxyParams
.
forEach
(
function
(
r
){
!
1
===
/
((
2
(
5
[
0-5
]
|
[
0-4
]\d))
|
[
0-1
]?\d{1,2})(\.((
2
(
5
[
0-5
]
|
[
0-4
]\d))
|
[
0-1
]?\d{1,2})){3}
/g
.
test
(
r
.
url
)
&&
(
o
=!
1
),
r
.
weight
<
1
e4
||
(
a
=!
1
),
""
!=
r
.
url
&&
""
!=
r
.
weight
||
(
t
=!
1
),
e
.
$delete
(
r
,
"zookeeperUrl"
)}):
r
.
proxyParams
.
forEach
(
function
(
a
){
""
==
a
.
zookeeperUrl
&&
(
t
=!
1
),
e
.
$delete
(
a
,
"balence"
),
e
.
$delete
(
a
,
"url"
),
e
.
$delete
(
a
,
"weight"
)})}),
!
t
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请完善环境配置"
}),
!
1
;
if
(
!
a
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请填写小于10000以内的权重值"
}),
!
1
;
if
(
!
o
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请填写正确的 IP 地址"
}),
!
1
;
var
n
=
{
backendProxyId
:
e
.
formData
.
backendProxyId
,
proxyType
:
e
.
formData
.
proxyType
,
proxyName
:
e
.
formData
.
proxyName
,
proxyCode
:
e
.
formData
.
proxyCode
,
description
:
e
.
formData
.
description
,
envParams
:
e
.
shoEnvFlag
?
r
()(
e
.
tableData
):
""
};
Object
(
i
.
b
)(
e
.
$route
.
query
.
backendProxyId
?
"/gateway-manage/update-proxy"
:
"/gateway-manage/create-proxy"
,
n
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
c
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
$router
.
push
(
"/envManage?tabChildid=second"
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
i
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
d
.
a
.
errorMsg
(
a
):
e
.
envOptions
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
backendProxyId
:
e
.
formData
.
backendProxyId
};
Object
(
i
.
a
)(
"/gateway-manage/get-proxy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
){
e
.
formData
=
a
.
result
;
var
o
=
JSON
.
parse
(
a
.
result
.
envParams
);
return
e
.
tableData
=
o
,
void
(
e
.
tableData
.
length
&&
(
e
.
shoEnvFlag
=!
0
))}
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
3
),
this
.
getEnvData
(),
this
.
$route
.
query
.
backendProxyId
&&
this
.
getData
()}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"base-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"set-title font-14 color-303133"
},[
e
.
_v
(
"基础配置"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"envForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"94px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数类型:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
e
.
formData
.
proxyType
?
"http"
:
"dubbo"
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"配置名称:"
,
prop
:
"proxyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
e
.
formData
.
proxyName
,
holder
:
"请输入配置名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"proxyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"配置code:"
,
prop
:
"proxyCode"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
disflag
:
!!
e
.
formData
.
setId
,
inputValue
:
e
.
formData
.
proxyCode
,
holder
:
"请输入配置code"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"proxyCode"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
,
prop
:
"description"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
e
.
formData
.
description
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"description"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
e
.
shoEnvFlag
?
e
.
_e
():
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"div"
,{
staticClass
:
"show-set-env"
,
on
:{
click
:
e
.
showEnvSet
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-5584FF"
},[
e
.
_v
(
"添加环境配置"
)]),
a
(
"i"
,{
staticClass
:
"iconfont iconxiala1 font-14 color-5584FF p-l-10"
})])])],
1
)],
1
),
e
.
_v
(
" "
),
e
.
shoEnvFlag
?
a
(
"div"
,{
staticClass
:
"env-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"set-title font-14 color-303133"
},[
e
.
_v
(
"环境配置"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"env-set-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"envName"
,
label
:
"配置名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sceneCode
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sceneCode"
,
a
)},
expression
:
"scope.row.sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
sceneCode
,
attrs
:{
label
:
e
.
sceneName
,
value
:
e
.
sceneCode
}})}))]}}])}),
e
.
_v
(
" "
),
0
==
e
.
$route
.
query
.
proxyType
?
a
(
"el-table-column"
,{
attrs
:{
label
:
"IP地址"
,
width
:
"550px"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
e
.
_l
(
t
.
row
.
proxyParams
,
function
(
o
,
r
){
return
a
(
"div"
,{
key
:
r
,
class
:[
"ip-cell "
,
0
==
r
?
""
:
"m-t-18"
]},[
a
(
"el-input"
,{
staticClass
:
"w-200 font-14"
,
attrs
:{
placeholder
:
"请输入ip地址"
},
model
:{
value
:
o
.
url
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"url"
,
t
)},
expression
:
"item.url"
}}),
a
(
"el-input"
,{
staticClass
:
"w-200 font-14 m-l-10"
,
attrs
:{
placeholder
:
"请输入权重值"
},
model
:{
value
:
o
.
weight
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"weight"
,
t
)},
expression
:
"item.weight"
}}),
e
.
_v
(
" "
),
t
.
row
.
proxyParams
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10"
,
on
:{
click
:
function
(
a
){
e
.
toDel
(
t
.
row
,
t
.
$index
,
r
)}}}):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
proxyParams
.
length
-
1
==
r
?
a
(
"i"
,{
staticClass
:
"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10"
,
on
:{
click
:
function
(
a
){
e
.
toAdd
(
t
.
row
,
t
.
$index
,
r
)}}}):
e
.
_e
()],
1
)})}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
$route
.
query
.
proxyType
?
a
(
"el-table-column"
,{
attrs
:{
label
:
"注册中心"
,
width
:
"550px"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
e
.
_l
(
t
.
row
.
proxyParams
,
function
(
t
,
o
){
return
a
(
"div"
,{
key
:
o
,
class
:[
"ip-cell w-206"
,
0
==
o
?
""
:
"m-t-18"
]},[
a
(
"el-input"
,{
staticClass
:
"font-14"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
zookeeperUrl
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"zookeeperUrl"
,
a
)},
expression
:
"item.zookeeperUrl"
}})],
1
)})}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
tableData
.
length
>
1
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-row text-center pointer"
,
on
:{
click
:
e
.
toAddRow
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline font-14 color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-5584FF p-l-4"
},[
e
.
_v
(
"添加行"
)])])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"save-wrap"
,
style
:{
"padding-left"
:
e
.
shoEnvFlag
?
"0"
:
"97px"
}},[
a
(
"el-button"
,{
attrs
:{
disabled
:
"show"
==
e
.
$route
.
query
.
envSetFlag
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
handleSave
(
"envForm"
)}}},[
e
.
_v
(
"保存"
)])],
1
)])])])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
e
){
a
(
"Q2i7"
)},
"data-v-7b6c861a"
,
null
);
t
.
default
=
m
.
exports
}});
\ No newline at end of file
dist/static/js/app.
575fad855a1894b36131
.js
→
dist/static/js/app.
9c166ead6e4a1e024065
.js
View file @
ef7944d1
webpackJsonp
([
23
],{
"/NA0"
:
function
(
e
,
n
){},
0
:
function
(
e
,
n
,
t
){
t
(
"j1ja"
),
e
.
exports
=
t
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
n
){},
"5tgt"
:
function
(
e
,
n
,
t
){
e
.
exports
=
function
(
e
,
n
){
return
function
(
o
){
t
(
"Opzk"
)(
"./"
+
e
+
"/"
+
n
+
".vue"
).
then
(
function
(
e
){
o
(
e
)})}}},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"fZjL"
),
a
=
t
.
n
(
o
),
r
=
(
t
(
"j1ja"
),
t
(
"hKoQ"
)),
i
=
t
.
n
(
r
),
u
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
n
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
s
=
t
(
"lRwf"
),
p
=
t
.
n
(
s
),
m
=
t
(
"pRNm"
),
f
=
t
.
n
(
m
),
g
=
t
(
"5tgt"
),
l
=
t
.
n
(
g
);
p
.
a
.
use
(
f
.
a
);
var
d
,
v
=
function
(
e
){
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
n
){
e
(
n
)})},
h
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
l
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"概览"
,
redirect
:
"overview"
,
component
:
l
()(
"index"
,
"index"
),
children
:[{
path
:
"/overview"
,
name
:
"概览"
,
component
:
l
()(
"index"
,
"overview"
)},{
path
:
"/apiProgram"
,
name
:
"项目列表"
,
component
:
l
()(
"index"
,
"apiProgram"
)},{
path
:
"/apiProgramGroup"
,
name
:
"分组列表"
,
component
:
l
()(
"index"
,
"apiProgramGroup"
)},{
path
:
"/apiList"
,
name
:
"API列表"
,
component
:
l
()(
"index"
,
"apiList"
)},{
path
:
"/groupApiList"
,
name
:
"项目分组API列表"
,
component
:
l
()(
"index"
,
"groupApiList"
)},{
path
:
"/createApi"
,
name
:
"创建API"
,
component
:
l
()(
"index"
,
"createApi"
)},{
path
:
"/apiListManage"
,
name
:
"API列表管理"
,
component
:
l
()(
"index"
,
"apiListManage"
)},{
path
:
"/apiListManageShow"
,
name
:
"API列表管理查看"
,
component
:
l
()(
"index"
,
"apiListManageShow"
)},{
path
:
"/envManage"
,
name
:
"环境管理"
,
component
:
l
()(
"index"
,
"envManage"
)},{
path
:
"/createEnvSet"
,
name
:
"新建配置"
,
component
:
l
()(
"index"
,
"createEnvSet"
)},{
path
:
"/releaseRecords"
,
name
:
"发布记录"
,
component
:
l
()(
"index"
,
"releaseRecords"
)},{
path
:
"/pluginManage"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"pluginManage"
)},{
path
:
"/plugAhsh"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugAhsh"
)},{
path
:
"/plugPlatform"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugPlatform"
)},{
path
:
"/errorCode"
,
name
:
"错误码"
,
component
:
l
()(
"index"
,
"errorCode"
)}]},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
x
=
new
f
.
a
({
routes
:
h
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
I
=
t
(
"zL8q"
),
S
=
t
.
n
(
I
),
M
=
t
(
"Rf8U"
),
k
=
t
.
n
(
M
),
w
=
t
(
"mtWM"
),
A
=
t
.
n
(
w
),
D
=
t
(
"bOdI"
),
P
=
t
.
n
(
D
),
R
=
t
(
"mvHQ"
),
B
=
t
.
n
(
R
),
L
=
t
(
"SJI6"
),
T
=
t
.
n
(
L
);
p
.
a
.
use
(
T
.
a
);
var
b
=
new
T
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{},
tempBackData
:[]},
mutations
:(
d
=
{},
P
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
P
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
P
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
P
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
P
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
B
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
P
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
P
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
P
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
P
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
P
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
P
()(
d
,
"saveTempBack"
,
function
(
e
,
n
){
e
.
tempBackData
=
n
}),
P
()(
d
,
"clearTempBack"
,
function
(
e
){
e
.
tempBackData
=
[]}),
P
()(
d
,
"clearData"
,
function
(
e
){
e
.
baseInfo
=
{},
e
.
frontInfo
=
{},
e
.
backInfo
=
{},
e
.
resultInfo
=
{}}),
d
),
actions
:{
saveUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveUser"
,
n
)},
clearUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"clearUser"
,
n
)},
saveBaseInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBase"
,
n
)},
saveFrontInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveFront"
,
n
)},
saveBackInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBack"
,
n
)},
saveResultInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveResult"
,
n
)},
saveTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"saveTempBack"
,
n
)},
clearTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"clearTempBack"
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
H
=
(
t
(
"4qCZ"
),
t
(
"uKUT"
),
t
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
n
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
t
=
new
Date
(
e
),
o
=
{
"M+"
:
t
.
getMonth
()
+
1
,
"D+"
:
t
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
t
.
getDay
()),
"h+"
:
t
.
getHours
(),
"m+"
:
t
.
getMinutes
(),
"s+"
:
t
.
getSeconds
(),
"q+"
:
Math
.
floor
((
t
.
getMonth
()
+
3
)
/
3
),
S
:
t
.
getMilliseconds
()};
for
(
var
a
in
/
(
Y+
)
/
.
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,(
t
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
o
)
new
RegExp
(
"("
+
a
+
")"
).
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
o
[
a
]:(
"00"
+
o
[
a
]).
substr
((
""
+
o
[
a
]).
length
)));
return
n
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
,
r
=
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
(),
i
=
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
(),
u
=
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
();
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
+
" "
+
r
+
":"
+
i
+
":"
+
u
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
;
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
);
return
(
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
())
+
":"
+
(
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
())
+
":"
+
(
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
())}}});
i
.
a
.
polyfill
(),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
S
.
a
,{
size
:
"large"
}),
Vue
.
use
(
k
.
a
,
A
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
H
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
H
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
b
,
components
:{
App
:
c
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
11
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
19
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
5
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
12
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
18
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
17
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
8
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
13
],
"./index/groupApiList.vue"
:[
"S82n"
,
0
,
16
],
"./index/index.vue"
:[
"JXTs"
,
0
,
9
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
21
],
"./index/plugAhsh.vue"
:[
"JN/y"
,
0
,
4
],
"./index/plugPlatform.vue"
:[
"dAfO"
,
0
,
6
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
20
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
15
],
"./login/index.vue"
:[
"T+/8"
,
0
,
7
]};
function
a
(
e
){
var
n
=
o
[
e
];
return
n
?
Promise
.
all
(
n
.
slice
(
1
).
map
(
t
.
e
)).
then
(
function
(){
return
t
(
n
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
a
.
keys
=
function
(){
return
Object
.
keys
(
o
)},
a
.
id
=
"Opzk"
,
e
.
exports
=
a
},
SJI6
:
function
(
e
,
n
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
n
){},
lRwf
:
function
(
e
,
n
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
n
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
n
){}},[
0
]);
webpackJsonp
([
23
],{
"/NA0"
:
function
(
e
,
n
){},
0
:
function
(
e
,
n
,
t
){
t
(
"j1ja"
),
e
.
exports
=
t
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
n
){},
"5tgt"
:
function
(
e
,
n
,
t
){
e
.
exports
=
function
(
e
,
n
){
return
function
(
o
){
t
(
"Opzk"
)(
"./"
+
e
+
"/"
+
n
+
".vue"
).
then
(
function
(
e
){
o
(
e
)})}}},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"fZjL"
),
a
=
t
.
n
(
o
),
r
=
(
t
(
"j1ja"
),
t
(
"hKoQ"
)),
i
=
t
.
n
(
r
),
u
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
n
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
s
=
t
(
"lRwf"
),
p
=
t
.
n
(
s
),
m
=
t
(
"pRNm"
),
f
=
t
.
n
(
m
),
g
=
t
(
"5tgt"
),
l
=
t
.
n
(
g
);
p
.
a
.
use
(
f
.
a
);
var
d
,
v
=
function
(
e
){
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
n
){
e
(
n
)})},
h
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
l
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"概览"
,
redirect
:
"overview"
,
component
:
l
()(
"index"
,
"index"
),
children
:[{
path
:
"/overview"
,
name
:
"概览"
,
component
:
l
()(
"index"
,
"overview"
)},{
path
:
"/apiProgram"
,
name
:
"项目列表"
,
component
:
l
()(
"index"
,
"apiProgram"
)},{
path
:
"/apiProgramGroup"
,
name
:
"分组列表"
,
component
:
l
()(
"index"
,
"apiProgramGroup"
)},{
path
:
"/apiList"
,
name
:
"API列表"
,
component
:
l
()(
"index"
,
"apiList"
)},{
path
:
"/groupApiList"
,
name
:
"项目分组API列表"
,
component
:
l
()(
"index"
,
"groupApiList"
)},{
path
:
"/createApi"
,
name
:
"创建API"
,
component
:
l
()(
"index"
,
"createApi"
)},{
path
:
"/apiListManage"
,
name
:
"API列表管理"
,
component
:
l
()(
"index"
,
"apiListManage"
)},{
path
:
"/apiListManageShow"
,
name
:
"API列表管理查看"
,
component
:
l
()(
"index"
,
"apiListManageShow"
)},{
path
:
"/envManage"
,
name
:
"环境管理"
,
component
:
l
()(
"index"
,
"envManage"
)},{
path
:
"/createEnvSet"
,
name
:
"新建配置"
,
component
:
l
()(
"index"
,
"createEnvSet"
)},{
path
:
"/releaseRecords"
,
name
:
"发布记录"
,
component
:
l
()(
"index"
,
"releaseRecords"
)},{
path
:
"/pluginManage"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"pluginManage"
)},{
path
:
"/plugAhsh"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugAhsh"
)},{
path
:
"/plugPlatform"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugPlatform"
)},{
path
:
"/errorCode"
,
name
:
"错误码"
,
component
:
l
()(
"index"
,
"errorCode"
)}]},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
x
=
new
f
.
a
({
routes
:
h
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
I
=
t
(
"zL8q"
),
S
=
t
.
n
(
I
),
M
=
t
(
"Rf8U"
),
k
=
t
.
n
(
M
),
w
=
t
(
"mtWM"
),
A
=
t
.
n
(
w
),
D
=
t
(
"bOdI"
),
P
=
t
.
n
(
D
),
R
=
t
(
"mvHQ"
),
B
=
t
.
n
(
R
),
L
=
t
(
"SJI6"
),
T
=
t
.
n
(
L
);
p
.
a
.
use
(
T
.
a
);
var
b
=
new
T
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{},
tempBackData
:[]},
mutations
:(
d
=
{},
P
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
P
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
P
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
P
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
P
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
B
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
P
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
P
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
P
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
P
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
P
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
P
()(
d
,
"saveTempBack"
,
function
(
e
,
n
){
e
.
tempBackData
=
n
}),
P
()(
d
,
"clearTempBack"
,
function
(
e
){
e
.
tempBackData
=
[]}),
P
()(
d
,
"clearData"
,
function
(
e
){
e
.
baseInfo
=
{},
e
.
frontInfo
=
{},
e
.
backInfo
=
{},
e
.
resultInfo
=
{}}),
d
),
actions
:{
saveUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveUser"
,
n
)},
clearUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"clearUser"
,
n
)},
saveBaseInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBase"
,
n
)},
saveFrontInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveFront"
,
n
)},
saveBackInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBack"
,
n
)},
saveResultInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveResult"
,
n
)},
saveTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"saveTempBack"
,
n
)},
clearTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"clearTempBack"
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
H
=
(
t
(
"4qCZ"
),
t
(
"uKUT"
),
t
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
n
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
t
=
new
Date
(
e
),
o
=
{
"M+"
:
t
.
getMonth
()
+
1
,
"D+"
:
t
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
t
.
getDay
()),
"h+"
:
t
.
getHours
(),
"m+"
:
t
.
getMinutes
(),
"s+"
:
t
.
getSeconds
(),
"q+"
:
Math
.
floor
((
t
.
getMonth
()
+
3
)
/
3
),
S
:
t
.
getMilliseconds
()};
for
(
var
a
in
/
(
Y+
)
/
.
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,(
t
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
o
)
new
RegExp
(
"("
+
a
+
")"
).
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
o
[
a
]:(
"00"
+
o
[
a
]).
substr
((
""
+
o
[
a
]).
length
)));
return
n
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
,
r
=
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
(),
i
=
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
(),
u
=
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
();
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
+
" "
+
r
+
":"
+
i
+
":"
+
u
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
;
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
);
return
(
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
())
+
":"
+
(
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
())
+
":"
+
(
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
())}}});
i
.
a
.
polyfill
(),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
S
.
a
,{
size
:
"large"
}),
Vue
.
use
(
k
.
a
,
A
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
H
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
H
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
b
,
components
:{
App
:
c
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
11
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
19
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
5
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
12
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
18
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
16
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
8
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
13
],
"./index/groupApiList.vue"
:[
"S82n"
,
0
,
17
],
"./index/index.vue"
:[
"JXTs"
,
0
,
9
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
21
],
"./index/plugAhsh.vue"
:[
"JN/y"
,
0
,
4
],
"./index/plugPlatform.vue"
:[
"dAfO"
,
0
,
6
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
20
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
15
],
"./login/index.vue"
:[
"T+/8"
,
0
,
7
]};
function
a
(
e
){
var
n
=
o
[
e
];
return
n
?
Promise
.
all
(
n
.
slice
(
1
).
map
(
t
.
e
)).
then
(
function
(){
return
t
(
n
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
a
.
keys
=
function
(){
return
Object
.
keys
(
o
)},
a
.
id
=
"Opzk"
,
e
.
exports
=
a
},
SJI6
:
function
(
e
,
n
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
n
){},
lRwf
:
function
(
e
,
n
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
n
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
n
){}},[
0
]);
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.2782f1bf2e182747b34d.js
0 → 100644
View file @
ef7944d1
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
c
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
c
);
b
.
length
;)
b
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
o
(
o
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
24
:
0
};
function
o
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
o
.
nc
&&
c
.
setAttribute
(
"nonce"
,
o
.
nc
),
c
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52863aa1d72d31066413"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"f2de06eb950a048c5add"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"42639b6df28493f31a16"
,
5
:
"842d518baa251c8fedc4"
,
6
:
"52e14b1f79af7d86f42f"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"81460c8c66d06cfea732"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"6e70f43452cbef826036"
,
17
:
"8354f7b686256ddf47fb"
,
18
:
"e7685f45ec4dd5b70ae4"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
d
,
a
.
appendChild
(
c
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"./"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
dist/static/js/manifest.86d2e973d07b89639562.js
deleted
100644 → 0
View file @
25879116
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
b
.
length
;)
b
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
24
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
a
.
nc
&&
c
.
setAttribute
(
"nonce"
,
a
.
nc
),
c
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52863aa1d72d31066413"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"f2de06eb950a048c5add"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"42639b6df28493f31a16"
,
5
:
"842d518baa251c8fedc4"
,
6
:
"52e14b1f79af7d86f42f"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"81460c8c66d06cfea732"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"915ed31249867849353a"
,
17
:
"f5d115eeadcbe382c07b"
,
18
:
"e7685f45ec4dd5b70ae4"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
d
,
o
.
appendChild
(
c
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/views/index/createEnvSet.vue
View file @
ef7944d1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-07-30 15:17:39
* @Date: 2019-07-30 15:17:39
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2019-11-
06 16:31:57
* @LastEditTime: 2019-11-
12 15:28:29
-->
-->
<
template
>
<
template
>
<div
class=
"api-body-content border-box"
>
<div
class=
"api-body-content border-box"
>
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
{{
formData
.
proxyType
==
0
?
'http'
:
'dubbo'
}}
{{
formData
.
proxyType
==
0
?
'http'
:
'dubbo'
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"配置名称:"
prop=
"proxyName"
>
<el-form-item
label=
"配置名称:"
prop=
"proxyName"
>
<limitInput
:inputWidth=
"440"
:inputValue
.
sync=
"formData.proxyName"
:holder=
"'请输入配置名称'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
<limitInput
:inputWidth=
"440"
:
disflag=
"$route.query.envSetFlag == 'show' ? true : false"
:
inputValue
.
sync=
"formData.proxyName"
:holder=
"'请输入配置名称'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
</el-form-item>
</el-form-item>
<el-form-item
label=
"配置code:"
prop=
"proxyCode"
>
<el-form-item
label=
"配置code:"
prop=
"proxyCode"
>
<limitInput
:inputWidth=
"440"
:disflag=
"formData.
set
Id ? true : false"
:inputValue
.
sync=
"formData.proxyCode"
:holder=
"'请输入配置code'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
<limitInput
:inputWidth=
"440"
:disflag=
"formData.
backendProxy
Id ? true : false"
:inputValue
.
sync=
"formData.proxyCode"
:holder=
"'请输入配置code'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
prop=
"description"
>
<el-form-item
label=
"备注:"
prop=
"description"
>
<limit-textarea
:inputWidth=
"440"
:inputValue
.
sync=
"formData.description"
:holder=
"'请输入备注内容'"
:getByType=
"'word'"
:maxLength=
"100"
>
</limit-textarea>
<limit-textarea
:
disInput=
"$route.query.envSetFlag == 'show' ? true : false"
:
inputWidth=
"440"
:inputValue
.
sync=
"formData.description"
:holder=
"'请输入备注内容'"
:getByType=
"'word'"
:maxLength=
"100"
>
</limit-textarea>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
v-if=
"!shoEnvFlag"
>
<el-form-item
label=
""
v-if=
"!shoEnvFlag"
>
<div
class=
"show-set-env"
@
click=
"showEnvSet"
><span
class=
"font-14 color-5584FF"
>
添加环境配置
</span><i
class=
"iconfont iconxiala1 font-14 color-5584FF p-l-10"
></i></div>
<div
class=
"show-set-env"
@
click=
"showEnvSet"
><span
class=
"font-14 color-5584FF"
>
添加环境配置
</span><i
class=
"iconfont iconxiala1 font-14 color-5584FF p-l-10"
></i></div>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"envName"
label=
"配置名称"
show-overflow-tooltip
>
<el-table-column
prop=
"envName"
label=
"配置名称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.sceneCode"
placeholder=
"请选择"
>
<el-select
v-model=
"scope.row.sceneCode"
placeholder=
"请选择"
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
>
<el-option
v-for=
"item in envOptions"
:key=
"item.sceneCode"
:label=
"item.sceneName"
:value=
"item.sceneCode"
>
</el-option>
<el-option
v-for=
"item in envOptions"
:key=
"item.sceneCode"
:label=
"item.sceneName"
:value=
"item.sceneCode"
>
</el-option>
</el-select>
</el-select>
</
template
>
</
template
>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<el-table-column
v-if=
"$route.query.proxyType == 0"
label=
"IP地址"
width=
"550px"
>
<el-table-column
v-if=
"$route.query.proxyType == 0"
label=
"IP地址"
width=
"550px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
:class=
"['ip-cell ', index == 0 ? '' : 'm-t-18']"
v-for=
"(item, index) in scope.row.proxyParams"
:key=
"index"
>
<div
:class=
"['ip-cell ', index == 0 ? '' : 'm-t-18']"
v-for=
"(item, index) in scope.row.proxyParams"
:key=
"index"
>
<el-input
class=
"w-200 font-14"
v-model=
"item.url"
placeholder=
"请输入ip地址"
></el-input><el-input
class=
"w-200 font-14 m-l-10"
v-model=
"item.weight"
placeholder=
"请输入权重值
"
></el-input>
<el-input
class=
"w-200 font-14"
v-model=
"item.url"
placeholder=
"请输入ip地址"
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
></el-input><el-input
class=
"w-200 font-14 m-l-10"
v-model=
"item.weight"
placeholder=
"请输入权重值"
:disabled=
"$route.query.envSetFlag == 'show' ? true : false
"
></el-input>
<!-- && index
<
scope
.
row
.
proxyParams
.
length
-
1
--
>
<!-- && index
<
scope
.
row
.
proxyParams
.
length
-
1
--
>
<i
v-if=
"scope.row.proxyParams.length > 1"
class=
"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10"
@
click=
"toDel(scope.row, scope.$index, index)"
></i>
<i
v-if=
"scope.row.proxyParams.length > 1"
class=
"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10"
@
click=
"toDel(scope.row, scope.$index, index)"
></i>
<i
v-if=
"scope.row.proxyParams.length - 1 == index"
class=
"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10"
@
click=
"toAdd(scope.row, scope.$index, index)"
></i>
<i
v-if=
"scope.row.proxyParams.length - 1 == index"
class=
"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10"
@
click=
"toAdd(scope.row, scope.$index, index)"
></i>
...
@@ -63,12 +63,14 @@
...
@@ -63,12 +63,14 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
show-overflow-tooltip
>
<el-table-column
label=
"操作"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"tableData.length > 1"
@
click=
"handleDel(scope.$index, scope.row)"
type=
"text"
>
删除
</el-button>
<el-button
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
v-if=
"tableData.length > 1"
@
click=
"handleDel(scope.$index, scope.row)"
type=
"text"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<div
class=
"add-row text-center pointer"
@
click=
"toAddRow"
><i
class=
"el-icon-circle-plus-outline font-14 color-5584FF"
></i><span
class=
"font-14 color-5584FF p-l-4"
>
添加行
</span></div>
<div
class=
"add-row text-center pointer"
>
<el-button
@
click=
"toAddRow"
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
type=
"text"
><i
class=
"el-icon-circle-plus-outline font-14 color-5584FF"
></i><span
class=
"font-14 color-5584FF p-l-4"
>
添加行
</span></el-button>
</div>
</div>
</div>
<div
class=
"save-wrap"
:style=
"{ 'padding-left': shoEnvFlag ? '0' : '97px' }"
>
<div
class=
"save-wrap"
:style=
"{ 'padding-left': shoEnvFlag ? '0' : '97px' }"
>
<el-button
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
type=
"primary"
@
click=
"handleSave('envForm')"
>
保存
</el-button>
<el-button
:disabled=
"$route.query.envSetFlag == 'show' ? true : false"
type=
"primary"
@
click=
"handleSave('envForm')"
>
保存
</el-button>
...
@@ -158,12 +160,18 @@ export default {
...
@@ -158,12 +160,18 @@ export default {
* 删除 ip
* 删除 ip
*/
*/
toDel
(
row
,
index
,
child
)
{
toDel
(
row
,
index
,
child
)
{
if
(
this
.
$route
.
query
.
envSetFlag
==
'show'
)
{
return
false
;
}
row
.
proxyParams
.
splice
(
child
,
1
);
row
.
proxyParams
.
splice
(
child
,
1
);
},
},
/**
/**
* 添加 ip
* 添加 ip
*/
*/
toAdd
(
row
,
index
,
child
)
{
toAdd
(
row
,
index
,
child
)
{
if
(
this
.
$route
.
query
.
envSetFlag
==
'show'
)
{
return
false
;
}
row
.
proxyParams
.
push
({
row
.
proxyParams
.
push
({
balence
:
''
,
balence
:
''
,
url
:
''
,
url
:
''
,
...
...
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