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
ae4633e9
Commit
ae4633e9
authored
Sep 03, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改版本列表样式
parent
0baa9814
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
index.html
dist/index.html
+2
-2
app.aff71585276c689f573a8997312ad3d4.css
dist/static/css/app.aff71585276c689f573a8997312ad3d4.css
+0
-0
4.35b03027aaa8760cc312.js
dist/static/js/4.35b03027aaa8760cc312.js
+2
-2
manifest.59f552132666bbb1a5a1.js
dist/static/js/manifest.59f552132666bbb1a5a1.js
+2
-2
version-list.vue
src/components/api/version-list.vue
+1
-1
No files found.
dist/index.html
View file @
ae4633e9
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.2a2518cf9b48594eca0b951369302bda.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.51e11b2c27f8849f4eaa.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.a05302b1289703418c5a.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.aff71585276c689f573a8997312ad3d4.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.59f552132666bbb1a5a1.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.a05302b1289703418c5a.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
2a2518cf9b48594eca0b951369302bda
.css
→
dist/static/css/app.
aff71585276c689f573a8997312ad3d4
.css
View file @
ae4633e9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/4.
7d9d386328f0b06f785e
.js
→
dist/static/js/4.
35b03027aaa8760cc312
.js
View file @
ae4633e9
webpackJsonp
([
4
],{
BvdG
:
function
(
e
,
t
){},
ERj7
:
function
(
e
,
t
){},
FnXo
:
function
(
e
,
t
){},
Hvnz
:
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
f
=
a
(
"VU/8"
)(
u
,
d
,
!
1
,
function
(
e
){
a
(
"Hvnz"
)},
"data-v-2e7c53b8"
,
null
).
exports
,
h
=
a
(
"fZjL"
),
m
=
a
.
n
(
h
),
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?editFlag=0&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
(
"FnXo"
)},
"data-v-ff18cc42"
,
null
).
exports
,
w
=
a
(
"jvWE"
),
b
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
f
,
recordList
:
v
},
data
:
function
(){
return
{
searchValue
:
""
,
status
:
""
,
statusOptions
:[{
label
:
"所有发布状态"
,
value
:
""
},{
label
:
"待发布"
,
value
:
"1"
},{
label
:
"发布"
,
value
:
"2"
},{
label
:
"下线"
,
value
:
"4"
},{
label
:
"上线"
,
value
:
"5"
}],
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
()},
changeStatus
:
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?editFlag=1&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
})})},
handleUp
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认将【"
+
t
.
version
+
"】版本的【"
+
a
.
$route
.
query
.
interfaceName
+
"】API上线吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postUpData
(
e
,
t
)}).
catch
(
function
(){})},
postUpData
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
interfaceVersionId
:
t
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/online-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
,
status
:
e
.
status
,
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
(
"div"
,{
staticClass
:
"font-0"
},[
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
(
"el-select"
,{
staticClass
:
"w-137"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeStatus
},
model
:{
value
:
e
.
status
,
callback
:
function
(
t
){
e
.
status
=
t
},
expression
:
"status"
}},
e
.
_l
(
e
.
statusOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
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
)]),
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
&&
1
!=
t
.
row
.
updateAfterPublish
||
4
==
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
(
" "
),
5
==
t
.
row
.
status
||
t
.
row
.
status
<
4
?
a
(
"el-button"
,{
attrs
:{
disabled
:
2
!=
t
.
row
.
status
&&
1
!=
t
.
row
.
updateAfterPublish
||
2
==
t
.
row
.
status
&&
1
==
t
.
row
.
updateAfterPublish
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDown
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"下线"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
status
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleUp
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"上线"
)]):
e
.
_e
(),
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
(
"w57+"
)},
"data-v-9b7134cc"
,
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?editFlag=0&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
(
"ERj7"
)},
"data-v-1c2b7d8c"
,
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
){},
"w57+"
:
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
){},
ERj7
:
function
(
e
,
t
){},
FnXo
:
function
(
e
,
t
){},
Hvnz
:
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
f
=
a
(
"VU/8"
)(
u
,
d
,
!
1
,
function
(
e
){
a
(
"Hvnz"
)},
"data-v-2e7c53b8"
,
null
).
exports
,
h
=
a
(
"fZjL"
),
m
=
a
.
n
(
h
),
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?editFlag=0&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
(
"FnXo"
)},
"data-v-ff18cc42"
,
null
).
exports
,
b
=
a
(
"jvWE"
),
w
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
f
,
recordList
:
v
},
data
:
function
(){
return
{
searchValue
:
""
,
status
:
""
,
statusOptions
:[{
label
:
"所有发布状态"
,
value
:
""
},{
label
:
"待发布"
,
value
:
"1"
},{
label
:
"发布"
,
value
:
"2"
},{
label
:
"下线"
,
value
:
"4"
},{
label
:
"上线"
,
value
:
"5"
}],
sceneCode
:
""
,
envOptions
:[],
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
syncShow
:
!
1
,
editRow
:{},
publishShow
:
!
1
,
recordShow
:
!
1
}},
methods
:{
searchData
:
Object
(
b
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getData
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getData
()},
changeStatus
:
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?editFlag=1&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
})})},
handleUp
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认将【"
+
t
.
version
+
"】版本的【"
+
a
.
$route
.
query
.
interfaceName
+
"】API上线吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postUpData
(
e
,
t
)}).
catch
(
function
(){})},
postUpData
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
interfaceVersionId
:
t
.
interfaceVersionId
};
Object
(
r
.
a
)(
"/gateway-manage/online-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
,
status
:
e
.
status
,
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
(
"div"
,{
staticClass
:
"font-0"
},[
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
(
"el-select"
,{
staticClass
:
"w-137 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeStatus
},
model
:{
value
:
e
.
status
,
callback
:
function
(
t
){
e
.
status
=
t
},
expression
:
"status"
}},
e
.
_l
(
e
.
statusOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
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
)]),
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
&&
1
!=
t
.
row
.
updateAfterPublish
||
4
==
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
(
" "
),
5
==
t
.
row
.
status
||
t
.
row
.
status
<
4
?
a
(
"el-button"
,{
attrs
:{
disabled
:
2
!=
t
.
row
.
status
&&
1
!=
t
.
row
.
updateAfterPublish
||
2
==
t
.
row
.
status
&&
1
==
t
.
row
.
updateAfterPublish
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDown
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"下线"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
status
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleUp
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"上线"
)]):
e
.
_e
(),
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"
)(
w
,
_
,
!
1
,
function
(
e
){
a
(
"xNqL"
)},
"data-v-bc70afbc"
,
null
).
exports
,
C
=
{
name
:
"publish-list"
,
data
:
function
(){
return
{
navPath
:[{
name
:
"发布记录"
,
path
:
""
}],
searchValue
:
""
,
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
}},
methods
:{
searchData
:
Object
(
b
.
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?editFlag=0&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
(
"ERj7"
)},
"data-v-1c2b7d8c"
,
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
){},
xNqL
:
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.5
1e11b2c27f8849f4eaa
.js
→
dist/static/js/manifest.5
9f552132666bbb1a5a1
.js
View file @
ae4633e9
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
d
,
f
,
b
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
f
=
r
[
i
],
t
[
f
]
&&
u
.
push
(
t
[
f
][
0
]),
t
[
f
]
=
0
;
for
(
d
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
d
)
&&
(
e
[
d
]
=
o
[
d
]);
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
:
"f7b40d30dd54af098711"
,
3
:
"dbddad1d5a0a84036c3d"
,
4
:
"7d9d386328f0b06f785e"
,
5
:
"8dade12caa32853912f4"
,
6
:
"7e47fc9750107d0d7600"
,
7
:
"6e98bf19e73d647ed2c5"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"cb7b875c24b40e9cb6e0"
,
16
:
"4da3a9b34b0474c33a18"
,
17
:
"3d53e5aa355f2b62e040"
,
18
:
"23893b252dcbd71cee7b"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
f
,
12
e4
);
function
f
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
d
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
f
,
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
d
,
f
,
b
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
f
=
r
[
i
],
t
[
f
]
&&
u
.
push
(
t
[
f
][
0
]),
t
[
f
]
=
0
;
for
(
d
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
d
)
&&
(
e
[
d
]
=
o
[
d
]);
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
:
"f7b40d30dd54af098711"
,
3
:
"dbddad1d5a0a84036c3d"
,
4
:
"35b03027aaa8760cc312"
,
5
:
"8dade12caa32853912f4"
,
6
:
"7e47fc9750107d0d7600"
,
7
:
"6e98bf19e73d647ed2c5"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"cb7b875c24b40e9cb6e0"
,
16
:
"4da3a9b34b0474c33a18"
,
17
:
"3d53e5aa355f2b62e040"
,
18
:
"23893b252dcbd71cee7b"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
f
,
12
e4
);
function
f
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
d
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
f
,
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/version-list.vue
View file @
ae4633e9
...
...
@@ -5,7 +5,7 @@
<el-input
clearable
class=
"w-320"
placeholder=
"请输入版本号"
v-model=
"searchValue"
@
keyup
.
native=
"value => searchData(value)"
@
clear=
"clearInput"
>
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
<el-select
class=
"w-137"
v-model=
"status"
placeholder=
"请选择"
@
change=
"changeStatus"
>
<el-select
class=
"w-137
m-l-10
"
v-model=
"status"
placeholder=
"请选择"
@
change=
"changeStatus"
>
<el-option
v-for=
"item in statusOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
...
...
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