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
6adea86b
Commit
6adea86b
authored
Aug 26, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改状态
parent
81386dae
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
7 deletions
+11
-7
index.html
dist/index.html
+2
-2
app.830771971ce48f0b1d67d9f27b253e5a.css
dist/static/css/app.830771971ce48f0b1d67d9f27b253e5a.css
+0
-0
4.631b25c463575bd81d50.js
dist/static/js/4.631b25c463575bd81d50.js
+0
-2
4.e12daa36870d5aecb075.js
dist/static/js/4.e12daa36870d5aecb075.js
+2
-0
manifest.468129a3e1b8ac0bbce2.js
dist/static/js/manifest.468129a3e1b8ac0bbce2.js
+2
-2
version-list.vue
src/components/api/version-list.vue
+5
-1
No files found.
dist/index.html
View file @
6adea86b
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.debf5d04ebba355cf7f3a86e59f4c950.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.9725295920a49fcd8942.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.a694984211672b188ddc.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.830771971ce48f0b1d67d9f27b253e5a.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.468129a3e1b8ac0bbce2.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.a694984211672b188ddc.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
debf5d04ebba355cf7f3a86e59f4c950
.css
→
dist/static/css/app.
830771971ce48f0b1d67d9f27b253e5a
.css
View file @
6adea86b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/4.631b25c463575bd81d50.js
deleted
100644 → 0
View file @
81386dae
webpackJsonp
([
4
],{
"7DFZ"
:
function
(
e
,
t
){},
BvdG
:
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?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
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
(
"jz2W"
)},
"data-v-3ece702d"
,
null
).
exports
,
w
=
a
(
"jvWE"
),
b
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
f
,
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
.
status
)
+
"
\
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
(
"ypql"
)},
"data-v-4671edfc"
,
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
)},
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
(
"7DFZ"
)},
"data-v-5c6aac2c"
,
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
k
=
a
(
"VU/8"
)(
x
,
$
,
!
1
,
function
(
e
){
a
(
"BvdG"
)},
"data-v-32da2ee5"
,
null
);
t
.
default
=
k
.
exports
},
jz2W
:
function
(
e
,
t
){},
ripu
:
function
(
e
,
t
){},
ypql
:
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/4.e12daa36870d5aecb075.js
0 → 100644
View file @
6adea86b
webpackJsonp
([
4
],{
"7DFZ"
:
function
(
e
,
t
){},
BvdG
:
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
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?interfaceId="
+
t
.
interfaceId
+
"&interfaceName="
+
t
.
interfaceName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
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
(
"jz2W"
)},
"data-v-3ece702d"
,
null
).
exports
,
w
=
a
(
"jvWE"
),
b
=
{
name
:
"env-set-list"
,
components
:{
publishSet
:
n
.
a
,
syncSet
:
f
,
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
)},
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
(
"7DFZ"
)},
"data-v-5c6aac2c"
,
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
k
=
a
(
"VU/8"
)(
x
,
$
,
!
1
,
function
(
e
){
a
(
"BvdG"
)},
"data-v-32da2ee5"
,
null
);
t
.
default
=
k
.
exports
},
jz2W
:
function
(
e
,
t
){},
ripu
:
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.
9725295920a49fcd894
2.js
→
dist/static/js/manifest.
468129a3e1b8ac0bbce
2.js
View file @
6adea86b
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
b
,
i
,
u
=
0
,
d
=
[];
u
<
r
.
length
;
u
++
)
b
=
r
[
u
],
t
[
b
]
&&
d
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
d
.
length
;)
d
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
a
.
nc
&&
c
.
setAttribute
(
"nonce"
,
a
.
nc
),
c
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"7fc6c6515982425ab5a5"
,
3
:
"9d8da2e9b9ec2f268553"
,
4
:
"631b25c463575bd81d50"
,
5
:
"e704f35bae2785ada05b"
,
6
:
"38bb4eb7a29698fb12bf"
,
7
:
"6c3d409359dc37c88d9a"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"e62b18c3390fbbef65a6"
,
18
:
"37321ffca9347a60b988"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
b
,
12
e4
);
function
b
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
b
,
o
.
appendChild
(
c
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
b
,
i
,
u
=
0
,
d
=
[];
u
<
r
.
length
;
u
++
)
b
=
r
[
u
],
t
[
b
]
&&
d
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
d
.
length
;)
d
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
a
.
nc
&&
c
.
setAttribute
(
"nonce"
,
a
.
nc
),
c
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"7fc6c6515982425ab5a5"
,
3
:
"9d8da2e9b9ec2f268553"
,
4
:
"e12daa36870d5aecb075"
,
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
:
"e62b18c3390fbbef65a6"
,
18
:
"37321ffca9347a60b988"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
b
,
12
e4
);
function
b
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
b
,
o
.
appendChild
(
c
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/api/version-list.vue
View file @
6adea86b
...
...
@@ -15,7 +15,11 @@
<el-table-column
prop=
"version"
label=
"版本号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"发布状态"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
status
}}
<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>
</
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