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
9d4e951b
Commit
9d4e951b
authored
Jun 09, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改状态码和日志
parent
97264499
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
index.html
dist/index.html
+2
-2
app.bd3bdff56164c42d6416416c2a4724a0.css
dist/static/css/app.bd3bdff56164c42d6416416c2a4724a0.css
+0
-0
11.38f74d542adf9dc766e3.js
dist/static/js/11.38f74d542adf9dc766e3.js
+2
-0
11.a856aed440077049c707.js
dist/static/js/11.a856aed440077049c707.js
+0
-2
manifest.bccbdb8613f8b9b9c5f8.js
dist/static/js/manifest.bccbdb8613f8b9b9c5f8.js
+2
-2
error-code-edit.vue
src/components/error/error-code-edit.vue
+1
-1
No files found.
dist/index.html
View file @
9d4e951b
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.7300d05a7cf6ade668c124362a83d8e6.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.10250307e08881275aaa.js
></script><script
type=
text/javascript
src=
./static/js/vendor.289e40671dbfc6af0fe7.js
></script><script
type=
text/javascript
src=
./static/js/app.53e4e5cac4cc823e38d9.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.bd3bdff56164c42d6416416c2a4724a0.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.bccbdb8613f8b9b9c5f8.js
></script><script
type=
text/javascript
src=
./static/js/vendor.289e40671dbfc6af0fe7.js
></script><script
type=
text/javascript
src=
./static/js/app.53e4e5cac4cc823e38d9.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
7300d05a7cf6ade668c124362a83d8e6
.css
→
dist/static/css/app.
bd3bdff56164c42d6416416c2a4724a0
.css
View file @
9d4e951b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/11.38f74d542adf9dc766e3.js
0 → 100644
View file @
9d4e951b
webpackJsonp
([
11
],{
"/LXL"
:
function
(
e
,
t
){},
KQMn
:
function
(
e
,
t
){},
SGyq
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
i
=
a
(
"fZjL"
),
s
=
a
.
n
(
i
),
l
=
a
(
"P9l9"
),
c
=
a
(
"TUB1"
),
d
=
a
(
"LlAa"
),
u
=
{
name
:
"error-code-edit"
,
props
:{
showDialog
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
errorSettingId
:
""
,
interfaceName
:
""
,
projectAndGroup
:
""
,
errorCode
:
""
,
errorInfo
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
errorSettingId
:
""
,
interfaceName
:
""
,
projectAndGroup
:
""
,
errorCode
:
""
,
errorInfo
:
""
},
rules
:{
errorCode
:[{
required
:
!
0
,
message
:
"请输入错误码"
,
trigger
:
"blur"
}],
errorInfo
:[{
required
:
!
0
,
message
:
"请输入错误消息"
,
trigger
:
"blur"
}]}}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
formData
.
errorCode
=
""
,
this
.
formData
.
errorInfo
=
""
,
this
.
$emit
(
"hideDialog"
,
""
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
t
.
formData
.
errorCode
=
t
.
formData
.
errorCode
?
String
(
t
.
formData
.
errorCode
).
replace
(
/
\s
+/g
,
""
):
""
,
t
.
formData
.
errorInfo
=
t
.
formData
.
errorInfo
?
String
(
t
.
formData
.
errorInfo
).
replace
(
/
\s
+/g
,
""
):
""
,
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
errorSettingId
:
e
.
formData
.
errorSettingId
,
errorCode
:
e
.
formData
.
errorCode
,
errorInfo
:
e
.
formData
.
errorInfo
};
Object
(
l
.
b
)(
e
.
editRow
.
errorSettingId
?
"/gateway-manage/update-error-setting"
:
"/gateway-manage/create-error-setting"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
c
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
setData
();
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
var
t
=
this
;
t
.
$emit
(
"hideDialog"
,
t
.
formData
),
t
.
$nextTick
(
function
(){
t
.
formData
.
errorCode
=
""
,
t
.
formData
.
errorInfo
=
""
})}},
watch
:{
showDialog
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
s
()(
e
).
length
&&
(
this
.
formData
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
this
.
customDialog
=
this
.
showDialog
,
s
()(
this
.
editRow
).
length
&&
(
this
.
formData
=
JSON
.
parse
(
n
()(
this
.
editRow
)))}},
f
=
{
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
:
"errorCodeForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"116px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误码:"
,
prop
:
"errorCode"
}},[
a
(
"el-input"
,{
attrs
:{
disabled
:
!!
e
.
formData
.
errorSettingId
},
model
:{
value
:
e
.
formData
.
errorCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"errorCode"
,
t
)},
expression
:
"formData.errorCode"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误消息:"
,
prop
:
"errorCode"
}},[
a
(
"el-input"
,{
model
:{
value
:
e
.
formData
.
errorInfo
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"errorInfo"
,
t
)},
expression
:
"formData.errorInfo"
}})],
1
),
e
.
_v
(
" "
),
e
.
formData
.
interfaceName
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"使用的接口名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
interfaceName
)
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
formData
.
projectAndGroup
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"使用的项目分组:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
projectAndGroup
)
+
"
\
n "
)]):
e
.
_e
()],
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
(
"errorCodeForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"KQMn"
)},
"data-v-d9a98e66"
,
null
).
exports
,
h
=
a
(
"jvWE"
),
m
=
{
name
:
"errorCode"
,
components
:{
navBread
:
r
.
a
,
errorCodeEdit
:
g
},
data
:
function
(){
return
{
navPath
:[{
name
:
"错误码"
,
path
:
""
}],
searchValue
:
""
,
loading
:
!
0
,
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
showDialog
:
!
1
,
editIndex
:
""
,
editRow
:{}}},
methods
:{
searchData
:
Object
(
h
.
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
()},
handleEdit
:
function
(
e
,
t
){
this
.
editIndex
=
e
,
this
.
editRow
=
t
,
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
!
e
)
return
this
.
editIndex
=
""
,
this
.
editRow
=
{},
this
.
showDialog
=!
1
,
!
1
;
this
.
currentPage
,
this
.
getData
(),
this
.
editIndex
=
""
,
this
.
editRow
=
{},
this
.
showDialog
=!
1
,
this
.
$forceUpdate
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
errorSettingId
:
t
.
errorSettingId
};
Object
(
l
.
b
)(
"/gateway-manage/delete-error-setting"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
c
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getData
();
d
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
l
.
b
)(
"/gateway-manage/page-error-setting"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
6
),
this
.
getData
()}},
p
=
{
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
:
"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
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
handleEdit
}},[
e
.
_v
(
"新建错误码"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
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
.
errorCode
)
+
"
\
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
.
errorInfo
)
+
"
\
n "
)]}}])}),
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
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
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
(
"error-code-edit"
,{
attrs
:{
editRow
:
e
.
editRow
,
showDialog
:
e
.
showDialog
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
m
,
p
,
!
1
,
function
(
e
){
a
(
"/LXL"
)},
"data-v-69fb3db4"
,
null
);
t
.
default
=
v
.
exports
}});
\ No newline at end of file
dist/static/js/11.a856aed440077049c707.js
deleted
100644 → 0
View file @
97264499
webpackJsonp
([
11
],{
"/LXL"
:
function
(
e
,
t
){},
SGyq
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
i
=
a
(
"fZjL"
),
s
=
a
.
n
(
i
),
l
=
a
(
"P9l9"
),
c
=
a
(
"TUB1"
),
d
=
a
(
"LlAa"
),
u
=
{
name
:
"error-code-edit"
,
props
:{
showDialog
:{
type
:
Boolean
,
default
:
!
1
},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{
errorSettingId
:
""
,
interfaceName
:
""
,
projectAndGroup
:
""
,
errorCode
:
""
,
errorInfo
:
""
}}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
formData
:{
errorSettingId
:
""
,
interfaceName
:
""
,
projectAndGroup
:
""
,
errorCode
:
""
,
errorInfo
:
""
},
rules
:{
errorCode
:[{
required
:
!
0
,
message
:
"请输入错误码"
,
trigger
:
"blur"
}],
errorInfo
:[{
required
:
!
0
,
message
:
"请输入错误消息"
,
trigger
:
"blur"
}]}}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
formData
.
errorCode
=
""
,
this
.
formData
.
errorInfo
=
""
,
this
.
$emit
(
"hideDialog"
,
""
)},
customConfirm
:
function
(
e
){
var
t
=
this
;
t
.
formData
.
errorCode
=
t
.
formData
.
errorCode
?
String
(
t
.
formData
.
errorCode
).
replace
(
/
\s
+/g
,
""
):
""
,
t
.
formData
.
errorInfo
=
t
.
formData
.
errorInfo
?
String
(
t
.
formData
.
errorInfo
).
replace
(
/
\s
+/g
,
""
):
""
,
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postEditData
()})},
postEditData
:
function
(){
var
e
=
this
,
t
=
{
errorSettingId
:
e
.
formData
.
errorSettingId
,
errorCode
:
e
.
formData
.
errorCode
,
errorInfo
:
e
.
formData
.
errorInfo
};
Object
(
l
.
b
)(
e
.
editRow
.
errorSettingId
?
"/gateway-manage/update-error-setting"
:
"/gateway-manage/create-error-setting"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
c
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
setData
();
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
setData
:
function
(
e
){
var
t
=
this
;
t
.
$emit
(
"hideDialog"
,
t
.
formData
),
t
.
$nextTick
(
function
(){
t
.
formData
.
errorCode
=
""
,
t
.
formData
.
errorInfo
=
""
})}},
watch
:{
showDialog
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
editRow
:
function
(
e
,
t
){
s
()(
e
).
length
&&
(
this
.
formData
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
this
.
customDialog
=
this
.
showDialog
,
s
()(
this
.
editRow
).
length
&&
(
this
.
formData
=
JSON
.
parse
(
n
()(
this
.
editRow
)))}},
f
=
{
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
:
"errorCodeForm"
,
attrs
:{
model
:
e
.
formData
,
"label-width"
:
"94px"
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误码:"
,
prop
:
"errorCode"
}},[
a
(
"el-input"
,{
attrs
:{
disabled
:
!!
e
.
formData
.
errorSettingId
},
model
:{
value
:
e
.
formData
.
errorCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"errorCode"
,
t
)},
expression
:
"formData.errorCode"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误消息:"
,
prop
:
"errorCode"
}},[
a
(
"el-input"
,{
model
:{
value
:
e
.
formData
.
errorInfo
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"errorInfo"
,
t
)},
expression
:
"formData.errorInfo"
}})],
1
),
e
.
_v
(
" "
),
e
.
formData
.
interfaceName
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"使用的接口名称:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
interfaceName
)
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
formData
.
projectAndGroup
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"使用的项目分组:"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formData
.
projectAndGroup
)
+
"
\
n "
)]):
e
.
_e
()],
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
(
"errorCodeForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"kgs6"
)},
"data-v-38d1c12e"
,
null
).
exports
,
h
=
a
(
"jvWE"
),
m
=
{
name
:
"errorCode"
,
components
:{
navBread
:
r
.
a
,
errorCodeEdit
:
g
},
data
:
function
(){
return
{
navPath
:[{
name
:
"错误码"
,
path
:
""
}],
searchValue
:
""
,
loading
:
!
0
,
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
showDialog
:
!
1
,
editIndex
:
""
,
editRow
:{}}},
methods
:{
searchData
:
Object
(
h
.
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
()},
handleEdit
:
function
(
e
,
t
){
this
.
editIndex
=
e
,
this
.
editRow
=
t
,
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
!
e
)
return
this
.
editIndex
=
""
,
this
.
editRow
=
{},
this
.
showDialog
=!
1
,
!
1
;
this
.
currentPage
,
this
.
getData
(),
this
.
editIndex
=
""
,
this
.
editRow
=
{},
this
.
showDialog
=!
1
,
this
.
$forceUpdate
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
errorSettingId
:
t
.
errorSettingId
};
Object
(
l
.
b
)(
"/gateway-manage/delete-error-setting"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
c
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getData
();
d
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
l
.
b
)(
"/gateway-manage/page-error-setting"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
"0000"
==
a
.
code
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
6
),
this
.
getData
()}},
p
=
{
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
:
"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
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
handleEdit
}},[
e
.
_v
(
"新建错误码"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-wrap"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
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
.
errorCode
)
+
"
\
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
.
errorInfo
)
+
"
\
n "
)]}}])}),
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
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
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
(
"error-code-edit"
,{
attrs
:{
editRow
:
e
.
editRow
,
showDialog
:
e
.
showDialog
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
m
,
p
,
!
1
,
function
(
e
){
a
(
"/LXL"
)},
"data-v-69fb3db4"
,
null
);
t
.
default
=
v
.
exports
},
kgs6
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
10250307e08881275aaa
.js
→
dist/static/js/manifest.
bccbdb8613f8b9b9c5f8
.js
View file @
9d4e951b
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
o
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
c
[
d
]
&&
b
.
push
(
c
[
d
][
0
]),
c
[
d
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
o
);
b
.
length
;)
b
.
shift
()();
if
(
o
)
for
(
u
=
0
;
u
<
o
.
length
;
u
++
)
i
=
t
(
t
.
s
=
o
[
u
]);
return
i
};
var
r
=
{},
c
=
{
25
:
0
};
function
t
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
c
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
c
.
exports
,
c
,
c
.
exports
,
t
),
c
.
l
=!
0
,
c
.
exports
}
t
.
e
=
function
(
e
){
var
n
=
c
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
t
){
n
=
c
[
e
]
=
[
r
,
t
]});
n
[
2
]
=
r
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
t
.
nc
&&
o
.
setAttribute
(
"nonce"
,
t
.
nc
),
o
.
src
=
t
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"21eb44c0f92862aed7d5"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"746c1aff28909fa81065"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"c872205e76fc2e211c44"
,
5
:
"79669dea02bc4dbeebf1"
,
6
:
"49af429925a1e8f0f2bd"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"7b30654eb23787b522cc"
,
9
:
"a7997e12a098f7b54ed3"
,
10
:
"638039a7b39908980436"
,
11
:
"a856aed440077049c707"
,
12
:
"3b9c756b15cf547445f5"
,
13
:
"6c760e15d9a57478de92"
,
14
:
"1cc6cb28c0c58bea9145"
,
15
:
"384267038af31c9086d9"
,
16
:
"57d016308e690b422d49"
,
17
:
"7e4aa3cd1b6feb0ffcd6"
,
18
:
"67aef9456764e44190e3"
,
19
:
"f5c5139410c25373666b"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"c18c8eba63a78b9bfc1e"
,
22
:
"6fda5833364e602fa76a"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
c
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
d
,
a
.
appendChild
(
o
),
r
},
t
.
m
=
e
,
t
.
c
=
r
,
t
.
d
=
function
(
e
,
n
,
r
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"a"
,
n
),
n
},
t
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
t
.
p
=
"./"
,
t
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
o
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
c
[
d
]
&&
b
.
push
(
c
[
d
][
0
]),
c
[
d
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
o
);
b
.
length
;)
b
.
shift
()();
if
(
o
)
for
(
u
=
0
;
u
<
o
.
length
;
u
++
)
i
=
t
(
t
.
s
=
o
[
u
]);
return
i
};
var
r
=
{},
c
=
{
25
:
0
};
function
t
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
c
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
c
.
exports
,
c
,
c
.
exports
,
t
),
c
.
l
=!
0
,
c
.
exports
}
t
.
e
=
function
(
e
){
var
n
=
c
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
t
){
n
=
c
[
e
]
=
[
r
,
t
]});
n
[
2
]
=
r
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
t
.
nc
&&
o
.
setAttribute
(
"nonce"
,
t
.
nc
),
o
.
src
=
t
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"21eb44c0f92862aed7d5"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"746c1aff28909fa81065"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"c872205e76fc2e211c44"
,
5
:
"79669dea02bc4dbeebf1"
,
6
:
"49af429925a1e8f0f2bd"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"7b30654eb23787b522cc"
,
9
:
"a7997e12a098f7b54ed3"
,
10
:
"638039a7b39908980436"
,
11
:
"38f74d542adf9dc766e3"
,
12
:
"3b9c756b15cf547445f5"
,
13
:
"6c760e15d9a57478de92"
,
14
:
"1cc6cb28c0c58bea9145"
,
15
:
"384267038af31c9086d9"
,
16
:
"57d016308e690b422d49"
,
17
:
"7e4aa3cd1b6feb0ffcd6"
,
18
:
"67aef9456764e44190e3"
,
19
:
"f5c5139410c25373666b"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"c18c8eba63a78b9bfc1e"
,
22
:
"6fda5833364e602fa76a"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
c
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
d
,
a
.
appendChild
(
o
),
r
},
t
.
m
=
e
,
t
.
c
=
r
,
t
.
d
=
function
(
e
,
n
,
r
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"a"
,
n
),
n
},
t
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
t
.
p
=
"./"
,
t
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/error/error-code-edit.vue
View file @
9d4e951b
...
@@ -11,7 +11,7 @@ import errorCodeEdit from '@/components/error/error-code-edit.vue'
...
@@ -11,7 +11,7 @@ import errorCodeEdit from '@/components/error/error-code-edit.vue'
<div
v-show=
"customDialog"
>
<div
v-show=
"customDialog"
>
<el-dialog
class=
"edit-dialog"
title=
"编辑"
:visible
.
sync=
"customDialog"
width=
"600px"
:before-close=
"handleClose"
>
<el-dialog
class=
"edit-dialog"
title=
"编辑"
:visible
.
sync=
"customDialog"
width=
"600px"
:before-close=
"handleClose"
>
<div
class=
"edit-dialog-body"
>
<div
class=
"edit-dialog-body"
>
<el-form
:model=
"formData"
label-width=
"
94
px"
:rules=
"rules"
ref=
"errorCodeForm"
>
<el-form
:model=
"formData"
label-width=
"
116
px"
:rules=
"rules"
ref=
"errorCodeForm"
>
<el-form-item
label=
"错误码:"
prop=
"errorCode"
>
<el-form-item
label=
"错误码:"
prop=
"errorCode"
>
<el-input
:disabled=
"formData.errorSettingId ? true : false"
v-model=
"formData.errorCode"
></el-input>
<el-input
:disabled=
"formData.errorSettingId ? true : false"
v-model=
"formData.errorCode"
></el-input>
</el-form-item>
</el-form-item>
...
...
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