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
a644f533
Commit
a644f533
authored
Oct 21, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改参数
parent
f55010df
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
index.html
dist/index.html
+2
-2
app.ac30273c97224ee2d5175af3ffbb096f.css
dist/static/css/app.ac30273c97224ee2d5175af3ffbb096f.css
+0
-0
5.842d518baa251c8fedc4.js
dist/static/js/5.842d518baa251c8fedc4.js
+2
-0
5.f02293cf72bd2cfd95f2.js
dist/static/js/5.f02293cf72bd2cfd95f2.js
+0
-2
manifest.469f6f341315d7fd7867.js
dist/static/js/manifest.469f6f341315d7fd7867.js
+2
-0
manifest.65500fe516342718439d.js
dist/static/js/manifest.65500fe516342718439d.js
+0
-2
No files found.
dist/index.html
View file @
a644f533
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.6e71c9fbcca5be2e040c0c7e57b8e539.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.15.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js
></script><script
type=
text/javascript
src=
./static/js/manifest.65500fe516342718439d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.154c36bdc57283833b6b.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.ac30273c97224ee2d5175af3ffbb096f.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.15.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js
></script><script
type=
text/javascript
src=
./static/js/manifest.469f6f341315d7fd7867.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.154c36bdc57283833b6b.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
6e71c9fbcca5be2e040c0c7e57b8e539
.css
→
dist/static/css/app.
ac30273c97224ee2d5175af3ffbb096f
.css
View file @
a644f533
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/5.842d518baa251c8fedc4.js
0 → 100644
View file @
a644f533
webpackJsonp
([
5
],{
Hvnz
:
function
(
e
,
t
){},
IvlK
:
function
(
e
,
t
){},
RPCm
:
function
(
e
,
t
){},
aXU0
:
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"
),
r
=
a
.
n
(
i
),
s
=
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
(
s
.
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
(
s
.
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
(
r
()(
e
))}},
mounted
:
function
(){
this
.
getEnvData
(),
this
.
customDialog
=
this
.
syncShow
,
this
.
formData
=
JSON
.
parse
(
r
()(
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
)},
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
(
s
.
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
(
r
()(
e
)),
m
()(
e
).
length
&&
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
recordShow
,
this
.
formData
=
JSON
.
parse
(
r
()(
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
(
"aXU0"
)},
"data-v-18fba535"
,
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
(
s
.
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleEdit
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/createApi?projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&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
(
s
.
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
(
s
.
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
(
s
.
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
&&
(
a
.
result
.
forEach
(
function
(
t
){
1
==
t
.
defaultFlag
&&
(
e
.
sceneCode
=
t
.
sceneCode
)}),
e
.
$nextTick
(
function
(){
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
(
s
.
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
,
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
(
"IvlK"
)},
"data-v-599a24f8"
,
null
).
exports
,
y
=
{
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
s
.
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
)}},
C
=
{
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"
)(
y
,
C
,
!
1
,
function
(
e
){
a
(
"RPCm"
)},
"data-v-1c63b1ba"
,
null
).
exports
,
$
=
{
name
:
"apiListManage"
,
components
:{
navBread
:
o
.
a
,
versionList
:
D
,
publishList
:
S
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
this
.
$route
.
query
.
projectName
?
this
.
$route
.
query
.
projectName
+
"项目列表"
:
""
,
path
:
"/apiProgramGroup"
},{
name
:
this
.
$route
.
query
.
interfaceGroupName
?
this
.
$route
.
query
.
interfaceGroupName
+
"分组列表"
:
""
,
path
:
"/groupApiList"
},{
name
:
this
.
$route
.
query
.
interfaceName
?
""
+
this
.
$route
.
query
.
interfaceName
:
""
,
path
:
"/apiListManage"
},{
name
:
"管理"
,
path
:
""
}],
activeName
:
"first"
}},
methods
:{
handleClick
:
function
(
e
,
t
){
"first"
==
e
.
name
?
this
.
$refs
.
versionList
.
getData
():
this
.
$refs
.
publishList
.
getData
()},
getNavBarData
:
function
(){
var
e
=
this
,
t
=
{
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
s
.
a
)(
"/gateway-manage/get-bar"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
errMsg
.
errorMsg
(
a
):
e
.
navPath
=
[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
""
}]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
21
)}},
x
=
{
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
(
"fxvE"
)},
"data-v-750fa0e6"
,
null
);
t
.
default
=
I
.
exports
},
fxvE
:
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"
),
r
=
a
(
"P9l9"
),
s
=
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
(
r
.
a
)(
"/gateway-manage/publish-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
s
.
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/5.f02293cf72bd2cfd95f2.js
deleted
100644 → 0
View file @
f55010df
webpackJsonp
([
5
],{
Hvnz
:
function
(
e
,
t
){},
IvlK
:
function
(
e
,
t
){},
RPCm
:
function
(
e
,
t
){},
V5hO
:
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"
),
r
=
a
.
n
(
i
),
s
=
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
(
s
.
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
(
s
.
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
(
r
()(
e
))}},
mounted
:
function
(){
this
.
getEnvData
(),
this
.
customDialog
=
this
.
syncShow
,
this
.
formData
=
JSON
.
parse
(
r
()(
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
)},
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
(
s
.
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
(
r
()(
e
)),
m
()(
e
).
length
&&
this
.
getData
()}},
mounted
:
function
(){
this
.
customDialog
=
this
.
publishShow
,
this
.
formData
=
JSON
.
parse
(
r
()(
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
(
"V5hO"
)},
"data-v-1d732ad1"
,
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
(
s
.
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
)},
handleEdit
:
function
(
e
,
t
){
this
.
$router
.
push
(
"/createApi?projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&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
(
s
.
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
(
s
.
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
(
s
.
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
&&
(
a
.
result
.
forEach
(
function
(
t
){
1
==
t
.
defaultFlag
&&
(
e
.
sceneCode
=
t
.
sceneCode
)}),
e
.
$nextTick
(
function
(){
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
(
s
.
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
,
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
(
"IvlK"
)},
"data-v-599a24f8"
,
null
).
exports
,
y
=
{
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
+
"&projectId="
+
t
.
projectId
+
"&projectName="
+
this
.
$route
.
query
.
projectName
+
"&interfaceGroupId="
+
t
.
interfaceGroupId
+
"&interfaceGroupName="
+
this
.
$route
.
query
.
interfaceGroupName
+
"&interfaceVersionId="
+
t
.
interfaceVersionId
+
"&publishRecordId="
+
t
.
publishRecordId
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
s
.
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
)}},
C
=
{
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"
)(
y
,
C
,
!
1
,
function
(
e
){
a
(
"RPCm"
)},
"data-v-1c63b1ba"
,
null
).
exports
,
$
=
{
name
:
"apiListManage"
,
components
:{
navBread
:
o
.
a
,
versionList
:
D
,
publishList
:
S
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
this
.
$route
.
query
.
projectName
?
this
.
$route
.
query
.
projectName
+
"项目列表"
:
""
,
path
:
"/apiProgramGroup"
},{
name
:
this
.
$route
.
query
.
interfaceGroupName
?
this
.
$route
.
query
.
interfaceGroupName
+
"分组列表"
:
""
,
path
:
"/groupApiList"
},{
name
:
this
.
$route
.
query
.
interfaceName
?
""
+
this
.
$route
.
query
.
interfaceName
:
""
,
path
:
"/apiListManage"
},{
name
:
"管理"
,
path
:
""
}],
activeName
:
"first"
}},
methods
:{
handleClick
:
function
(
e
,
t
){
"first"
==
e
.
name
?
this
.
$refs
.
versionList
.
getData
():
this
.
$refs
.
publishList
.
getData
()},
getNavBarData
:
function
(){
var
e
=
this
,
t
=
{
interfaceId
:
e
.
$route
.
query
.
interfaceId
};
Object
(
s
.
a
)(
"/gateway-manage/get-bar"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
"0000"
!=
a
.
code
?
errMsg
.
errorMsg
(
a
):
e
.
navPath
=
[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
"管理"
,
path
:
""
}]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
21
)}},
x
=
{
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
(
"fxvE"
)},
"data-v-750fa0e6"
,
null
);
t
.
default
=
I
.
exports
},
fxvE
:
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"
),
r
=
a
(
"P9l9"
),
s
=
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
(
r
.
a
)(
"/gateway-manage/publish-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
s
.
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.469f6f341315d7fd7867.js
0 → 100644
View file @
a644f533
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
o
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
f
)
&&
(
e
[
f
]
=
c
[
f
]);
for
(
n
&&
n
(
r
,
c
,
o
);
b
.
length
;)
b
.
shift
()();
if
(
o
)
for
(
u
=
0
;
u
<
o
.
length
;
u
++
)
i
=
a
(
a
.
s
=
o
[
u
]);
return
i
};
var
r
=
{},
t
=
{
24
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
a
.
nc
&&
o
.
setAttribute
(
"nonce"
,
a
.
nc
),
o
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52863aa1d72d31066413"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"e15d500cb69741920d46"
,
3
:
"67ea89e5dfb21df3acd0"
,
4
:
"dc37e918bcb2ad0360d1"
,
5
:
"842d518baa251c8fedc4"
,
6
:
"52e14b1f79af7d86f42f"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"81460c8c66d06cfea732"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"915ed31249867849353a"
,
17
:
"f25417e1883c9c1447d8"
,
18
:
"1bdfcff9439ca81fcf5a"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
d
,
c
.
appendChild
(
o
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
dist/static/js/manifest.65500fe516342718439d.js
deleted
100644 → 0
View file @
f55010df
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
a
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
a
);
b
.
length
;)
b
.
shift
()();
if
(
a
)
for
(
u
=
0
;
u
<
a
.
length
;
u
++
)
i
=
c
(
c
.
s
=
a
[
u
]);
return
i
};
var
r
=
{},
t
=
{
24
:
0
};
function
c
(
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
,
c
),
t
.
l
=!
0
,
t
.
exports
}
c
.
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
,
c
){
n
=
t
[
e
]
=
[
r
,
c
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
c
.
nc
&&
a
.
setAttribute
(
"nonce"
,
c
.
nc
),
a
.
src
=
c
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52863aa1d72d31066413"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"e15d500cb69741920d46"
,
3
:
"67ea89e5dfb21df3acd0"
,
4
:
"dc37e918bcb2ad0360d1"
,
5
:
"f02293cf72bd2cfd95f2"
,
6
:
"52e14b1f79af7d86f42f"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"81460c8c66d06cfea732"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"915ed31249867849353a"
,
17
:
"f25417e1883c9c1447d8"
,
18
:
"1bdfcff9439ca81fcf5a"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
d
,
o
.
appendChild
(
a
),
r
},
c
.
m
=
e
,
c
.
c
=
r
,
c
.
d
=
function
(
e
,
n
,
r
){
c
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
c
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
c
.
d
(
n
,
"a"
,
n
),
n
},
c
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
c
.
p
=
"./"
,
c
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
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