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
daa41c40
Commit
daa41c40
authored
Aug 26, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改api列表
parent
e73c1cde
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
6 deletions
+11
-6
index.html
dist/index.html
+2
-2
app.7898f244ae63af28d9518b0decbe9d3f.css
dist/static/css/app.7898f244ae63af28d9518b0decbe9d3f.css
+0
-0
8.3e03e1dc65dcf3117c3e.js
dist/static/js/8.3e03e1dc65dcf3117c3e.js
+2
-0
8.a041df608a170932edaf.js
dist/static/js/8.a041df608a170932edaf.js
+0
-2
manifest.4347caa5ec465e25c2f1.js
dist/static/js/manifest.4347caa5ec465e25c2f1.js
+0
-2
manifest.87a45d1823ba98cdf13b.js
dist/static/js/manifest.87a45d1823ba98cdf13b.js
+2
-0
apiList.vue
src/views/index/apiList.vue
+5
-0
No files found.
dist/index.html
View file @
daa41c40
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.72eb471b51b8feb88eed4b65cf71a363.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
type=
text/javascript
src=
./static/js/manifest.4347caa5ec465e25c2f1.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.b5ee304023ea1127bea5.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.7898f244ae63af28d9518b0decbe9d3f.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
type=
text/javascript
src=
./static/js/manifest.87a45d1823ba98cdf13b.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.b5ee304023ea1127bea5.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.7
2eb471b51b8feb88eed4b65cf71a363
.css
→
dist/static/css/app.7
898f244ae63af28d9518b0decbe9d3f
.css
View file @
daa41c40
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/8.3e03e1dc65dcf3117c3e.js
0 → 100644
View file @
daa41c40
webpackJsonp
([
8
],{
f2i8
:
function
(
t
,
e
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
i
=
a
(
"l46T"
),
n
=
a
(
"Kkt8"
),
s
=
a
(
"P9l9"
),
l
=
a
(
"TUB1"
),
u
=
a
(
"LlAa"
),
c
=
{
name
:
"new-api-group"
,
props
:{
showDialog
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceGroupId
:
""
,
groupName
:
""
,
remark
:
""
}}}},
components
:{
limitInput
:
i
.
a
,
limitTextarea
:
n
.
a
},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceGroupId
:
""
,
groupName
:
""
,
remark
:
""
},
rules
:{
groupName
:[{
required
:
!
0
,
message
:
"请输入分组名称"
,
trigger
:
"blur"
}],
remark
:[{
required
:
!
0
,
message
:
"请输入描述"
,
trigger
:
"blur"
}]}}},
methods
:{
handleClose
:
function
(
t
){
this
.
$refs
.
programGroupForm
.
resetFields
(),
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
$refs
.
programGroupForm
.
resetFields
(),
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
formData
.
groupName
=
""
,
this
.
formData
.
remark
=
""
,
this
.
$emit
(
"hideDialog"
,
""
)},
customConfirm
:
function
(
t
){
var
e
=
this
;
e
.
formData
.
groupName
=
String
(
e
.
formData
.
groupName
).
replace
(
/
\s
+/g
,
""
),
e
.
formData
.
remark
=
String
(
e
.
formData
.
remark
).
replace
(
/
\s
+/g
,
""
),
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
postEditData
()})},
postEditData
:
function
(){
var
t
=
this
,
e
=
{
interfaceGroupId
:
t
.
formData
.
interfaceGroupId
,
groupName
:
t
.
formData
.
groupName
,
remark
:
t
.
formData
.
remark
,
projectId
:
t
.
$route
.
query
.
projectId
};
Object
(
s
.
a
)(
t
.
editRow
.
interfaceGroupId
?
"/gateway-manage/update-api-group"
:
"/gateway-manage/create-api-group"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
"0000"
==
a
.
code
)
return
l
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
t
.
setData
();
u
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hideDialog"
,
this
.
formData
)}},
watch
:{
showDialog
:
function
(
t
,
e
){
this
.
customDialog
=
t
},
editRow
:
function
(
t
,
e
){
this
.
formData
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
customDialog
=
this
.
showDialog
,
this
.
formData
=
JSON
.
parse
(
r
()(
this
.
editRow
))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
t
.
formData
.
interfaceGroupId
?
"编辑分组"
:
"新建分组"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
customDialog
=
e
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"programGroupForm"
,
attrs
:{
model
:
t
.
formData
,
"label-width"
:
"94px"
,
rules
:
t
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分组名称:"
,
prop
:
"groupName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
t
.
formData
.
groupName
,
holder
:
"请输入分组名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"groupName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
t
.
formData
.
remark
,
holder
:
"请输入描述内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"remark"
,
e
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
customConfirm
(
"programGroupForm"
)}}},[
t
.
_v
(
t
.
_s
(
t
.
formData
.
interfaceGroupId
?
"保 存"
:
"新 建"
))])],
1
)])],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
c
,
p
,
!
1
,
function
(
t
){
a
(
"t1cX"
)},
"data-v-847a650a"
,
null
);
e
.
a
=
m
.
exports
},
j1iS
:
function
(
t
,
e
){},
t1cX
:
function
(
t
,
e
){},
tiLT
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"319J"
),
r
=
a
(
"f2i8"
),
i
=
a
(
"P9l9"
),
n
=
a
(
"jvWE"
),
s
=
a
(
"LlAa"
),
l
=
{
name
:
"apiProgramGroup"
,
components
:{
navBread
:
o
.
a
,
newApiGroup
:
r
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
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
(
n
.
a
)(
function
(
t
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeTargetType
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getData
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getData
()},
toApiListManage
:
function
(
t
,
e
){
this
.
$router
.
push
(
"/apiListManage?interfaceId="
+
e
.
interfaceId
+
"&interfaceName="
+
e
.
interfaceName
)},
getData
:
function
(){
var
t
=
this
,
e
=
{
projectId
:
t
.
projectId
,
interfaceGroupId
:
t
.
interfaceGroupId
,
search
:
t
.
searchValue
,
target
:
t
.
targetType
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
currentPage
};
Object
(
i
.
a
)(
"/gateway-manage/page-api"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
"0000"
==
a
.
code
)
return
t
.
tableData
=
a
.
result
.
result
,
void
(
t
.
totalCount
=
a
.
result
.
totalCount
);
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
e
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
),
this
.
getData
()}},
u
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
t
.
navPath
}})],
1
),
t
.
_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"
,[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入API名称"
},
on
:{
clear
:
t
.
clearInput
},
nativeOn
:{
keyup
:
function
(
e
){
return
a
=
e
,
t
.
searchData
(
a
);
var
a
}},
model
:{
value
:
t
.
searchValue
,
callback
:
function
(
e
){
t
.
searchValue
=
e
},
expression
:
"searchValue"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
t
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-137"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeTargetType
},
model
:{
value
:
t
.
targetType
,
callback
:
function
(
e
){
t
.
targetType
=
e
},
expression
:
"targetType"
}},
t
.
_l
(
t
.
targetTypeOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"interfaceName"
,
label
:
"API名称"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"API类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
"0"
==
e
.
row
.
interfaceType
?
"http"
:
"1"
==
e
.
row
.
interfaceType
?
"dubbo "
:
"自定义返回"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问路径"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
interfaceUrl
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
optType
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目/分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
interfaceGroupName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
createTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
createTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toApiListManage
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"管理"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"prev, pager, next"
,
total
:
t
.
totalCount
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)])]),
t
.
_v
(
" "
),
a
(
"new-api-group"
,{
attrs
:{
editRow
:
t
.
editRow
,
showDialog
:
t
.
showDialog
},
on
:{
hideDialog
:
t
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
l
,
u
,
!
1
,
function
(
t
){
a
(
"j1iS"
)},
"data-v-fb41a56a"
,
null
);
e
.
default
=
c
.
exports
}});
\ No newline at end of file
dist/static/js/8.a041df608a170932edaf.js
deleted
100644 → 0
View file @
e73c1cde
webpackJsonp
([
8
],{
cKi6
:
function
(
t
,
e
){},
f2i8
:
function
(
t
,
e
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
i
=
a
(
"l46T"
),
n
=
a
(
"Kkt8"
),
s
=
a
(
"P9l9"
),
l
=
a
(
"TUB1"
),
u
=
a
(
"LlAa"
),
c
=
{
name
:
"new-api-group"
,
props
:{
showDialog
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceGroupId
:
""
,
groupName
:
""
,
remark
:
""
}}}},
components
:{
limitInput
:
i
.
a
,
limitTextarea
:
n
.
a
},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceGroupId
:
""
,
groupName
:
""
,
remark
:
""
},
rules
:{
groupName
:[{
required
:
!
0
,
message
:
"请输入分组名称"
,
trigger
:
"blur"
}],
remark
:[{
required
:
!
0
,
message
:
"请输入描述"
,
trigger
:
"blur"
}]}}},
methods
:{
handleClose
:
function
(
t
){
this
.
$refs
.
programGroupForm
.
resetFields
(),
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
$refs
.
programGroupForm
.
resetFields
(),
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
formData
.
groupName
=
""
,
this
.
formData
.
remark
=
""
,
this
.
$emit
(
"hideDialog"
,
""
)},
customConfirm
:
function
(
t
){
var
e
=
this
;
e
.
formData
.
groupName
=
String
(
e
.
formData
.
groupName
).
replace
(
/
\s
+/g
,
""
),
e
.
formData
.
remark
=
String
(
e
.
formData
.
remark
).
replace
(
/
\s
+/g
,
""
),
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
postEditData
()})},
postEditData
:
function
(){
var
t
=
this
,
e
=
{
interfaceGroupId
:
t
.
formData
.
interfaceGroupId
,
groupName
:
t
.
formData
.
groupName
,
remark
:
t
.
formData
.
remark
,
projectId
:
t
.
$route
.
query
.
projectId
};
Object
(
s
.
a
)(
t
.
editRow
.
interfaceGroupId
?
"/gateway-manage/update-api-group"
:
"/gateway-manage/create-api-group"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
"0000"
==
a
.
code
)
return
l
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
t
.
setData
();
u
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hideDialog"
,
this
.
formData
)}},
watch
:{
showDialog
:
function
(
t
,
e
){
this
.
customDialog
=
t
},
editRow
:
function
(
t
,
e
){
this
.
formData
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
customDialog
=
this
.
showDialog
,
this
.
formData
=
JSON
.
parse
(
r
()(
this
.
editRow
))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
t
.
formData
.
interfaceGroupId
?
"编辑分组"
:
"新建分组"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
customDialog
=
e
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"programGroupForm"
,
attrs
:{
model
:
t
.
formData
,
"label-width"
:
"94px"
,
rules
:
t
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分组名称:"
,
prop
:
"groupName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
t
.
formData
.
groupName
,
holder
:
"请输入分组名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"groupName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
440
,
inputValue
:
t
.
formData
.
remark
,
holder
:
"请输入描述内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"remark"
,
e
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
customConfirm
(
"programGroupForm"
)}}},[
t
.
_v
(
t
.
_s
(
t
.
formData
.
interfaceGroupId
?
"保 存"
:
"新 建"
))])],
1
)])],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
c
,
p
,
!
1
,
function
(
t
){
a
(
"t1cX"
)},
"data-v-847a650a"
,
null
);
e
.
a
=
m
.
exports
},
t1cX
:
function
(
t
,
e
){},
tiLT
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"319J"
),
r
=
a
(
"f2i8"
),
i
=
a
(
"P9l9"
),
n
=
a
(
"jvWE"
),
s
=
a
(
"LlAa"
),
l
=
{
name
:
"apiProgramGroup"
,
components
:{
navBread
:
o
.
a
,
newApiGroup
:
r
.
a
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
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
(
n
.
a
)(
function
(
t
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeTargetType
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getData
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getData
()},
toApiListManage
:
function
(
t
,
e
){
this
.
$router
.
push
(
"/apiListManage?interfaceId="
+
e
.
interfaceId
+
"&interfaceName="
+
e
.
interfaceName
)},
getData
:
function
(){
var
t
=
this
,
e
=
{
projectId
:
t
.
projectId
,
interfaceGroupId
:
t
.
interfaceGroupId
,
search
:
t
.
searchValue
,
target
:
t
.
targetType
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
currentPage
};
Object
(
i
.
a
)(
"/gateway-manage/page-api"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
"0000"
==
a
.
code
)
return
t
.
tableData
=
a
.
result
.
result
,
void
(
t
.
totalCount
=
a
.
result
.
totalCount
);
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
e
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
),
this
.
getData
()}},
u
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
t
.
navPath
}})],
1
),
t
.
_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"
,[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入API名称"
},
on
:{
clear
:
t
.
clearInput
},
nativeOn
:{
keyup
:
function
(
e
){
return
a
=
e
,
t
.
searchData
(
a
);
var
a
}},
model
:{
value
:
t
.
searchValue
,
callback
:
function
(
e
){
t
.
searchValue
=
e
},
expression
:
"searchValue"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
t
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-137"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeTargetType
},
model
:{
value
:
t
.
targetType
,
callback
:
function
(
e
){
t
.
targetType
=
e
},
expression
:
"targetType"
}},
t
.
_l
(
t
.
targetTypeOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"interfaceName"
,
label
:
"API名称"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"API类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
"0"
==
e
.
row
.
interfaceType
?
"http"
:
"1"
==
e
.
row
.
interfaceType
?
"dubbo "
:
"自定义返回"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"访问类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
optType
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目/分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
interfaceGroupName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
createTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
createTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toApiListManage
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"管理"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"prev, pager, next"
,
total
:
t
.
totalCount
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)])]),
t
.
_v
(
" "
),
a
(
"new-api-group"
,{
attrs
:{
editRow
:
t
.
editRow
,
showDialog
:
t
.
showDialog
},
on
:{
hideDialog
:
t
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
l
,
u
,
!
1
,
function
(
t
){
a
(
"cKi6"
)},
"data-v-6af6eee6"
,
null
);
e
.
default
=
c
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.4347caa5ec465e25c2f1.js
deleted
100644 → 0
View file @
e73c1cde
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
b
,
i
,
u
=
0
,
d
=
[];
u
<
r
.
length
;
u
++
)
b
=
r
[
u
],
t
[
b
]
&&
d
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
d
.
length
;)
d
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
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
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"7fc6c6515982425ab5a5"
,
3
:
"9d8da2e9b9ec2f268553"
,
4
:
"631b25c463575bd81d50"
,
5
:
"e704f35bae2785ada05b"
,
6
:
"38bb4eb7a29698fb12bf"
,
7
:
"c43b8ee3bf9b282281a7"
,
8
:
"a041df608a170932edaf"
,
9
:
"dc5f57f1065e479c7783"
,
10
:
"638039a7b39908980436"
,
11
:
"2c92b109a28bdd0cc6cc"
,
12
:
"3b9c756b15cf547445f5"
,
13
:
"2e223aea8aa7180fb838"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"e62b18c3390fbbef65a6"
,
18
:
"37321ffca9347a60b988"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
b
,
12
e4
);
function
b
(){
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
=
b
,
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
dist/static/js/manifest.87a45d1823ba98cdf13b.js
0 → 100644
View file @
daa41c40
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
c
){
for
(
var
f
,
b
,
i
,
u
=
0
,
d
=
[];
u
<
r
.
length
;
u
++
)
b
=
r
[
u
],
t
[
b
]
&&
d
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
c
);
d
.
length
;)
d
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
o
(
o
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
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
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"7fc6c6515982425ab5a5"
,
3
:
"9d8da2e9b9ec2f268553"
,
4
:
"631b25c463575bd81d50"
,
5
:
"e704f35bae2785ada05b"
,
6
:
"38bb4eb7a29698fb12bf"
,
7
:
"c43b8ee3bf9b282281a7"
,
8
:
"3e03e1dc65dcf3117c3e"
,
9
:
"dc5f57f1065e479c7783"
,
10
:
"638039a7b39908980436"
,
11
:
"2c92b109a28bdd0cc6cc"
,
12
:
"3b9c756b15cf547445f5"
,
13
:
"2e223aea8aa7180fb838"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"e62b18c3390fbbef65a6"
,
18
:
"37321ffca9347a60b988"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
b
,
12
e4
);
function
b
(){
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
=
b
,
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
src/views/index/apiList.vue
View file @
daa41c40
...
@@ -23,6 +23,11 @@
...
@@ -23,6 +23,11 @@
{{
scope
.
row
.
interfaceType
==
'0'
?
'http'
:
scope
.
row
.
interfaceType
==
'1'
?
'dubbo '
:
'自定义返回'
}}
{{
scope
.
row
.
interfaceType
==
'0'
?
'http'
:
scope
.
row
.
interfaceType
==
'1'
?
'dubbo '
:
'自定义返回'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"访问路径"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
interfaceUrl
}}
</
template
>
</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"
>
{{
scope
.
row
.
optType
}}
{{
scope
.
row
.
optType
}}
...
...
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