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
61205552
Commit
61205552
authored
Aug 28, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改配置后跳转
parent
ef846adf
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
13 deletions
+14
-13
index.html
dist/index.html
+2
-2
app.78d42467a26a1da7b56ba600e4389e26.css
dist/static/css/app.78d42467a26a1da7b56ba600e4389e26.css
+0
-0
3.2692c23acc912c5b01b7.js
dist/static/js/3.2692c23acc912c5b01b7.js
+2
-0
3.94ac3deb1b736ce3651d.js
dist/static/js/3.94ac3deb1b736ce3651d.js
+0
-2
4.2b8e2d0693f544b00f13.js
dist/static/js/4.2b8e2d0693f544b00f13.js
+2
-2
manifest.1826802bf9a83f92cca5.js
dist/static/js/manifest.1826802bf9a83f92cca5.js
+2
-2
api-version-show.vue
src/components/api/api-version-show.vue
+2
-2
version-list.vue
src/components/api/version-list.vue
+4
-3
No files found.
dist/index.html
View file @
61205552
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.0e14a424aa160d3e95912eb45bb32238.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.f6e197f7e6d0cc0a66a0.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.d9731092a9496b107621.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.78d42467a26a1da7b56ba600e4389e26.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.1826802bf9a83f92cca5.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.d9731092a9496b107621.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
0e14a424aa160d3e95912eb45bb32238
.css
→
dist/static/css/app.
78d42467a26a1da7b56ba600e4389e26
.css
View file @
61205552
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/3.2692c23acc912c5b01b7.js
0 → 100644
View file @
61205552
webpackJsonp
([
3
],{
"/ZYZ"
:
function
(
t
,
a
){},
"5NPs"
:
function
(
t
,
a
){},
E4Ac
:
function
(
t
,
a
){},
QGGh
:
function
(
t
,
a
){},
coGM
:
function
(
t
,
a
){},
meWf
:
function
(
t
,
a
){},
nXhg
:
function
(
t
,
a
){},
nyOv
:
function
(
t
,
a
){},
oDbL
:
function
(
t
,
a
){},
r4m9
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
s
=
e
(
"319J"
),
i
=
e
(
"mvHQ"
),
l
=
e
.
n
(
i
),
o
=
{
name
:
"base-info-show"
,
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
r
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"API类型:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
1
==
t
.
apiInfoData
.
target
?
"公开"
:
"私有"
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"访问类型:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
requestType
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceDescribe
)
+
"
\
n "
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
n
=
e
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
e
(
"E4Ac"
)},
"data-v-722b853f"
,
null
).
exports
,
c
=
{
name
:
"table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
d
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
,
function
(
a
,
s
,
i
){
return
[
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
frontOriginType
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"el-checkbox"
,{
attrs
:{
disabled
:
"true"
},
model
:{
value
:
a
.
check
,
callback
:
function
(
e
){
t
.
$set
(
a
,
"check"
,
e
)},
expression
:
"itemValue.check"
}})],
1
)]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
description
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
.
properties
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
properties
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
p
=
{
name
:
"frontend-info-show"
,
components
:{
tableTr
:
e
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
e
(
"nXhg"
)},
"data-v-c35f6f24"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{}}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
u
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"frontend-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"协议:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
protocol
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceUrl
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求方法:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
requestType
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"参数配置:"
}},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"必选"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"示例"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"描述"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"table-tr"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
frontParams
.
properties
}})],
1
)])])])],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
e
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
t
){
e
(
"meWf"
)},
"data-v-8935b132"
,
null
).
exports
,
_
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
b
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
t
.
_e
():
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
frontOriginType
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
v
=
e
(
"VU/8"
)(
_
,
b
,
!
1
,
function
(
t
){
e
(
"yJzj"
)},
"data-v-027d4bf3"
,
null
).
exports
,
m
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
h
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
t
.
_e
():
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
1
==
t
.
interfaceType
?
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
objectClass
))])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"123"
+
s
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
y
=
e
(
"VU/8"
)(
m
,
h
,
!
1
,
function
(
t
){
e
(
"nyOv"
)},
"data-v-7d4da8b6"
,
null
).
exports
,
g
=
{
name
:
"back-constant"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
JSON
.
parse
(
l
()(
t
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
l
()(
this
.
itemData
))}},
w
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
"0"
==
t
.
interfaceType
?
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
_m
(
1
),
t
.
_v
(
" "
),
t
.
_m
(
2
)])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
currentKey
)
+
"
\
n "
)])]),
t
.
_v
(
" "
),
"0"
==
t
.
interfaceType
?
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
backendOriginType
)
+
"
\
n "
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
type
)
+
"
\
n "
)])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
defaultVal
)
+
"
\
n "
)])])])])]):
t
.
_e
()]})],
2
)])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数名"
)])])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数类型"
)])])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数值"
)])])}]};
var
C
=
{
name
:
"backend-info-show"
,
components
:{
backTableTr
:
v
,
backTableRight
:
y
,
backConstTable
:
e
(
"VU/8"
)(
g
,
w
,
!
1
,
function
(
t
){
e
(
"oDbL"
)},
"data-v-1f912880"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
endParams
:{
type
:
"object"
,
properties
:{
name
:{
backendOriginType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
backendOriginType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
properties
:{
age
:{
backendOriginType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}}}}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
D
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"backend-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"后端服务:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
0
==
t
.
apiInfoData
.
interfaceType
?
"http"
:
"dubbo"
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"环境:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
protocol
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"API版本号:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
version
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
0
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
backendHttpPath
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo接口名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboInterface
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo请求方法:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboMethod
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"注册中心地址:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
proxyCode
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求版本号:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboVersion
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"超时时长:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
timeout
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"参数映射:"
}},[
e
(
"div"
,{
staticClass
:
"table-wrap-body font-0"
},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"30%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-table-tr"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
endParams
}})],
1
)])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"70%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名映射"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型映射"
)])]),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"包名"
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数值"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-table-right"
,{
attrs
:{
interfaceType
:
t
.
apiInfoData
.
interfaceType
,
itemData
:
t
.
apiInfoData
.
endParams
}})],
1
)])])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"常量参数:"
}},[
e
(
"back-const-table"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
endParams
,
interfaceType
:
t
.
apiInfoData
.
interfaceType
}})],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
k
=
e
(
"VU/8"
)(
C
,
D
,
!
1
,
function
(
t
){
e
(
"coGM"
)},
"data-v-6f5d2ff8"
,
null
).
exports
,
I
=
{
name
:
"table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
S
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
x
=
{
name
:
"back-info-show"
,
components
:{
backInfoTable
:
e
(
"VU/8"
)(
I
,
S
,
!
1
,
function
(
t
){
e
(
"zR8Z"
)},
"data-v-72eb4927"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{
interfaceName
:
"1"
,
interfaceType
:
"http"
,
requestType
:
"GET"
,
interfaceDescribe
:
"test"
,
errCode
:[{
errorCode
:
"1"
,
errorInfo
:
"添加成功"
}]}}}},
data
:
function
(){
return
{
apiInfoData
:{
interfaceName
:
"1"
,
interfaceType
:
"http"
,
requestType
:
"GET"
,
interfaceDescribe
:
"test"
,
errCode
:[{
errorCode
:
"1"
,
errorInfo
:
"添加成功"
}],
resultParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
properties
:{
age
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
},
email
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
T
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"back-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"返回参数:"
}},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"示例"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-info-table"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
resultParams
}})],
1
)])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"错误码:"
}},[
e
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
apiInfoData
.
errCode
}},[
e
(
"el-table-column"
,{
attrs
:{
prop
:
"orig_error_code"
,
label
:
"原始错误码"
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"error_code"
,
label
:
"映射错误码"
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"error_info"
,
label
:
"错误信息"
}})],
1
)],
1
),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"成功返回示例:"
}},[
e
(
"div"
,{
staticClass
:
"common-back-pre"
},[
e
(
"pre"
,[
t
.
_v
(
" "
+
t
.
_s
(
t
.
apiInfoData
.
sucReturn
)
+
"
\
n "
)])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"失败返回示例:"
}},[
e
(
"div"
,{
staticClass
:
"common-back-pre"
},[
e
(
"pre"
,[
t
.
_v
(
" "
+
t
.
_s
(
t
.
apiInfoData
.
errReturn
)
+
"
\
n "
)])])])],
1
)],
1
)},
staticRenderFns
:[]};
var
j
=
e
(
"VU/8"
)(
x
,
T
,
!
1
,
function
(
t
){
e
(
"5NPs"
)},
"data-v-728369bc"
,
null
).
exports
,
V
=
e
(
"znuk"
),
P
=
e
(
"P9l9"
),
$
=
e
(
"LlAa"
),
R
=
e
(
"TUB1"
),
q
=
{
name
:
"go-history"
,
props
:{
historyShow
:{
type
:
Boolean
,
default
:
!
1
},
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
selectVersion
:
""
,
tableData
:[],
pageSize
:
8
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
handleClose
:
function
(
t
){
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideHistoryDialog"
)},
customConfirm
:
function
(){
if
(
!
this
.
selectVersion
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择回退版本"
}),
!
1
;
this
.
postEditData
()},
postEditData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
,
target
:
t
.
selectVersion
};
Object
(
P
.
a
)(
"/gateway-manage/reset-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"回退成功"
,
"success"
),
void
t
.
setData
();
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hideHistoryDialog"
)},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getData
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getData
()},
handleShow
:
function
(
t
,
a
){
window
.
open
(
"#/apiListManageShow?interfaceId="
+
a
.
interfaceId
+
"&interfaceName="
+
a
.
interfaceName
+
"&interfaceVersionId="
+
a
.
interfaceVersionId
)},
getData
:
function
(){
var
t
=
this
,
a
=
{
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
sceneCode
:
t
.
apiData
.
sceneCode
,
interfaceId
:
t
.
$route
.
query
.
interfaceId
};
Object
(
P
.
a
)(
"/gateway-manage/page-api-publish-record"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
t
.
tableData
=
e
.
result
.
result
||
[],
void
(
t
.
totalCount
=
e
.
result
.
totalCount
);
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
a
){},
deep
:
!
0
},
historyShow
:
function
(
t
,
a
){
this
.
customDialog
=
t
,
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
historyShow
,
this
.
getData
()}},
F
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
e
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"选择回退版本"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
a
){
t
.
customDialog
=
a
}}},[
e
(
"div"
,{
staticClass
:
"table-wrap"
},[
e
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
e
(
"el-table-column"
,{
attrs
:{
label
:
""
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"el-radio"
,{
attrs
:{
label
:
a
.
row
.
publishRecordId
},
model
:{
value
:
t
.
selectVersion
,
callback
:
function
(
a
){
t
.
selectVersion
=
a
},
expression
:
"selectVersion"
}},[
t
.
_v
(
t
.
_s
(
a
.
row
.
version
))])]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"发布备注"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
row
.
remark
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"发布时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
a
.
row
.
createTime
)))]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
a
.
row
.
createTime
)))])]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
handleShow
(
a
.
$index
,
a
.
row
)}}},[
t
.
_v
(
"查看"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
totalCount
?
e
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
e
(
"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
(
" "
),
e
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
e
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
t
.
customConfirm
(
"syncForm"
)}}},[
t
.
_v
(
"确 定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
O
=
e
(
"VU/8"
)(
q
,
F
,
!
1
,
function
(
t
){
e
(
"QGGh"
)},
"data-v-7b0da70c"
,
null
).
exports
,
N
=
{
name
:
"api-version-show"
,
components
:{
baseInfoShow
:
n
,
frontendInfoShow
:
f
,
backendInfoShow
:
k
,
backInfoShow
:
j
,
publishSet
:
V
.
a
,
goHistory
:
O
},
data
:
function
(){
return
{
apiData
:{
interfaceId
:
""
,
interfaceName
:
""
,
interfaceGroupId
:
""
,
interfaceUrl
:
""
,
interfaceDescribe
:
""
,
projectId
:
""
,
optType
:
""
,
sucReturn
:
""
,
errReturn
:
""
,
errCode
:[],
frontParams
:{},
endParams
:{},
target
:
""
,
requestType
:
"POST"
,
protocol
:
"http"
,
version
:
""
,
interfaceType
:
"HTTP"
,
dubboMethod
:
""
,
dubboInterface
:
""
,
httpPath
:
""
,
proxyCode
:
""
,
resultParams
:
""
,
backendRequestType
:
""
,
timeout
:
43087112
},
activeInfo
:
0
,
editRow
:{},
publishShow
:
!
1
,
historyShow
:
!
1
}},
methods
:{
handlePublish
:
function
(){
this
.
publishShow
=!
0
,
this
.
editRow
=
JSON
.
parse
(
l
()(
this
.
apiData
))},
hidePublishDialog
:
function
(
t
){
this
.
publishShow
=!
1
,
this
.
editRow
=
{},
t
&&
(
this
.
apiData
.
status
=
2
)},
handleGoHistory
:
function
(){
this
.
historyShow
=!
0
},
hideHistoryDialog
:
function
(){
this
.
historyShow
=!
1
},
handleDel
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"确认删除此版本吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
postDelData
()}).
catch
(
function
(){})},
postDelData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
};
Object
(
P
.
b
)(
"/gateway-manage/delete-api-version"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
t
.
$route
.
query
.
interfaceName
);
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
handleGoBack
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"确认将【当前版本】回滚到【已发布版本号】吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
postGoBack
()}).
catch
(
function
(){})},
postGoBack
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
};
Object
(
P
.
a
)(
"/gateway-manage/rollback-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"回滚成功"
,
"success"
),
void
t
.
getData
();
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
goAuthor
:
function
(
t
,
a
){
this
.
activeInfo
=
a
,
this
.
$el
.
querySelector
(
t
).
scrollIntoView
()},
getData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
$route
.
query
.
interfaceVersionId
,
interfaceId
:
t
.
$route
.
query
.
interfaceId
,
publishRecordId
:
t
.
$route
.
query
.
publishRecordId
||
""
};
Object
(
P
.
a
)(
"/gateway-manage/get-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
e
.
result
.
frontParams
=
JSON
.
parse
(
e
.
result
.
frontParams
),
e
.
result
.
endParams
=
JSON
.
parse
(
e
.
result
.
endParams
),
e
.
result
.
errCode
=
JSON
.
parse
(
e
.
result
.
errCode
),
e
.
result
.
resultParams
=
JSON
.
parse
(
e
.
result
.
resultParams
),
void
(
t
.
apiData
=
e
.
result
||
{});
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
init
:
function
(){
document
.
getElementsByClassName
(
"api-body-content"
)[
0
].
addEventListener
(
"scroll"
,
this
.
scroll
)},
scroll
:
function
(){
var
t
=
this
,
a
=
document
.
querySelectorAll
(
".api-body-content"
)[
0
].
scrollTop
;
document
.
querySelectorAll
(
".info-wrap"
).
forEach
(
function
(
e
,
s
){
a
>=
e
.
offsetTop
&&
(
t
.
activeInfo
=
s
)})}},
mounted
:
function
(){
var
t
=
this
;
t
.
getData
(),
t
.
$nextTick
(
function
(){
t
.
init
()})},
destroyed
:
function
(){
document
.
getElementsByClassName
(
"api-body-content"
)[
0
].
removeEventListener
(
"scroll"
,
this
.
scroll
)}},
K
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"api-version-content border-box"
},[
e
(
"div"
,{
staticClass
:
"api-version-body"
},[
e
(
"div"
,{
staticClass
:
"operate-btns"
},[
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handlePublish
}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleDel
}},[
t
.
_v
(
"删除"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleGoHistory
}},[
t
.
_v
(
"回滚"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleGoBack
}},[
t
.
_v
(
"回退"
)])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"anchor-wrap"
},[
e
(
"div"
,{
staticClass
:
"el-tabs el-tabs--right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__header is-right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav-wrap is-right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav-scroll"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav is-right"
,
staticStyle
:{
transform
:
"translateY(0px)"
},
attrs
:{
role
:
"tablist"
}},[
e
(
"div"
,{
staticClass
:
"el-tabs__active-bar is-right"
,
style
:{
transform
:
"translateY("
+
24
*
t
.
activeInfo
+
"px)"
,
height
:
"24px"
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
0
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-0"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#base"
,
0
)}}},[
t
.
_v
(
"基础配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
1
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-1"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#frontend"
,
1
)}}},[
t
.
_v
(
"前端配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
2
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-2"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#backend"
,
2
)}}},[
t
.
_v
(
"后端配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
3
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-3"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#result"
,
3
)}}},[
t
.
_v
(
"返回结果"
)])])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"base-info-wrap info-wrap"
,
attrs
:{
id
:
"base"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133"
},[
t
.
_v
(
"基础信息"
)]),
t
.
_v
(
" "
),
e
(
"base-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"frontend-set-wrap info-wrap"
,
attrs
:{
id
:
"frontend"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"前端配置"
)]),
t
.
_v
(
" "
),
e
(
"frontend-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"backend-set-wrap info-wrap"
,
attrs
:{
id
:
"backend"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"后端配置"
)]),
t
.
_v
(
" "
),
e
(
"backend-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"back-result-wrap info-wrap"
,
attrs
:{
id
:
"result"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"返回结果"
)]),
t
.
_v
(
" "
),
e
(
"back-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
)]),
t
.
_v
(
" "
),
e
(
"go-history"
,{
attrs
:{
apiData
:
t
.
apiData
,
historyShow
:
t
.
historyShow
},
on
:{
hideHistoryDialog
:
t
.
hideHistoryDialog
}}),
t
.
_v
(
" "
),
e
(
"publish-set"
,{
attrs
:{
editRow
:
t
.
editRow
,
publishShow
:
t
.
publishShow
},
on
:{
hidePublishDialog
:
t
.
hidePublishDialog
}})],
1
)},
staticRenderFns
:[]};
var
B
=
e
(
"VU/8"
)(
N
,
K
,
!
1
,
function
(
t
){
e
(
"tgwp"
)},
"data-v-66956392"
,
null
).
exports
,
E
=
{
name
:
"apiListManageShow"
,
components
:{
navBread
:
s
.
a
,
apiVersionShow
:
B
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
"/apiListManage"
},{
name
:
"查看"
,
path
:
""
}]}},
methods
:{
getData
:
function
(){
var
t
=
this
,
a
=
{
project
:
t
.
repProjectName
,
router
:
t
.
pathName
,
requestProject
:
t
.
repProjectName
};
Object
(
P
.
a
)(
"/haoban-manage-web/menu-detail"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
?
void
0
:
void
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
});
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
a
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)}},
A
=
{
render
:
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
this
.
navPath
}})],
1
),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
,
staticStyle
:{
height
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"api-version-show"
)],
1
)])])},
staticRenderFns
:[]};
var
U
=
e
(
"VU/8"
)(
E
,
A
,
!
1
,
function
(
t
){
e
(
"/ZYZ"
)},
"data-v-aace81b4"
,
null
);
a
.
default
=
U
.
exports
},
ripu
:
function
(
t
,
a
){},
tgwp
:
function
(
t
,
a
){},
yJzj
:
function
(
t
,
a
){},
zR8Z
:
function
(
t
,
a
){},
znuk
:
function
(
t
,
a
,
e
){
"use strict"
;
var
s
=
e
(
"mvHQ"
),
i
=
e
.
n
(
s
),
l
=
e
(
"Kkt8"
),
o
=
e
(
"P9l9"
),
r
=
e
(
"TUB1"
),
n
=
e
(
"LlAa"
),
c
=
{
name
:
"publish-set"
,
components
:{
limitTextarea
:
l
.
a
},
props
:{
publishShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{}}},
methods
:{
handleClose
:
function
(
t
){
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hidePublishDialog"
)},
customConfirm
:
function
(
t
){
var
a
=
this
;
a
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
a
.
postEditData
()})},
postEditData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
formData
.
interfaceVersionId
,
defaultFlag
:
t
.
formData
.
defaultFlag
?
"1"
:
"0"
,
remark
:
t
.
formData
.
remark
};
Object
(
o
.
a
)(
"/gateway-manage/publish-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
r
.
a
.
showmsg
(
"发布成功"
,
"success"
),
void
t
.
setData
();
n
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hidePublishDialog"
,
!
0
)}},
watch
:{
publishShow
:
function
(
t
,
a
){
this
.
customDialog
=
t
},
editRow
:
function
(
t
,
a
){
this
.
formData
=
JSON
.
parse
(
i
()(
t
)),
this
.
formData
.
defaultFlag
=
1
==
t
.
defaultFlag
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
i
()(
this
.
editRow
)),
this
.
formData
.
defaultFlag
=
1
==
this
.
editRow
.
defaultFlag
}},
d
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
e
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
a
){
t
.
customDialog
=
a
}}},[
e
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
e
(
"el-form"
,{
ref
:
"publishForm"
,
attrs
:{
model
:
t
.
formData
,
"label-width"
:
"160px"
,
rules
:
t
.
rules
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"发布环境:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
formData
.
sceneName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"设置为默认版本:"
}},[
e
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
model
:{
value
:
t
.
formData
.
defaultFlag
,
callback
:
function
(
a
){
t
.
$set
(
t
.
formData
,
"defaultFlag"
,
a
)},
expression
:
"formData.defaultFlag"
}})],
1
),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
}},[
e
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
370
,
inputValue
:
t
.
formData
.
remark
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
a
){
t
.
$set
(
t
.
formData
,
"remark"
,
a
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
e
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
t
.
customConfirm
(
"publishForm"
)}}},[
t
.
_v
(
"发 布"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
p
=
e
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
e
(
"ripu"
)},
"data-v-68ac51f7"
,
null
);
a
.
a
=
p
.
exports
}});
\ No newline at end of file
dist/static/js/3.94ac3deb1b736ce3651d.js
deleted
100644 → 0
View file @
ef846adf
webpackJsonp
([
3
],{
"/ZYZ"
:
function
(
t
,
a
){},
"0jQA"
:
function
(
t
,
a
){},
"5NPs"
:
function
(
t
,
a
){},
E4Ac
:
function
(
t
,
a
){},
QGGh
:
function
(
t
,
a
){},
coGM
:
function
(
t
,
a
){},
meWf
:
function
(
t
,
a
){},
nXhg
:
function
(
t
,
a
){},
nyOv
:
function
(
t
,
a
){},
oDbL
:
function
(
t
,
a
){},
r4m9
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
s
=
e
(
"319J"
),
i
=
e
(
"mvHQ"
),
l
=
e
.
n
(
i
),
o
=
{
name
:
"base-info-show"
,
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
r
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"API类型:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
1
==
t
.
apiInfoData
.
target
?
"公开"
:
"私有"
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"访问类型:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
requestType
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceDescribe
)
+
"
\
n "
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
n
=
e
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
e
(
"E4Ac"
)},
"data-v-722b853f"
,
null
).
exports
,
c
=
{
name
:
"table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
d
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
,
function
(
a
,
s
,
i
){
return
[
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
frontOriginType
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"el-checkbox"
,{
attrs
:{
disabled
:
"true"
},
model
:{
value
:
a
.
check
,
callback
:
function
(
e
){
t
.
$set
(
a
,
"check"
,
e
)},
expression
:
"itemValue.check"
}})],
1
)]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
description
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
.
properties
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
properties
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
p
=
{
name
:
"frontend-info-show"
,
components
:{
tableTr
:
e
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
e
(
"nXhg"
)},
"data-v-c35f6f24"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{}}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
u
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"frontend-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"协议:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
protocol
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
interfaceUrl
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求方法:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
requestType
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"参数配置:"
}},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"必选"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"示例"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"描述"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"table-tr"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
frontParams
.
properties
}})],
1
)])])])],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
e
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
t
){
e
(
"meWf"
)},
"data-v-8935b132"
,
null
).
exports
,
_
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
b
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
t
.
_e
():
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
frontOriginType
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
v
=
e
(
"VU/8"
)(
_
,
b
,
!
1
,
function
(
t
){
e
(
"yJzj"
)},
"data-v-027d4bf3"
,
null
).
exports
,
m
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
h
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
t
.
_e
():
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
1
==
t
.
interfaceType
?
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
objectClass
))])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"back-table-row"
,{
key
:
i
+
"123"
+
s
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
y
=
e
(
"VU/8"
)(
m
,
h
,
!
1
,
function
(
t
){
e
(
"nyOv"
)},
"data-v-7d4da8b6"
,
null
).
exports
,
g
=
{
name
:
"back-constant"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
JSON
.
parse
(
l
()(
t
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
l
()(
this
.
itemData
))}},
C
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
"0"
==
t
.
interfaceType
?
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
_m
(
1
),
t
.
_v
(
" "
),
t
.
_m
(
2
)])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
a
.
constFlag
?
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
currentKey
)
+
"
\
n "
)])]),
t
.
_v
(
" "
),
"0"
==
t
.
interfaceType
?
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
backendOriginType
)
+
"
\
n "
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
type
)
+
"
\
n "
)])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
defaultVal
)
+
"
\
n "
)])])])])]):
t
.
_e
()]})],
2
)])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数名"
)])])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数类型"
)])])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数值"
)])])}]};
var
w
=
{
name
:
"backend-info-show"
,
components
:{
backTableTr
:
v
,
backTableRight
:
y
,
backConstTable
:
e
(
"VU/8"
)(
g
,
C
,
!
1
,
function
(
t
){
e
(
"oDbL"
)},
"data-v-1f912880"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
endParams
:{
type
:
"object"
,
properties
:{
name
:{
backendOriginType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
backendOriginType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
properties
:{
age
:{
backendOriginType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}}}}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
D
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"backend-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"后端服务:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
0
==
t
.
apiInfoData
.
interfaceType
?
"http"
:
"dubbo"
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"环境:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
protocol
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"API版本号:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
version
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
0
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
backendHttpPath
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo接口名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboInterface
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo请求方法:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboMethod
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"注册中心地址:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
proxyCode
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"el-form-item"
,{
attrs
:{
label
:
"请求版本号:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
dubboVersion
)
+
"
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"超时时长:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
apiInfoData
.
timeout
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"参数映射:"
}},[
e
(
"div"
,{
staticClass
:
"table-wrap-body font-0"
},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"30%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数位置"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-table-tr"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
endParams
}})],
1
)])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"70%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名映射"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型映射"
)])]),
t
.
_v
(
" "
),
1
==
t
.
apiInfoData
.
interfaceType
?
e
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"包名"
)])]):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数值"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-table-right"
,{
attrs
:{
interfaceType
:
t
.
apiInfoData
.
interfaceType
,
itemData
:
t
.
apiInfoData
.
endParams
}})],
1
)])])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"常量参数:"
}},[
e
(
"back-const-table"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
endParams
,
interfaceType
:
t
.
apiInfoData
.
interfaceType
}})],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
k
=
e
(
"VU/8"
)(
w
,
D
,
!
1
,
function
(
t
){
e
(
"coGM"
)},
"data-v-6f5d2ff8"
,
null
).
exports
,
I
=
{
name
:
"table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{
protocol
:
"http"
,
interfaceUrl
:
"/"
,
requestType
:
"post"
,
frontParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
itemData
:
function
(
t
,
a
){
this
.
trData
=
t
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
S
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,[
t
.
_l
(
t
.
itemData
.
properties
,
function
(
a
,
s
,
i
){
return
[
e
(
"table"
,{
key
:
i
+
s
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"tbody"
,[
e
(
"tr"
,{
staticClass
:
"el-table__row"
},[
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
a
.
type
||
"array"
==
a
.
type
?
e
(
"div"
,{
staticClass
:
"cell"
},[
e
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
t
.
_e
()]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
s
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
type
))])]),
t
.
_v
(
" "
),
e
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
t
.
_s
(
a
.
defaultVal
))])])])])]),
t
.
_v
(
" "
),
"array"
==
a
.
type
&&
Object
.
keys
(
a
.
items
.
properties
).
length
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
.
items
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"object"
==
a
.
type
&&
Object
.
keys
(
a
.
properties
).
length
?
e
(
"table-row"
,{
key
:
i
+
"122"
+
s
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
a
}}):
t
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
x
=
{
name
:
"back-info-show"
,
components
:{
backInfoTable
:
e
(
"VU/8"
)(
I
,
S
,
!
1
,
function
(
t
){
e
(
"zR8Z"
)},
"data-v-72eb4927"
,
null
).
exports
},
props
:{
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{
interfaceName
:
"1"
,
interfaceType
:
"http"
,
requestType
:
"GET"
,
interfaceDescribe
:
"test"
,
errCode
:[{
errorCode
:
"1"
,
errorInfo
:
"添加成功"
}]}}}},
data
:
function
(){
return
{
apiInfoData
:{
interfaceName
:
"1"
,
interfaceType
:
"http"
,
requestType
:
"GET"
,
interfaceDescribe
:
"test"
,
errCode
:[{
errorCode
:
"1"
,
errorInfo
:
"添加成功"
}],
resultParams
:{
type
:
"object"
,
properties
:{
name
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
required
:[],
properties
:{
nameId
:{
originType
:
"query"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
,
properties
:{
age
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
},
email
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}}}}},
id
:{
originType
:
"query"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
check
:
!
0
}},
required
:[]}}}},
watch
:{
apiData
:
function
(
t
,
a
){
this
.
apiInfoData
=
t
}},
mounted
:
function
(){
this
.
apiInfoData
=
this
.
apiData
}},
T
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"back-info-show border-box"
},[
e
(
"el-form"
,{
attrs
:{
"label-width"
:
"120px"
,
model
:
t
.
apiInfoData
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"返回参数:"
}},[
e
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
e
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
e
(
"thead"
,{
staticClass
:
"has-gutter"
},[
e
(
"tr"
,{},[
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
})]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数名"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"参数类型"
)])]),
t
.
_v
(
" "
),
e
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
e
(
"div"
,{
staticClass
:
"cell"
},[
t
.
_v
(
"示例"
)])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
e
(
"div"
,{
staticClass
:
"table-content"
},[
e
(
"back-info-table"
,{
attrs
:{
itemData
:
t
.
apiInfoData
.
resultParams
}})],
1
)])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"错误码:"
}},[
e
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
apiInfoData
.
errCode
}},[
e
(
"el-table-column"
,{
attrs
:{
prop
:
"orig_error_code"
,
label
:
"原始错误码"
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"error_code"
,
label
:
"映射错误码"
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"error_info"
,
label
:
"错误信息"
}})],
1
)],
1
),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"成功返回示例:"
}},[
e
(
"div"
,{
staticClass
:
"common-back-pre"
},[
e
(
"pre"
,[
t
.
_v
(
" "
+
t
.
_s
(
t
.
apiInfoData
.
sucReturn
)
+
"
\
n "
)])])]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"失败返回示例:"
}},[
e
(
"div"
,{
staticClass
:
"common-back-pre"
},[
e
(
"pre"
,[
t
.
_v
(
" "
+
t
.
_s
(
t
.
apiInfoData
.
errReturn
)
+
"
\
n "
)])])])],
1
)],
1
)},
staticRenderFns
:[]};
var
j
=
e
(
"VU/8"
)(
x
,
T
,
!
1
,
function
(
t
){
e
(
"5NPs"
)},
"data-v-728369bc"
,
null
).
exports
,
V
=
e
(
"znuk"
),
P
=
e
(
"P9l9"
),
$
=
e
(
"LlAa"
),
R
=
e
(
"TUB1"
),
q
=
{
name
:
"go-history"
,
props
:{
historyShow
:{
type
:
Boolean
,
default
:
!
1
},
apiData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
selectVersion
:
""
,
tableData
:[],
pageSize
:
8
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
handleClose
:
function
(
t
){
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideHistoryDialog"
)},
customConfirm
:
function
(){
if
(
!
this
.
selectVersion
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择回退版本"
}),
!
1
;
this
.
postEditData
()},
postEditData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
,
target
:
t
.
selectVersion
};
Object
(
P
.
a
)(
"/gateway-manage/reset-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"回退成功"
,
"success"
),
void
t
.
setData
();
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hideHistoryDialog"
)},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getData
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getData
()},
handleShow
:
function
(
t
,
a
){
window
.
open
(
"#/apiListManageShow?interfaceId="
+
a
.
interfaceId
+
"&interfaceName="
+
a
.
interfaceName
+
"&interfaceVersionId="
+
a
.
interfaceVersionId
)},
getData
:
function
(){
var
t
=
this
,
a
=
{
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
sceneCode
:
t
.
apiData
.
sceneCode
,
interfaceId
:
t
.
$route
.
query
.
interfaceId
};
Object
(
P
.
a
)(
"/gateway-manage/page-api-publish-record"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
t
.
tableData
=
e
.
result
.
result
||
[],
void
(
t
.
totalCount
=
e
.
result
.
totalCount
);
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
a
){},
deep
:
!
0
},
historyShow
:
function
(
t
,
a
){
this
.
customDialog
=
t
,
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
historyShow
,
this
.
getData
()}},
F
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
e
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"选择回退版本"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
a
){
t
.
customDialog
=
a
}}},[
e
(
"div"
,{
staticClass
:
"table-wrap"
},[
e
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
e
(
"el-table-column"
,{
attrs
:{
label
:
""
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"el-radio"
,{
attrs
:{
label
:
a
.
row
.
publishRecordId
},
model
:{
value
:
t
.
selectVersion
,
callback
:
function
(
a
){
t
.
selectVersion
=
a
},
expression
:
"selectVersion"
}},[
t
.
_v
(
t
.
_s
(
a
.
row
.
version
))])]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"发布备注"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
a
.
row
.
remark
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"发布时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
a
.
row
.
createTime
)))]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
a
.
row
.
createTime
)))])]}}])}),
t
.
_v
(
" "
),
e
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
a
){
return
[
e
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
handleShow
(
a
.
$index
,
a
.
row
)}}},[
t
.
_v
(
"查看"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
totalCount
?
e
(
"div"
,{
staticClass
:
"pagination text-right m-t-14"
},[
e
(
"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
(
" "
),
e
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
e
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
t
.
customConfirm
(
"syncForm"
)}}},[
t
.
_v
(
"确 定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
O
=
e
(
"VU/8"
)(
q
,
F
,
!
1
,
function
(
t
){
e
(
"QGGh"
)},
"data-v-7b0da70c"
,
null
).
exports
,
N
=
{
name
:
"api-version-show"
,
components
:{
baseInfoShow
:
n
,
frontendInfoShow
:
f
,
backendInfoShow
:
k
,
backInfoShow
:
j
,
publishSet
:
V
.
a
,
goHistory
:
O
},
data
:
function
(){
return
{
apiData
:{
interfaceId
:
""
,
interfaceName
:
""
,
interfaceGroupId
:
""
,
interfaceUrl
:
""
,
interfaceDescribe
:
""
,
projectId
:
""
,
optType
:
""
,
sucReturn
:
""
,
errReturn
:
""
,
errCode
:[],
frontParams
:{},
endParams
:{},
target
:
""
,
requestType
:
"POST"
,
protocol
:
"http"
,
version
:
""
,
interfaceType
:
"HTTP"
,
dubboMethod
:
""
,
dubboInterface
:
""
,
httpPath
:
""
,
proxyCode
:
""
,
resultParams
:
""
,
backendRequestType
:
""
,
timeout
:
43087112
},
activeInfo
:
0
,
editRow
:{},
publishShow
:
!
1
,
historyShow
:
!
1
}},
methods
:{
handlePublish
:
function
(){
this
.
publishShow
=!
0
,
this
.
editRow
=
JSON
.
parse
(
l
()(
this
.
apiData
))},
hidePublishDialog
:
function
(
t
){
this
.
publishShow
=!
1
,
this
.
editRow
=
{},
t
&&
(
this
.
apiData
.
status
=
2
)},
handleGoHistory
:
function
(){
this
.
historyShow
=!
0
},
hideHistoryDialog
:
function
(){
this
.
historyShow
=!
1
},
handleDel
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"确认删除此版本吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
postDelData
()}).
catch
(
function
(){})},
postDelData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
};
Object
(
P
.
b
)(
"/gateway-manage/delete-api-version"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
t
.
$route
.
query
.
interfaceName
);
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
handleGoBack
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"确认将【当前版本】回滚到【已发布版本号】吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
postGoBack
()}).
catch
(
function
(){})},
postGoBack
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
apiData
.
interfaceVersionId
};
Object
(
P
.
a
)(
"/gateway-manage/rollback-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
R
.
a
.
showmsg
(
"回滚成功"
,
"success"
),
void
t
.
getData
();
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
goAuthor
:
function
(
t
,
a
){
this
.
activeInfo
=
a
,
this
.
$el
.
querySelector
(
t
).
scrollIntoView
()},
getData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
$route
.
query
.
interfaceVersionId
,
interfaceId
:
t
.
$route
.
query
.
interfaceId
,
publishRecordId
:
t
.
$route
.
query
.
publishRecordId
||
""
};
Object
(
P
.
a
)(
"/gateway-manage/get-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
e
.
result
.
frontParams
=
JSON
.
parse
(
e
.
result
.
frontParams
),
e
.
result
.
endParams
=
JSON
.
parse
(
e
.
result
.
endParams
),
e
.
result
.
errCode
=
JSON
.
parse
(
e
.
result
.
errCode
),
e
.
result
.
resultParams
=
JSON
.
parse
(
e
.
result
.
resultParams
),
void
(
t
.
apiData
=
e
.
result
||
{});
$
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
init
:
function
(){
document
.
getElementsByClassName
(
"api-body-content"
)[
0
].
addEventListener
(
"scroll"
,
this
.
scroll
)},
scroll
:
function
(){
var
t
=
this
,
a
=
document
.
querySelectorAll
(
".api-body-content"
)[
0
].
scrollTop
;
document
.
querySelectorAll
(
".info-wrap"
).
forEach
(
function
(
e
,
s
){
a
>=
e
.
offsetTop
&&
(
t
.
activeInfo
=
s
)})}},
mounted
:
function
(){
var
t
=
this
;
t
.
getData
(),
t
.
$nextTick
(
function
(){
t
.
init
()})},
destroyed
:
function
(){
document
.
getElementsByClassName
(
"api-body-content"
)[
0
].
removeEventListener
(
"scroll"
,
this
.
scroll
)}},
K
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"api-version-content border-box"
},[
e
(
"div"
,{
staticClass
:
"api-version-body"
},[
e
(
"div"
,{
staticClass
:
"operate-btns"
},[
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handlePublish
}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleDel
}},[
t
.
_v
(
"删除"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleGoHistory
}},[
t
.
_v
(
"回退"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
apiData
.
status
||
3
==
t
.
apiData
.
status
,
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
handleGoBack
}},[
t
.
_v
(
"回滚"
)])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"anchor-wrap"
},[
e
(
"div"
,{
staticClass
:
"el-tabs el-tabs--right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__header is-right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav-wrap is-right"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav-scroll"
},[
e
(
"div"
,{
staticClass
:
"el-tabs__nav is-right"
,
staticStyle
:{
transform
:
"translateY(0px)"
},
attrs
:{
role
:
"tablist"
}},[
e
(
"div"
,{
staticClass
:
"el-tabs__active-bar is-right"
,
style
:{
transform
:
"translateY("
+
24
*
t
.
activeInfo
+
"px)"
,
height
:
"24px"
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
0
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-0"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#base"
,
0
)}}},[
t
.
_v
(
"基础配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
1
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-1"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#frontend"
,
1
)}}},[
t
.
_v
(
"前端配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
2
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-2"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#backend"
,
2
)}}},[
t
.
_v
(
"后端配置"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"el-tabs__item h-24 is-right"
,
3
==
t
.
activeInfo
?
"is-active"
:
""
],
attrs
:{
id
:
"tab-3"
},
on
:{
click
:
function
(
a
){
t
.
goAuthor
(
"#result"
,
3
)}}},[
t
.
_v
(
"返回结果"
)])])])])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"base-info-wrap info-wrap"
,
attrs
:{
id
:
"base"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133"
},[
t
.
_v
(
"基础信息"
)]),
t
.
_v
(
" "
),
e
(
"base-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"frontend-set-wrap info-wrap"
,
attrs
:{
id
:
"frontend"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"前端配置"
)]),
t
.
_v
(
" "
),
e
(
"frontend-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"backend-set-wrap info-wrap"
,
attrs
:{
id
:
"backend"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"后端配置"
)]),
t
.
_v
(
" "
),
e
(
"backend-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"back-result-wrap info-wrap"
,
attrs
:{
id
:
"result"
}},[
e
(
"div"
,{
staticClass
:
"commont-info-title font-14 color-303133 m-t-47"
},[
t
.
_v
(
"返回结果"
)]),
t
.
_v
(
" "
),
e
(
"back-info-show"
,{
attrs
:{
apiData
:
t
.
apiData
}})],
1
)]),
t
.
_v
(
" "
),
e
(
"go-history"
,{
attrs
:{
apiData
:
t
.
apiData
,
historyShow
:
t
.
historyShow
},
on
:{
hideHistoryDialog
:
t
.
hideHistoryDialog
}}),
t
.
_v
(
" "
),
e
(
"publish-set"
,{
attrs
:{
editRow
:
t
.
editRow
,
publishShow
:
t
.
publishShow
},
on
:{
hidePublishDialog
:
t
.
hidePublishDialog
}})],
1
)},
staticRenderFns
:[]};
var
B
=
e
(
"VU/8"
)(
N
,
K
,
!
1
,
function
(
t
){
e
(
"0jQA"
)},
"data-v-34e15d92"
,
null
).
exports
,
E
=
{
name
:
"apiListManageShow"
,
components
:{
navBread
:
s
.
a
,
apiVersionShow
:
B
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
"/apiListManage"
},{
name
:
"查看"
,
path
:
""
}]}},
methods
:{
getData
:
function
(){
var
t
=
this
,
a
=
{
project
:
t
.
repProjectName
,
router
:
t
.
pathName
,
requestProject
:
t
.
repProjectName
};
Object
(
P
.
a
)(
"/haoban-manage-web/menu-detail"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
?
void
0
:
void
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
});
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
t
,
a
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)}},
A
=
{
render
:
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
this
.
navPath
}})],
1
),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
,
staticStyle
:{
height
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"api-version-show"
)],
1
)])])},
staticRenderFns
:[]};
var
U
=
e
(
"VU/8"
)(
E
,
A
,
!
1
,
function
(
t
){
e
(
"/ZYZ"
)},
"data-v-aace81b4"
,
null
);
a
.
default
=
U
.
exports
},
ripu
:
function
(
t
,
a
){},
yJzj
:
function
(
t
,
a
){},
zR8Z
:
function
(
t
,
a
){},
znuk
:
function
(
t
,
a
,
e
){
"use strict"
;
var
s
=
e
(
"mvHQ"
),
i
=
e
.
n
(
s
),
l
=
e
(
"Kkt8"
),
o
=
e
(
"P9l9"
),
r
=
e
(
"TUB1"
),
n
=
e
(
"LlAa"
),
c
=
{
name
:
"publish-set"
,
components
:{
limitTextarea
:
l
.
a
},
props
:{
publishShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{}}},
methods
:{
handleClose
:
function
(
t
){
t
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hidePublishDialog"
)},
customConfirm
:
function
(
t
){
var
a
=
this
;
a
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
a
.
postEditData
()})},
postEditData
:
function
(){
var
t
=
this
,
a
=
{
interfaceVersionId
:
t
.
formData
.
interfaceVersionId
,
defaultFlag
:
t
.
formData
.
defaultFlag
?
"1"
:
"0"
,
remark
:
t
.
formData
.
remark
};
Object
(
o
.
a
)(
"/gateway-manage/publish-api"
,
a
).
then
(
function
(
a
){
var
e
=
a
.
data
;
if
(
"0000"
==
e
.
code
)
return
r
.
a
.
showmsg
(
"发布成功"
,
"success"
),
void
t
.
setData
();
n
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
setData
:
function
(
t
){
this
.
$emit
(
"hidePublishDialog"
,
!
0
)}},
watch
:{
publishShow
:
function
(
t
,
a
){
this
.
customDialog
=
t
},
editRow
:
function
(
t
,
a
){
this
.
formData
=
JSON
.
parse
(
i
()(
t
)),
this
.
formData
.
defaultFlag
=
1
==
t
.
defaultFlag
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
i
()(
this
.
editRow
)),
this
.
formData
.
defaultFlag
=
1
==
this
.
editRow
.
defaultFlag
}},
d
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
customDialog
,
expression
:
"customDialog"
}]},[
e
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布"
,
visible
:
t
.
customDialog
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
a
){
t
.
customDialog
=
a
}}},[
e
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
e
(
"el-form"
,{
ref
:
"publishForm"
,
attrs
:{
model
:
t
.
formData
,
"label-width"
:
"160px"
,
rules
:
t
.
rules
}},[
e
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"发布环境:"
}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
t
.
formData
.
sceneName
)
+
"
\
n "
)]),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"设置为默认版本:"
}},[
e
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
model
:{
value
:
t
.
formData
.
defaultFlag
,
callback
:
function
(
a
){
t
.
$set
(
t
.
formData
,
"defaultFlag"
,
a
)},
expression
:
"formData.defaultFlag"
}})],
1
),
t
.
_v
(
" "
),
e
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
}},[
e
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
370
,
inputValue
:
t
.
formData
.
remark
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
a
){
t
.
$set
(
t
.
formData
,
"remark"
,
a
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
e
(
"el-button"
,{
on
:{
click
:
t
.
customCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
t
.
customConfirm
(
"publishForm"
)}}},[
t
.
_v
(
"发 布"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
p
=
e
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
e
(
"ripu"
)},
"data-v-68ac51f7"
,
null
);
a
.
a
=
p
.
exports
}});
\ No newline at end of file
dist/static/js/4.2
e73022dc0588fa75499
.js
→
dist/static/js/4.2
b8e2d0693f544b00f13
.js
View file @
61205552
webpackJsonp
([
4
],{
BvdG
:
function
(
e
,
t
){},
Gw0V
:
function
(
e
,
t
){},
Hvnz
:
function
(
e
,
t
){},
auOq
:
function
(
e
,
t
){},
dqHC
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"319J"
),
n
=
a
(
"znuk"
),
i
=
a
(
"mvHQ"
),
s
=
a
.
n
(
i
),
r
=
a
(
"P9l9"
),
l
=
a
(
"TUB1"
),
c
=
a
(
"LlAa"
),
u
=
{
name
:
"sync-set"
,
props
:{
syncShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
sceneCode
:
""
},
rules
:{
sceneCode
:[{
required
:
!
0
,
message
:
"请选择环境"
,
trigger
:
"change"
}]},
envOptions
:[]}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideSyncDialog"
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
if
(
t
.
editRow
.
sceneCode
==
t
.
formData
.
sceneCode
)
return
l
.
a
.
showmsg
(
"已经在当前环境"
,
"warning"
),
!
1
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
interfaceVersionId
:
e
.
formData
.
interfaceVersionId
,
sceneCode
:
e
.
formData
.
sceneCode
};
Object
(
r
.
a
)(
"/gateway-manage/async-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
l
.
a
.
showmsg
(
"同步成功"
,
"success"
),
void
e
.
setData
();
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
this
.
$emit
(
"hideSyncDialog"
)},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
c
.
a
.
errorMsg
(
a
):
e
.
envOptions
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
syncShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
s
()(
e
))}},
mounted
:
function
(){
this
.
getEnvData
(),
this
.
customDialog
=
this
.
syncShow
,
this
.
formData
=
JSON
.
parse
(
s
()(
this
.
editRow
))}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"同步"
,
visible
:
e
.
customDialog
,
width
:
"424px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"syncForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"110px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API版本:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
version
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"同步至环境:"
,
prop
:
"sceneCode"
}},[
a
(
"el-select"
,{
staticClass
:
"w-190"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sceneCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sceneCode"
,
t
)},
expression
:
"formData.sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
sceneCode
,
attrs
:{
label
:
e
.
sceneName
,
value
:
e
.
sceneCode
}})}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
customCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
customConfirm
(
"syncForm"
)}}},[
e
.
_v
(
"同 步"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
u
,
d
,
!
1
,
function
(
e
){
a
(
"Hvnz"
)},
"data-v-2e7c53b8"
,
null
).
exports
,
f
=
a
(
"fZjL"
),
m
=
a
.
n
(
f
),
p
=
{
name
:
"record-list"
,
props
:{
recordShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{},
tableData
:[],
pageSize
:
5
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideRecordDialog"
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
version
:
e
.
formData
.
version
,
sceneCode
:
e
.
formData
.
sceneCode
,
interfaceId
:
e
.
formData
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-publish-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
recordShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
s
()(
e
)),
m
()(
e
).
length
&&
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
s
()(
this
.
editRow
))}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布记录"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
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
.
remark
)
+
"
\
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
.
publishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))])]}}])}),
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
.
handleShow
(
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
)])],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
p
,
g
,
!
1
,
function
(
e
){
a
(
"Gw0V"
)},
"data-v-62a2a924"
,
null
).
exports
,
w
=
a
(
"jvWE"
),
b
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
h
,
recordList
:
v
},
data
:
function
(){
return
{
searchValue
:
""
,
sceneCode
:
""
,
envOptions
:[],
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
syncShow
:
!
1
,
editRow
:{},
publishShow
:
!
1
,
recordShow
:
!
1
}},
methods
:{
searchData
:
Object
(
w
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeType
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
changeVersion
:
function
(
e
,
t
){
this
.
postChangeVersion
(
e
,
t
)},
postChangeVersion
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
defaultFlag
:
t
?
"1"
:
"0"
,
interfaceVersionId
:
e
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/set-default-version-api"
,
o
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
l
.
a
.
showmsg
(
"设置成功"
,
"success"
),
a
.
currentPage
=
1
,
void
a
.
getData
();
c
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handlePublish
:
function
(
e
,
t
){
this
.
publishShow
=!
0
,
this
.
editRow
=
t
},
hidePublishDialog
:
function
(){
this
.
getData
(),
this
.
publishShow
=!
1
,
this
.
editRow
=
{}},
handleSync
:
function
(
e
,
t
){
this
.
syncShow
=!
0
,
this
.
editRow
=
t
},
hideSyncDialog
:
function
(){
this
.
syncShow
=!
1
,
this
.
editRow
=
{}},
handleRecord
:
function
(
e
,
t
){
this
.
recordShow
=!
0
,
this
.
editRow
=
t
},
hideRecordDialog
:
function
(){
this
.
recordShow
=!
1
,
this
.
editRow
=
{}},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleEdit
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/createApi?projectId="
+
t
.
projectId
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleDown
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认将【"
+
t
.
version
+
"】版本的【"
+
a
.
$route
.
query
.
interfaceName
+
"】API下线吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDownData
(
e
,
t
)}).
catch
(
function
(){})},
postDownData
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
interfaceVersionId
:
t
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/offline-api"
,
o
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
l
.
a
.
showmsg
(
"下线成功"
,
"success"
),
void
a
.
getData
();
c
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
envOptions
=
a
.
result
||
[],
void
(
a
.
result
.
length
&&
(
e
.
sceneCode
=
a
.
result
[
0
].
sceneCode
,
e
.
getData
()));
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
sceneCode
:
e
.
sceneCode
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-version-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
a
.
result
.
result
.
length
&&
a
.
result
.
result
.
forEach
(
function
(
e
){
e
.
defaultFlag
=
1
==
e
.
defaultFlag
}),
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getEnvData
()}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"search-wrap m-b-20 flex flex-space-between"
},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入版本号"
},
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
(
"div"
,{
staticClass
:
"search-wrap-right"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeType
},
model
:{
value
:
e
.
sceneCode
,
callback
:
function
(
t
){
e
.
sceneCode
=
t
},
expression
:
"sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
t
,
o
){
return
a
(
"el-radio-button"
,{
key
:
o
,
attrs
:{
label
:
t
.
sceneCode
}},[
e
.
_v
(
e
.
_s
(
t
.
sceneName
))])}))],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"version"
,
label
:
"版本号"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"status"
,
label
:
"发布状态"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
status
?
a
(
"span"
,[
e
.
_v
(
"删除"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
status
?
a
(
"span"
,[
e
.
_v
(
"更新修改"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
status
?
a
(
"span"
,[
e
.
_v
(
"发布 "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
t
.
row
.
status
?
a
(
"span"
,[
e
.
_v
(
"历史发布版本"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
status
?
a
(
"span"
,[
e
.
_v
(
"下线"
)]):
e
.
_e
()]}}])}),
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
[
t
.
row
.
publishTime
?
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
publishTime
)))]):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
publishTime
?
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))]):
e
.
_e
()]}}])}),
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
.
updateTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
updateTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"默认版本"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
a
){
e
.
changeVersion
(
t
.
row
,
t
.
row
.
defaultFlag
)}},
model
:{
value
:
t
.
row
.
defaultFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"defaultFlag"
,
a
)},
expression
:
"scope.row.defaultFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"340"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
row
.
status
||
3
==
t
.
row
.
status
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handlePublish
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"发布"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleSync
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"同步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleShow
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"查看"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
2
!=
t
.
row
.
status
&&
3
!=
t
.
row
.
status
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDown
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"下线"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleRecord
(
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
(
"sync-set"
,{
attrs
:{
editRow
:
e
.
editRow
,
syncShow
:
e
.
syncShow
},
on
:{
hideSyncDialog
:
e
.
hideSyncDialog
}}),
e
.
_v
(
" "
),
a
(
"publish-set"
,{
attrs
:{
editRow
:
e
.
editRow
,
publishShow
:
e
.
publishShow
},
on
:{
hidePublishDialog
:
e
.
hidePublishDialog
}}),
e
.
_v
(
" "
),
a
(
"record-list"
,{
attrs
:{
editRow
:
e
.
editRow
,
recordShow
:
e
.
recordShow
},
on
:{
hideRecordDialog
:
e
.
hideRecordDialog
}})],
1
)},
staticRenderFns
:[]};
var
D
=
a
(
"VU/8"
)(
b
,
_
,
!
1
,
function
(
e
){
a
(
"auOq"
)},
"data-v-22d2ee2e"
,
null
).
exports
,
C
=
{
name
:
"publish-list"
,
data
:
function
(){
return
{
navPath
:[{
name
:
"发布记录"
,
path
:
""
}],
searchValue
:
""
,
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
searchData
:
Object
(
w
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-publish-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
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
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
getData
()}),
e
.
$emit
(
"showTab"
,
4
)}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
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
.
version
)
+
"
\
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
.
sceneName
)
+
"
\
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
.
remark
)
+
"
\
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
.
publishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))])]}}])}),
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
.
handleShow
(
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
)])},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"xoiQ"
)},
"data-v-fb591996"
,
null
).
exports
,
x
=
{
name
:
"apiListManage"
,
components
:{
navBread
:
o
.
a
,
versionList
:
D
,
publishList
:
S
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
""
}],
activeName
:
"first"
}},
methods
:{
handleClick
:
function
(
e
,
t
){
console
.
log
(
e
,
t
);
"first"
==
e
.
name
?
this
.
$refs
.
versionList
.
getData
():
this
.
$refs
.
publishList
.
getData
()}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)}},
$
=
{
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
:
"api-tab-wrap"
},[
a
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"版本"
,
name
:
"first"
}},[
a
(
"version-list"
,{
ref
:
"versionList"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"发布记录"
,
name
:
"second"
}},[
a
(
"publish-list"
,{
ref
:
"publishList"
})],
1
)],
1
)],
1
)])])])},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
x
,
$
,
!
1
,
function
(
e
){
a
(
"BvdG"
)},
"data-v-32da2ee5"
,
null
);
t
.
default
=
I
.
exports
},
ripu
:
function
(
e
,
t
){},
xoiQ
:
function
(
e
,
t
){},
znuk
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
i
=
a
(
"Kkt8"
),
s
=
a
(
"P9l9"
),
r
=
a
(
"TUB1"
),
l
=
a
(
"LlAa"
),
c
=
{
name
:
"publish-set"
,
components
:{
limitTextarea
:
i
.
a
},
props
:{
publishShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{}}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hidePublishDialog"
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
interfaceVersionId
:
e
.
formData
.
interfaceVersionId
,
defaultFlag
:
e
.
formData
.
defaultFlag
?
"1"
:
"0"
,
remark
:
e
.
formData
.
remark
};
Object
(
s
.
a
)(
"/gateway-manage/publish-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
r
.
a
.
showmsg
(
"发布成功"
,
"success"
),
void
e
.
setData
();
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
this
.
$emit
(
"hidePublishDialog"
,
!
0
)}},
watch
:{
publishShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
n
()(
e
)),
this
.
formData
.
defaultFlag
=
1
==
e
.
defaultFlag
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
n
()(
this
.
editRow
)),
this
.
formData
.
defaultFlag
=
1
==
this
.
editRow
.
defaultFlag
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"publishForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"160px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发布环境:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
sceneName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置为默认版本:"
}},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
model
:{
value
:
e
.
formData
.
defaultFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"defaultFlag"
,
t
)},
expression
:
"formData.defaultFlag"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
370
,
inputValue
:
e
.
formData
.
remark
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"remark"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
customCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
customConfirm
(
"publishForm"
)}}},[
e
.
_v
(
"发 布"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"ripu"
)},
"data-v-68ac51f7"
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
webpackJsonp
([
4
],{
BvdG
:
function
(
e
,
t
){},
Gw0V
:
function
(
e
,
t
){},
Hvnz
:
function
(
e
,
t
){},
JeX4
:
function
(
e
,
t
){},
dqHC
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"319J"
),
n
=
a
(
"znuk"
),
i
=
a
(
"mvHQ"
),
s
=
a
.
n
(
i
),
r
=
a
(
"P9l9"
),
l
=
a
(
"TUB1"
),
c
=
a
(
"LlAa"
),
u
=
{
name
:
"sync-set"
,
props
:{
syncShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
sceneCode
:
""
},
rules
:{
sceneCode
:[{
required
:
!
0
,
message
:
"请选择环境"
,
trigger
:
"change"
}]},
envOptions
:[]}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideSyncDialog"
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
if
(
t
.
editRow
.
sceneCode
==
t
.
formData
.
sceneCode
)
return
l
.
a
.
showmsg
(
"已经在当前环境"
,
"warning"
),
!
1
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
interfaceVersionId
:
e
.
formData
.
interfaceVersionId
,
sceneCode
:
e
.
formData
.
sceneCode
};
Object
(
r
.
a
)(
"/gateway-manage/async-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
l
.
a
.
showmsg
(
"同步成功"
,
"success"
),
void
e
.
setData
();
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
this
.
$emit
(
"hideSyncDialog"
)},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
c
.
a
.
errorMsg
(
a
):
e
.
envOptions
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
syncShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
s
()(
e
))}},
mounted
:
function
(){
this
.
getEnvData
(),
this
.
customDialog
=
this
.
syncShow
,
this
.
formData
=
JSON
.
parse
(
s
()(
this
.
editRow
))}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"同步"
,
visible
:
e
.
customDialog
,
width
:
"424px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"syncForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"110px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API版本:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
version
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"同步至环境:"
,
prop
:
"sceneCode"
}},[
a
(
"el-select"
,{
staticClass
:
"w-190"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sceneCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sceneCode"
,
t
)},
expression
:
"formData.sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
sceneCode
,
attrs
:{
label
:
e
.
sceneName
,
value
:
e
.
sceneCode
}})}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
customCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
customConfirm
(
"syncForm"
)}}},[
e
.
_v
(
"同 步"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
u
,
d
,
!
1
,
function
(
e
){
a
(
"Hvnz"
)},
"data-v-2e7c53b8"
,
null
).
exports
,
f
=
a
(
"fZjL"
),
m
=
a
.
n
(
f
),
p
=
{
name
:
"record-list"
,
props
:{
recordShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{},
tableData
:[],
pageSize
:
5
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideRecordDialog"
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
version
:
e
.
formData
.
version
,
sceneCode
:
e
.
formData
.
sceneCode
,
interfaceId
:
e
.
formData
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-publish-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
recordShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
s
()(
e
)),
m
()(
e
).
length
&&
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
s
()(
this
.
editRow
))}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布记录"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
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
.
remark
)
+
"
\
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
.
publishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))])]}}])}),
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
.
handleShow
(
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
)])],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
p
,
g
,
!
1
,
function
(
e
){
a
(
"Gw0V"
)},
"data-v-62a2a924"
,
null
).
exports
,
w
=
a
(
"jvWE"
),
b
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
h
,
recordList
:
v
},
data
:
function
(){
return
{
searchValue
:
""
,
sceneCode
:
""
,
envOptions
:[],
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
syncShow
:
!
1
,
editRow
:{},
publishShow
:
!
1
,
recordShow
:
!
1
}},
methods
:{
searchData
:
Object
(
w
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeType
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
changeVersion
:
function
(
e
,
t
){
this
.
postChangeVersion
(
e
,
t
)},
postChangeVersion
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
defaultFlag
:
t
?
"1"
:
"0"
,
interfaceVersionId
:
e
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/set-default-version-api"
,
o
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
l
.
a
.
showmsg
(
"设置成功"
,
"success"
),
a
.
currentPage
=
1
,
void
a
.
getData
();
c
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handlePublish
:
function
(
e
,
t
){
this
.
publishShow
=!
0
,
this
.
editRow
=
t
},
hidePublishDialog
:
function
(){
this
.
getData
(),
this
.
publishShow
=!
1
,
this
.
editRow
=
{}},
handleSync
:
function
(
e
,
t
){
this
.
syncShow
=!
0
,
this
.
editRow
=
t
},
hideSyncDialog
:
function
(){
this
.
syncShow
=!
1
,
this
.
editRow
=
{}},
handleRecord
:
function
(
e
,
t
){
this
.
recordShow
=!
0
,
this
.
editRow
=
t
},
hideRecordDialog
:
function
(){
this
.
recordShow
=!
1
,
this
.
editRow
=
{}},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleEdit
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/createApi?projectId="
+
t
.
projectId
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleDown
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认将【"
+
t
.
version
+
"】版本的【"
+
a
.
$route
.
query
.
interfaceName
+
"】API下线吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDownData
(
e
,
t
)}).
catch
(
function
(){})},
postDownData
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
interfaceVersionId
:
t
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/offline-api"
,
o
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
l
.
a
.
showmsg
(
"下线成功"
,
"success"
),
void
a
.
getData
();
c
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getEnvData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/gateway-manage/list-all-scene"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
envOptions
=
a
.
result
||
[],
void
(
a
.
result
.
length
&&
(
e
.
sceneCode
=
a
.
result
[
0
].
sceneCode
,
e
.
getData
()));
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
sceneCode
:
e
.
sceneCode
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-version-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
a
.
result
.
result
.
length
&&
a
.
result
.
result
.
forEach
(
function
(
e
){
e
.
defaultFlag
=
1
==
e
.
defaultFlag
}),
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getEnvData
()}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"search-wrap m-b-20 flex flex-space-between"
},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入版本号"
},
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
(
"div"
,{
staticClass
:
"search-wrap-right"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeType
},
model
:{
value
:
e
.
sceneCode
,
callback
:
function
(
t
){
e
.
sceneCode
=
t
},
expression
:
"sceneCode"
}},
e
.
_l
(
e
.
envOptions
,
function
(
t
,
o
){
return
a
(
"el-radio-button"
,{
key
:
o
,
attrs
:{
label
:
t
.
sceneCode
}},[
e
.
_v
(
e
.
_s
(
t
.
sceneName
))])}))],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"version"
,
label
:
"版本号"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"status"
,
label
:
"状态"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
stateName
)
+
"
\
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
[
t
.
row
.
publishTime
?
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
publishTime
)))]):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
publishTime
?
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))]):
e
.
_e
()]}}])}),
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
.
updateTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
updateTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"默认版本"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
a
){
e
.
changeVersion
(
t
.
row
,
t
.
row
.
defaultFlag
)}},
model
:{
value
:
t
.
row
.
defaultFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"defaultFlag"
,
a
)},
expression
:
"scope.row.defaultFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"340"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
2
==
t
.
row
.
status
||
3
==
t
.
row
.
status
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handlePublish
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"发布"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleSync
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"同步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleShow
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"查看"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
2
!=
t
.
row
.
status
&&
3
!=
t
.
row
.
status
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDown
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"下线"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleRecord
(
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
(
"sync-set"
,{
attrs
:{
editRow
:
e
.
editRow
,
syncShow
:
e
.
syncShow
},
on
:{
hideSyncDialog
:
e
.
hideSyncDialog
}}),
e
.
_v
(
" "
),
a
(
"publish-set"
,{
attrs
:{
editRow
:
e
.
editRow
,
publishShow
:
e
.
publishShow
},
on
:{
hidePublishDialog
:
e
.
hidePublishDialog
}}),
e
.
_v
(
" "
),
a
(
"record-list"
,{
attrs
:{
editRow
:
e
.
editRow
,
recordShow
:
e
.
recordShow
},
on
:{
hideRecordDialog
:
e
.
hideRecordDialog
}})],
1
)},
staticRenderFns
:[]};
var
D
=
a
(
"VU/8"
)(
b
,
_
,
!
1
,
function
(
e
){
a
(
"JeX4"
)},
"data-v-3e4d34ee"
,
null
).
exports
,
C
=
{
name
:
"publish-list"
,
data
:
function
(){
return
{
navPath
:[{
name
:
"发布记录"
,
path
:
""
}],
searchValue
:
""
,
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
searchData
:
Object
(
w
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getData
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getData
()},
handleShow
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/apiListManageShow?interfaceId="
+
this
.
$route
.
query
.
interfaceId
+
"&interfaceName="
+
this
.
$route
.
query
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
r
.
a
)(
"/gateway-manage/page-api-publish-record"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
c
.
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
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
getData
()}),
e
.
$emit
(
"showTab"
,
4
)}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"发布版本"
,
"show-overflow-tooltip"
:
""
}}),
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
.
version
)
+
"
\
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
.
sceneName
)
+
"
\
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
.
remark
)
+
"
\
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
.
publishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
publishTime
)))])]}}])}),
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
.
handleShow
(
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
)])},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"xoiQ"
)},
"data-v-fb591996"
,
null
).
exports
,
x
=
{
name
:
"apiListManage"
,
components
:{
navBread
:
o
.
a
,
versionList
:
D
,
publishList
:
S
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
""
}],
activeName
:
"first"
}},
methods
:{
handleClick
:
function
(
e
,
t
){
console
.
log
(
e
,
t
);
"first"
==
e
.
name
?
this
.
$refs
.
versionList
.
getData
():
this
.
$refs
.
publishList
.
getData
()}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)}},
$
=
{
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
:
"api-tab-wrap"
},[
a
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"版本"
,
name
:
"first"
}},[
a
(
"version-list"
,{
ref
:
"versionList"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"发布记录"
,
name
:
"second"
}},[
a
(
"publish-list"
,{
ref
:
"publishList"
})],
1
)],
1
)],
1
)])])])},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
x
,
$
,
!
1
,
function
(
e
){
a
(
"BvdG"
)},
"data-v-32da2ee5"
,
null
);
t
.
default
=
I
.
exports
},
ripu
:
function
(
e
,
t
){},
xoiQ
:
function
(
e
,
t
){},
znuk
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
i
=
a
(
"Kkt8"
),
s
=
a
(
"P9l9"
),
r
=
a
(
"TUB1"
),
l
=
a
(
"LlAa"
),
c
=
{
name
:
"publish-set"
,
components
:{
limitTextarea
:
i
.
a
},
props
:{
publishShow
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
interfaceVersionId
:
""
,
version
:
""
,
status
:
""
,
description
:
""
,
proxyType
:
""
,
defaultFlag
:
!
1
,
sceneCode
:
""
,
sceneName
:
""
,
remark
:
""
},
rules
:{}}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hidePublishDialog"
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
interfaceVersionId
:
e
.
formData
.
interfaceVersionId
,
defaultFlag
:
e
.
formData
.
defaultFlag
?
"1"
:
"0"
,
remark
:
e
.
formData
.
remark
};
Object
(
s
.
a
)(
"/gateway-manage/publish-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
r
.
a
.
showmsg
(
"发布成功"
,
"success"
),
void
e
.
setData
();
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
this
.
$emit
(
"hidePublishDialog"
,
!
0
)}},
watch
:{
publishShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
this
.
formData
=
JSON
.
parse
(
n
()(
e
)),
this
.
formData
.
defaultFlag
=
1
==
e
.
defaultFlag
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
n
()(
this
.
editRow
)),
this
.
formData
.
defaultFlag
=
1
==
this
.
editRow
.
defaultFlag
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"发布"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-form"
,{
ref
:
"publishForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"160px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
$route
.
query
.
interfaceName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发布环境:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
sceneName
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置为默认版本:"
}},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
model
:{
value
:
e
.
formData
.
defaultFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"defaultFlag"
,
t
)},
expression
:
"formData.defaultFlag"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"备注:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
370
,
inputValue
:
e
.
formData
.
remark
,
holder
:
"请输入备注内容"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"remark"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
staticStyle
:{
"padding-bottom"
:
"10px"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
customCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
customConfirm
(
"publishForm"
)}}},[
e
.
_v
(
"发 布"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"ripu"
)},
"data-v-68ac51f7"
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
f6e197f7e6d0cc0a66a0
.js
→
dist/static/js/manifest.
1826802bf9a83f92cca5
.js
View file @
61205552
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
d
=
r
[
i
],
t
[
d
]
&&
u
.
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
);
u
.
length
;)
u
.
shift
()();
if
(
c
)
for
(
i
=
0
;
i
<
c
.
length
;
i
++
)
b
=
a
(
a
.
s
=
c
[
i
]);
return
b
};
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
:
"a95a7014ffe2b8e8dbaf"
,
3
:
"94ac3deb1b736ce3651d"
,
4
:
"2e73022dc0588fa75499"
,
5
:
"e704f35bae2785ada05b"
,
6
:
"38bb4eb7a29698fb12bf"
,
7
:
"6c3d409359dc37c88d9a"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"dc8fbf21ddf73ccd4879"
,
18
:
"37321ffca9347a60b988"
}[
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
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
b
,
d
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
b
=
r
[
i
],
t
[
b
]
&&
u
.
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
);
u
.
length
;)
u
.
shift
()();
if
(
c
)
for
(
i
=
0
;
i
<
c
.
length
;
i
++
)
d
=
a
(
a
.
s
=
c
[
i
]);
return
d
};
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
:
"a95a7014ffe2b8e8dbaf"
,
3
:
"2692c23acc912c5b01b7"
,
4
:
"2b8e2d0693f544b00f13"
,
5
:
"e704f35bae2785ada05b"
,
6
:
"38bb4eb7a29698fb12bf"
,
7
:
"6c3d409359dc37c88d9a"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"dc8fbf21ddf73ccd4879"
,
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
src/components/api/api-version-show.vue
View file @
61205552
...
...
@@ -9,8 +9,8 @@ import apiVersionShow from '@/components/api/api-version-show.vue';
<div
class=
"operate-btns"
>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handlePublish"
>
发布
</el-button>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handleDel"
>
删除
</el-button>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handleGoHistory"
>
回
退
</el-button>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handleGoBack"
>
回
滚
</el-button>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handleGoHistory"
>
回
滚
</el-button>
<el-button
:disabled=
"apiData.status == 2 || apiData.status == 3"
type=
"primary"
plain
@
click=
"handleGoBack"
>
回
退
</el-button>
</div>
<div
class=
"anchor-wrap"
>
<div
class=
"el-tabs el-tabs--right"
>
...
...
src/components/api/version-list.vue
View file @
61205552
...
...
@@ -13,13 +13,14 @@
<div
class=
"table-wrap"
>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"version"
label=
"版本号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"
发布
状态"
show-overflow-tooltip
>
<el-table-column
prop=
"status"
label=
"状态"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status == 0"
>
删除
</span>
<
!--
<
span
v-if=
"scope.row.status == 0"
>
删除
</span>
<span
v-if=
"scope.row.status == 1"
>
更新修改
</span>
<span
v-if=
"scope.row.status == 2"
>
发布
</span>
<span
v-if=
"scope.row.status == 3"
>
历史发布版本
</span>
<span
v-if=
"scope.row.status == 4"
>
下线
</span>
<span
v-if=
"scope.row.status == 4"
>
下线
</span>
-->
{{
scope
.
row
.
stateName
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
show-overflow-tooltip
>
...
...
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