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
e7ab42bf
Commit
e7ab42bf
authored
May 18, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改接口
parent
5f64f554
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
13 deletions
+18
-13
index.html
dist/index.html
+2
-2
app.a29bcfb7a466e59dcd6ab35b8d127bd9.css
dist/static/css/app.a29bcfb7a466e59dcd6ab35b8d127bd9.css
+0
-0
4.195803fe28cd92522aa2.js
dist/static/js/4.195803fe28cd92522aa2.js
+2
-0
5.9e039b3008bbf555db62.js
dist/static/js/5.9e039b3008bbf555db62.js
+2
-2
5.a2dcd228e86f2340568b.js
dist/static/js/5.a2dcd228e86f2340568b.js
+0
-2
app.60fa4926a5de78cca8e6.js
dist/static/js/app.60fa4926a5de78cca8e6.js
+2
-2
manifest.30bc99e4966743e8ced7.js
dist/static/js/manifest.30bc99e4966743e8ced7.js
+2
-2
plugPlatform.vue
src/views/index/plugPlatform.vue
+8
-3
No files found.
dist/index.html
View file @
e7ab42bf
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.901b2b4e151b616474113bd37bdf5936.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.fe60218666c9bcff04ee.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.6b740cc0d36bda3fa826.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.a29bcfb7a466e59dcd6ab35b8d127bd9.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.30bc99e4966743e8ced7.js
></script><script
type=
text/javascript
src=
./static/js/vendor.71dc162eb690bf6a36a0.js
></script><script
type=
text/javascript
src=
./static/js/app.60fa4926a5de78cca8e6.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
901b2b4e151b616474113bd37bdf5936
.css
→
dist/static/css/app.
a29bcfb7a466e59dcd6ab35b8d127bd9
.css
View file @
e7ab42bf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/4.195803fe28cd92522aa2.js
0 → 100644
View file @
e7ab42bf
webpackJsonp
([
4
],{
"3yRM"
:
function
(
e
,
t
){},
"6yE4"
:
function
(
e
,
t
){},
"7Jbw"
:
function
(
e
,
t
){},
"ASE+"
:
function
(
e
,
t
){},
SldL
:
function
(
e
,
t
){
!
function
(
t
){
"use strict"
;
var
r
,
a
=
Object
.
prototype
,
n
=
a
.
hasOwnProperty
,
i
=
"function"
==
typeof
Symbol
?
Symbol
:{},
o
=
i
.
iterator
||
"@@iterator"
,
s
=
i
.
asyncIterator
||
"@@asyncIterator"
,
l
=
i
.
toStringTag
||
"@@toStringTag"
,
c
=
"object"
==
typeof
e
,
u
=
t
.
regeneratorRuntime
;
if
(
u
)
c
&&
(
e
.
exports
=
u
);
else
{(
u
=
t
.
regeneratorRuntime
=
c
?
e
.
exports
:{}).
wrap
=
_
;
var
d
=
"suspendedStart"
,
h
=
"suspendedYield"
,
f
=
"executing"
,
g
=
"completed"
,
p
=
{},
m
=
{};
m
[
o
]
=
function
(){
return
this
};
var
v
=
Object
.
getPrototypeOf
,
y
=
v
&&
v
(
v
(
P
([])));
y
&&
y
!==
a
&&
n
.
call
(
y
,
o
)
&&
(
m
=
y
);
var
b
=
C
.
prototype
=
L
.
prototype
=
Object
.
create
(
m
);
S
.
prototype
=
b
.
constructor
=
C
,
C
.
constructor
=
S
,
C
[
l
]
=
S
.
displayName
=
"GeneratorFunction"
,
u
.
isGeneratorFunction
=
function
(
e
){
var
t
=
"function"
==
typeof
e
&&
e
.
constructor
;
return
!!
t
&&
(
t
===
S
||
"GeneratorFunction"
===
(
t
.
displayName
||
t
.
name
))},
u
.
mark
=
function
(
e
){
return
Object
.
setPrototypeOf
?
Object
.
setPrototypeOf
(
e
,
C
):(
e
.
__proto__
=
C
,
l
in
e
||
(
e
[
l
]
=
"GeneratorFunction"
)),
e
.
prototype
=
Object
.
create
(
b
),
e
},
u
.
awrap
=
function
(
e
){
return
{
__await
:
e
}},
I
(
x
.
prototype
),
x
.
prototype
[
s
]
=
function
(){
return
this
},
u
.
AsyncIterator
=
x
,
u
.
async
=
function
(
e
,
t
,
r
,
a
){
var
n
=
new
x
(
_
(
e
,
t
,
r
,
a
));
return
u
.
isGeneratorFunction
(
t
)?
n
:
n
.
next
().
then
(
function
(
e
){
return
e
.
done
?
e
.
value
:
n
.
next
()})},
I
(
b
),
b
[
l
]
=
"Generator"
,
b
[
o
]
=
function
(){
return
this
},
b
.
toString
=
function
(){
return
"[object Generator]"
},
u
.
keys
=
function
(
e
){
var
t
=
[];
for
(
var
r
in
e
)
t
.
push
(
r
);
return
t
.
reverse
(),
function
r
(){
for
(;
t
.
length
;){
var
a
=
t
.
pop
();
if
(
a
in
e
)
return
r
.
value
=
a
,
r
.
done
=!
1
,
r
}
return
r
.
done
=!
0
,
r
}},
u
.
values
=
P
,
$
.
prototype
=
{
constructor
:
$
,
reset
:
function
(
e
){
if
(
this
.
prev
=
0
,
this
.
next
=
0
,
this
.
sent
=
this
.
_sent
=
r
,
this
.
done
=!
1
,
this
.
delegate
=
null
,
this
.
method
=
"next"
,
this
.
arg
=
r
,
this
.
tryEntries
.
forEach
(
j
),
!
e
)
for
(
var
t
in
this
)
"t"
===
t
.
charAt
(
0
)
&&
n
.
call
(
this
,
t
)
&&!
isNaN
(
+
t
.
slice
(
1
))
&&
(
this
[
t
]
=
r
)},
stop
:
function
(){
this
.
done
=!
0
;
var
e
=
this
.
tryEntries
[
0
].
completion
;
if
(
"throw"
===
e
.
type
)
throw
e
.
arg
;
return
this
.
rval
},
dispatchException
:
function
(
e
){
if
(
this
.
done
)
throw
e
;
var
t
=
this
;
function
a
(
a
,
n
){
return
s
.
type
=
"throw"
,
s
.
arg
=
e
,
t
.
next
=
a
,
n
&&
(
t
.
method
=
"next"
,
t
.
arg
=
r
),
!!
n
}
for
(
var
i
=
this
.
tryEntries
.
length
-
1
;
i
>=
0
;
--
i
){
var
o
=
this
.
tryEntries
[
i
],
s
=
o
.
completion
;
if
(
"root"
===
o
.
tryLoc
)
return
a
(
"end"
);
if
(
o
.
tryLoc
<=
this
.
prev
){
var
l
=
n
.
call
(
o
,
"catchLoc"
),
c
=
n
.
call
(
o
,
"finallyLoc"
);
if
(
l
&&
c
){
if
(
this
.
prev
<
o
.
catchLoc
)
return
a
(
o
.
catchLoc
,
!
0
);
if
(
this
.
prev
<
o
.
finallyLoc
)
return
a
(
o
.
finallyLoc
)}
else
if
(
l
){
if
(
this
.
prev
<
o
.
catchLoc
)
return
a
(
o
.
catchLoc
,
!
0
)}
else
{
if
(
!
c
)
throw
new
Error
(
"try statement without catch or finally"
);
if
(
this
.
prev
<
o
.
finallyLoc
)
return
a
(
o
.
finallyLoc
)}}}},
abrupt
:
function
(
e
,
t
){
for
(
var
r
=
this
.
tryEntries
.
length
-
1
;
r
>=
0
;
--
r
){
var
a
=
this
.
tryEntries
[
r
];
if
(
a
.
tryLoc
<=
this
.
prev
&&
n
.
call
(
a
,
"finallyLoc"
)
&&
this
.
prev
<
a
.
finallyLoc
){
var
i
=
a
;
break
}}
i
&&
(
"break"
===
e
||
"continue"
===
e
)
&&
i
.
tryLoc
<=
t
&&
t
<=
i
.
finallyLoc
&&
(
i
=
null
);
var
o
=
i
?
i
.
completion
:{};
return
o
.
type
=
e
,
o
.
arg
=
t
,
i
?(
this
.
method
=
"next"
,
this
.
next
=
i
.
finallyLoc
,
p
):
this
.
complete
(
o
)},
complete
:
function
(
e
,
t
){
if
(
"throw"
===
e
.
type
)
throw
e
.
arg
;
return
"break"
===
e
.
type
||
"continue"
===
e
.
type
?
this
.
next
=
e
.
arg
:
"return"
===
e
.
type
?(
this
.
rval
=
this
.
arg
=
e
.
arg
,
this
.
method
=
"return"
,
this
.
next
=
"end"
):
"normal"
===
e
.
type
&&
t
&&
(
this
.
next
=
t
),
p
},
finish
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
r
=
this
.
tryEntries
[
t
];
if
(
r
.
finallyLoc
===
e
)
return
this
.
complete
(
r
.
completion
,
r
.
afterLoc
),
j
(
r
),
p
}},
catch
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
r
=
this
.
tryEntries
[
t
];
if
(
r
.
tryLoc
===
e
){
var
a
=
r
.
completion
;
if
(
"throw"
===
a
.
type
){
var
n
=
a
.
arg
;
j
(
r
)}
return
n
}}
throw
new
Error
(
"illegal catch attempt"
)},
delegateYield
:
function
(
e
,
t
,
a
){
return
this
.
delegate
=
{
iterator
:
P
(
e
),
resultName
:
t
,
nextLoc
:
a
},
"next"
===
this
.
method
&&
(
this
.
arg
=
r
),
p
}}}
function
_
(
e
,
t
,
r
,
a
){
var
n
=
t
&&
t
.
prototype
instanceof
L
?
t
:
L
,
i
=
Object
.
create
(
n
.
prototype
),
o
=
new
$
(
a
||
[]);
return
i
.
_invoke
=
function
(
e
,
t
,
r
){
var
a
=
d
;
return
function
(
n
,
i
){
if
(
a
===
f
)
throw
new
Error
(
"Generator is already running"
);
if
(
a
===
g
){
if
(
"throw"
===
n
)
throw
i
;
return
E
()}
for
(
r
.
method
=
n
,
r
.
arg
=
i
;;){
var
o
=
r
.
delegate
;
if
(
o
){
var
s
=
k
(
o
,
r
);
if
(
s
){
if
(
s
===
p
)
continue
;
return
s
}}
if
(
"next"
===
r
.
method
)
r
.
sent
=
r
.
_sent
=
r
.
arg
;
else
if
(
"throw"
===
r
.
method
){
if
(
a
===
d
)
throw
a
=
g
,
r
.
arg
;
r
.
dispatchException
(
r
.
arg
)}
else
"return"
===
r
.
method
&&
r
.
abrupt
(
"return"
,
r
.
arg
);
a
=
f
;
var
l
=
w
(
e
,
t
,
r
);
if
(
"normal"
===
l
.
type
){
if
(
a
=
r
.
done
?
g
:
h
,
l
.
arg
===
p
)
continue
;
return
{
value
:
l
.
arg
,
done
:
r
.
done
}}
"throw"
===
l
.
type
&&
(
a
=
g
,
r
.
method
=
"throw"
,
r
.
arg
=
l
.
arg
)}}}(
e
,
r
,
o
),
i
}
function
w
(
e
,
t
,
r
){
try
{
return
{
type
:
"normal"
,
arg
:
e
.
call
(
t
,
r
)}}
catch
(
e
){
return
{
type
:
"throw"
,
arg
:
e
}}}
function
L
(){}
function
S
(){}
function
C
(){}
function
I
(
e
){[
"next"
,
"throw"
,
"return"
].
forEach
(
function
(
t
){
e
[
t
]
=
function
(
e
){
return
this
.
_invoke
(
t
,
e
)}})}
function
x
(
e
){
var
t
;
this
.
_invoke
=
function
(
r
,
a
){
function
i
(){
return
new
Promise
(
function
(
t
,
i
){
!
function
t
(
r
,
a
,
i
,
o
){
var
s
=
w
(
e
[
r
],
e
,
a
);
if
(
"throw"
!==
s
.
type
){
var
l
=
s
.
arg
,
c
=
l
.
value
;
return
c
&&
"object"
==
typeof
c
&&
n
.
call
(
c
,
"__await"
)?
Promise
.
resolve
(
c
.
__await
).
then
(
function
(
e
){
t
(
"next"
,
e
,
i
,
o
)},
function
(
e
){
t
(
"throw"
,
e
,
i
,
o
)}):
Promise
.
resolve
(
c
).
then
(
function
(
e
){
l
.
value
=
e
,
i
(
l
)},
o
)}
o
(
s
.
arg
)}(
r
,
a
,
t
,
i
)})}
return
t
=
t
?
t
.
then
(
i
,
i
):
i
()}}
function
k
(
e
,
t
){
var
a
=
e
.
iterator
[
t
.
method
];
if
(
a
===
r
){
if
(
t
.
delegate
=
null
,
"throw"
===
t
.
method
){
if
(
e
.
iterator
.
return
&&
(
t
.
method
=
"return"
,
t
.
arg
=
r
,
k
(
e
,
t
),
"throw"
===
t
.
method
))
return
p
;
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"The iterator does not provide a 'throw' method"
)}
return
p
}
var
n
=
w
(
a
,
e
.
iterator
,
t
.
arg
);
if
(
"throw"
===
n
.
type
)
return
t
.
method
=
"throw"
,
t
.
arg
=
n
.
arg
,
t
.
delegate
=
null
,
p
;
var
i
=
n
.
arg
;
return
i
?
i
.
done
?(
t
[
e
.
resultName
]
=
i
.
value
,
t
.
next
=
e
.
nextLoc
,
"return"
!==
t
.
method
&&
(
t
.
method
=
"next"
,
t
.
arg
=
r
),
t
.
delegate
=
null
,
p
):
i
:(
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"iterator result is not an object"
),
t
.
delegate
=
null
,
p
)}
function
N
(
e
){
var
t
=
{
tryLoc
:
e
[
0
]};
1
in
e
&&
(
t
.
catchLoc
=
e
[
1
]),
2
in
e
&&
(
t
.
finallyLoc
=
e
[
2
],
t
.
afterLoc
=
e
[
3
]),
this
.
tryEntries
.
push
(
t
)}
function
j
(
e
){
var
t
=
e
.
completion
||
{};
t
.
type
=
"normal"
,
delete
t
.
arg
,
e
.
completion
=
t
}
function
$
(
e
){
this
.
tryEntries
=
[{
tryLoc
:
"root"
}],
e
.
forEach
(
N
,
this
),
this
.
reset
(
!
0
)}
function
P
(
e
){
if
(
e
){
var
t
=
e
[
o
];
if
(
t
)
return
t
.
call
(
e
);
if
(
"function"
==
typeof
e
.
next
)
return
e
;
if
(
!
isNaN
(
e
.
length
)){
var
a
=-
1
,
i
=
function
t
(){
for
(;
++
a
<
e
.
length
;)
if
(
n
.
call
(
e
,
a
))
return
t
.
value
=
e
[
a
],
t
.
done
=!
1
,
t
;
return
t
.
value
=
r
,
t
.
done
=!
0
,
t
};
return
i
.
next
=
i
}}
return
{
next
:
E
}}
function
E
(){
return
{
value
:
r
,
done
:
!
0
}}}(
function
(){
return
this
}()
||
Function
(
"return this"
)())},
UOoF
:
function
(
e
,
t
){},
Xxa5
:
function
(
e
,
t
,
r
){
e
.
exports
=
r
(
"jyFz"
)},
dAfO
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"bOdI"
),
n
=
r
.
n
(
a
),
i
=
r
(
"Xxa5"
),
o
=
r
.
n
(
i
),
s
=
r
(
"exGp"
),
l
=
r
.
n
(
s
),
c
=
r
(
"319J"
),
u
=
r
(
"P9l9"
),
d
=
r
(
"jvWE"
),
h
=
r
(
"PEkr"
),
f
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{
cancelBind
:
function
(
e
){
var
t
=
this
,
r
=
this
,
a
=
{
id
:
e
.
openPlatformInterfaceId
};
Object
(
u
.
a
)(
"/gateway-manage/platform/white/unbind"
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
components
:{}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"table-content"
},[
r
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"项目名称"
,
prop
:
"projectName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"分组"
,
prop
:
"groupName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"接口名称"
,
prop
:
"interfaceName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"绑定时间"
,
prop
:
"bindTime"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
bindTime
)))]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
bindTime
)))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要解除绑定吗?"
},
on
:{
confirm
:
function
(
r
){
e
.
cancelBind
(
t
.
row
)}}},[
r
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"解除绑定"
)])],
1
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
p
=
r
(
"VU/8"
)(
f
,
g
,
!
1
,
function
(
e
){
r
(
"xU1Q"
)},
"data-v-f1de626e"
,
null
).
exports
,
m
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{
cancelBind
:
function
(
e
){
var
t
=
this
,
r
=
this
,
a
=
{
id
:
e
.
openPlatformInterfaceId
};
Object
(
u
.
a
)(
"/gateway-manage/platform/capacity/unbind"
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
components
:{}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"table-content"
},[
r
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"项目名称"
,
prop
:
"projectName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"分组"
,
prop
:
"groupName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"接口名称"
,
prop
:
"interfaceName"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"绑定时间"
,
prop
:
"bindTime"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
bindTime
)))]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
bindTime
)))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要接触绑定吗?"
},
on
:{
confirm
:
function
(
r
){
e
.
cancelBind
(
t
.
row
)}}},[
r
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"解除绑定"
)])],
1
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
y
=
r
(
"VU/8"
)(
m
,
v
,
!
1
,
function
(
e
){
r
(
"7Jbw"
)},
"data-v-2c6d01f2"
,
null
).
exports
,
b
=
{
props
:{
errorSettingId
:{
type
:
String
,
default
:
function
(){
return
""
}},
errorCode
:{
type
:
String
,
default
:
function
(){
return
""
}},
errorInfo
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
errorForm
:{
errorCode
:
""
,
errorInfo
:
""
},
modalRules
:{
errorCode
:[{
required
:
!
0
,
message
:
"请输入错误码"
,
trigger
:
"blur"
}],
errorInfo
:[{
required
:
!
0
,
message
:
"请输入错误信息"
,
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
errorForm
.
errorCode
=
this
.
errorCode
,
this
.
errorForm
.
errorInfo
=
this
.
errorInfo
},
methods
:{
submitForm
:
function
(
e
){
var
t
=
this
,
r
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
a
=
""
,
n
=
{
errorCode
:
t
.
errorForm
.
errorCode
,
errorInfo
:
t
.
errorForm
.
errorInfo
,
errorType
:
2
};
t
.
errorSettingId
?(
n
.
errorSettingId
=
t
.
errorSettingId
,
a
=
"/gateway-manage/update-error-setting"
):
a
=
"/gateway-manage/create-error-setting"
,
Object
(
u
.
b
)(
a
,
n
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
$emit
(
"getList"
),
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"cancelNewCoce"
)):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
cancelForm
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelNewCoce"
)}}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-dialog"
,{
attrs
:{
title
:
e
.
errorSettingId
?
"编辑错误码"
:
"新建错误码"
,
visible
:
e
.
dialogVisible
,
width
:
"500px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
cancelForm
(
"errorForm"
)}}},[
r
(
"el-form"
,{
ref
:
"errorForm"
,
staticStyle
:{
width
:
"450px"
},
attrs
:{
model
:
e
.
errorForm
,
rules
:
e
.
modalRules
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"错误码"
,
"label-width"
:
"90px"
,
prop
:
"errorCode"
}},[
r
(
"dm-input"
,{
attrs
:{
byteType
:
1
,
type
:
"text"
,
maxlength
:
20
},
model
:{
value
:
e
.
errorForm
.
errorCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
errorForm
,
"errorCode"
,
t
)},
expression
:
"errorForm.errorCode"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"错误信息"
,
"label-width"
:
"90px"
,
prop
:
"errorInfo"
}},[
r
(
"dm-input"
,{
attrs
:{
byteType
:
1
,
type
:
"text"
,
maxlength
:
20
},
model
:{
value
:
e
.
errorForm
.
errorInfo
,
callback
:
function
(
t
){
e
.
$set
(
e
.
errorForm
,
"errorInfo"
,
t
)},
expression
:
"errorForm.errorInfo"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
r
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
cancelForm
(
"errorForm"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"errorForm"
)}}},[
e
.
_v
(
e
.
_s
(
e
.
errorSettingId
?
"保存"
:
"新建"
))])],
1
)],
1
)},
staticRenderFns
:[]};
var
w
=
r
(
"VU/8"
)(
b
,
_
,
!
1
,
function
(
e
){
r
(
"ASE+"
)},
"data-v-1f51806f"
,
null
).
exports
,
L
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
showNewCode
:
!
1
,
errorSettingId
:
""
,
errorInfo
:
""
,
errorCode
:
""
}},
methods
:{
getList
:
function
(){
this
.
$emit
(
"getList"
)},
edit
:
function
(
e
){
this
.
showNewCode
=!
0
,
this
.
errorSettingId
=
e
.
errorSettingId
,
this
.
errorCode
=
e
.
errorCode
,
this
.
errorInfo
=
e
.
errorInfo
},
cancelNewCoce
:
function
(){
this
.
showNewCode
=!
1
},
deleteList
:
function
(
e
){
var
t
=
this
,
r
=
{
errorSettingId
:
e
.
errorSettingId
};
Object
(
u
.
b
)(
"/gateway-manage/delete-error-setting"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)})}},
components
:{
newErrorCode
:
w
}},
S
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"table-content"
},[
r
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"错误码"
,
prop
:
"errorCode"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"错误信息"
,
prop
:
"errorInfo"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
r
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
r
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除吗?"
},
on
:{
confirm
:
function
(
r
){
e
.
deleteList
(
t
.
row
)}}},[
r
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showNewCode
?
r
(
"newErrorCode"
,{
attrs
:{
errorSettingId
:
e
.
errorSettingId
,
errorCode
:
e
.
errorCode
,
errorInfo
:
e
.
errorInfo
},
on
:{
getList
:
e
.
getList
,
cancelNewCoce
:
e
.
cancelNewCoce
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
C
=
r
(
"VU/8"
)(
L
,
S
,
!
1
,
function
(
e
){
r
(
"oPMN"
)},
"data-v-78e39e8a"
,
null
).
exports
,
I
=
r
(
"BO1k"
),
x
=
r
.
n
(
I
),
k
=
{
props
:{
type
:{
type
:
String
,
default
:
function
(){
return
1
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
checkedAll
:
!
1
,
isIndeterminate
:
!
1
,
rightList
:[],
leftSelectList
:[],
rightSelectList
:[],
props
:{
label
:
"name"
,
children
:
"zones"
,
isLeaf
:
"leaf"
},
loading
:
!
1
,
projectList
:[],
refash
:
!
1
,
btnLoading
:
!
1
}},
created
:
function
(){
this
.
dialogVisible
=!
0
},
methods
:{
changeAllTree
:
function
(
e
){
e
?(
this
.
$refs
.
tree
.
setCheckedNodes
(
this
.
projectList
),
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
()):(
this
.
$refs
.
tree
.
setCheckedKeys
([]),
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
())},
handleCheckChange
:
function
(
e
,
t
,
r
){
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
();
var
a
=
0
,
n
=!
0
,
i
=!
1
,
o
=
void
0
;
try
{
for
(
var
s
,
l
=
x
()(
this
.
leftSelectList
);
!
(
n
=
(
s
=
l
.
next
()).
done
);
n
=!
0
){
var
c
=
s
.
value
;
this
.
leftSelectList
.
every
(
function
(
e
){
return
0
!==
e
.
type
})?
a
=
1
:
0
===
c
.
type
&&
(
a
+=
1
)}}
catch
(
e
){
i
=!
0
,
o
=
e
}
finally
{
try
{
!
n
&&
l
.
return
&&
l
.
return
()}
finally
{
if
(
i
)
throw
o
}}
this
.
isIndeterminate
=
a
>
0
&&
a
<
this
.
projectList
.
length
,
this
.
checkedAll
=
a
===
this
.
projectList
.
length
},
transferRight
:
function
(){
var
e
=
this
;
this
.
rightList
=
this
.
leftSelectList
.
concat
(
this
.
rightList
),
this
.
rightList
=
this
.
rightList
.
filter
(
function
(
e
,
t
,
r
){
return
r
.
indexOf
(
e
)
===
t
});
for
(
var
t
=
function
(
t
){
e
.
rightList
.
find
(
function
(
r
){
return
r
.
id
===
e
.
rightList
[
t
].
parentId
})
&&
e
.
rightList
[
t
].
leaf
&&
(
e
.
rightList
.
splice
(
t
,
1
),
t
=
0
),
r
=
t
},
r
=
0
;
r
<
this
.
rightList
.
length
;
r
++
)
t
(
r
);
this
.
$refs
.
tree
.
setCheckedKeys
([]),
this
.
leftSelectList
=
[],
this
.
checkedAll
=!
1
},
transferLeft
:
function
(){
for
(
var
e
=
0
;
e
<
this
.
rightSelectList
.
length
;
e
++
)
for
(
var
t
=
0
;
t
<
this
.
rightList
.
length
;
t
++
)
this
.
rightSelectList
[
e
].
id
===
this
.
rightList
[
t
].
id
&&
(
this
.
rightList
.
splice
(
t
,
1
),
t
=
0
);
this
.
rightSelectList
=
[]},
loadNode
:
function
(
e
,
t
){
var
r
=
this
,
a
=
this
;
if
(
0
===
e
.
level
)
return
this
.
loading
=!
0
,
Object
(
u
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
e
){
if
(
"0000"
==
e
.
data
.
code
){
r
.
loading
=!
1
,
e
.
data
.
result
?
r
.
projectList
=
e
.
data
.
result
:
r
.
projectList
=
[];
var
a
=!
0
,
n
=!
1
,
i
=
void
0
;
try
{
for
(
var
o
,
s
=
x
()(
r
.
projectList
);
!
(
a
=
(
o
=
s
.
next
()).
done
);
a
=!
0
){
var
l
=
o
.
value
;
0
===
l
.
leafFlag
?
l
.
leaf
=!
1
:
l
.
leaf
=!
0
,
l
.
parentId
=
""
}}
catch
(
e
){
n
=!
0
,
i
=
e
}
finally
{
try
{
!
a
&&
s
.
return
&&
s
.
return
()}
finally
{
if
(
n
)
throw
i
}}
return
t
(
r
.
projectList
)}
r
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
t
(
this
.
projectList
);
if
(
e
.
level
>
2
)
return
t
([]);
if
(
1
===
e
.
level
||
2
===
e
.
level
){
var
n
=
{
type
:
e
.
level
-
1
,
id
:
e
.
data
.
id
},
i
=
[];
Object
(
u
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
n
).
then
(
function
(
t
){
if
(
"0000"
==
t
.
data
.
code
){
i
=
t
.
data
.
result
?
t
.
data
.
result
:[];
var
a
=!
0
,
n
=!
1
,
o
=
void
0
;
try
{
for
(
var
s
,
l
=
x
()(
i
);
!
(
a
=
(
s
=
l
.
next
()).
done
);
a
=!
0
){
var
c
=
s
.
value
;
0
===
c
.
leafFlag
?
c
.
leaf
=!
1
:
c
.
leaf
=!
0
,
c
.
parentId
=
e
.
data
.
id
}}
catch
(
e
){
n
=!
0
,
o
=
e
}
finally
{
try
{
!
a
&&
l
.
return
&&
l
.
return
()}
finally
{
if
(
n
)
throw
o
}}}
else
r
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
setTimeout
(
function
(){
t
(
i
)},
2
e3
)}},
handleSelectionChange
:
function
(
e
){
this
.
rightSelectList
=
e
},
submitForm
:
function
(){
var
e
=
this
,
t
=
this
;
if
(
0
===
this
.
rightSelectList
.
length
)
return
this
.
$message
.
error
(
"请选择要绑定的API"
),
!
1
;
var
r
=
[],
a
=
[],
n
=
[],
i
=!
0
,
o
=!
1
,
s
=
void
0
;
try
{
for
(
var
l
,
c
=
x
()(
this
.
rightSelectList
);
!
(
i
=
(
l
=
c
.
next
()).
done
);
i
=!
0
){
var
d
=
l
.
value
;
0
===
d
.
type
?
r
.
push
(
d
.
id
):
1
===
d
.
type
?
a
.
push
(
d
.
id
):
2
===
d
.
type
&&
n
.
push
(
d
.
id
)}}
catch
(
e
){
o
=!
0
,
s
=
e
}
finally
{
try
{
!
i
&&
c
.
return
&&
c
.
return
()}
finally
{
if
(
o
)
throw
s
}}
var
h
=
{
sceneCode
:
this
.
sceneCode
};
r
.
length
&&
(
h
.
projectIds
=
r
.
join
(
","
)),
a
.
length
&&
(
h
.
groupIds
=
a
.
join
(
","
)),
n
.
length
&&
(
h
.
interfaceIds
=
n
.
join
(
","
));
var
f
=
""
;
"1"
===
this
.
type
?
f
=
"/gateway-manage/platform/white/bind"
:
"2"
===
this
.
type
&&
(
f
=
"/gateway-manage/platform/capacity/bind"
),
this
.
btnLoading
=!
0
,
Object
(
u
.
a
)(
f
,
h
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
dialogVisible
=!
1
,
e
.
$emit
(
"getList"
),
e
.
btnLoading
=!
1
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
closeDialog
:
function
(){
this
.
$emit
(
"cancelBind"
)}}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-dialog"
,{
attrs
:{
title
:
"1"
===
e
.
type
?
"新建绑定白名单接口"
:
"新建绑定能力接口"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
closeDialog
}},[
r
(
"div"
,{
staticClass
:
"dialog-body"
},[
r
(
"div"
,{
staticClass
:
"content"
},[
r
(
"div"
,{
staticClass
:
"left-content"
},[
r
(
"div"
,{
staticClass
:
"title"
},[
r
(
"h3"
,[
r
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
changeAllTree
},
model
:{
value
:
e
.
checkedAll
,
callback
:
function
(
t
){
e
.
checkedAll
=
t
},
expression
:
"checkedAll"
}},[
e
.
_v
(
"所有API"
)])],
1
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"tree-content"
},[
r
(
"el-tree"
,{
ref
:
"tree"
,
attrs
:{
props
:
e
.
props
,
load
:
e
.
loadNode
,
"node-key"
:
"id"
,
lazy
:
""
,
"show-checkbox"
:
""
},
on
:{
"check-change"
:
e
.
handleCheckChange
}})],
1
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"left-center"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
leftSelectList
.
length
<=
0
},
on
:{
click
:
e
.
transferRight
}},[
e
.
_v
(
"转入"
),
r
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right"
})]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
rightSelectList
.
length
<=
0
},
on
:{
click
:
e
.
transferLeft
}},[
r
(
"i"
,{
staticClass
:
"el-icon-arrow-left el-icon--left"
}),
e
.
_v
(
"移除"
)])],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"list-content table-transfer"
},[[
r
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
rightList
,
"tooltip-effect"
:
"dark"
,
height
:
"305"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
r
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"50"
}}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"已选API"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
name
))]}}])})],
1
)]],
2
)])])]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
r
(
"el-button"
,{
on
:{
click
:
e
.
closeDialog
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
btnLoading
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
j
=
r
(
"VU/8"
)(
k
,
N
,
!
1
,
function
(
e
){
r
(
"6yE4"
),
r
(
"UOoF"
)},
"data-v-38497e12"
,
null
).
exports
,
$
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{},
components
:{}},
P
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"table-content"
},[
r
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"traceid"
,
prop
:
"projectName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
traceId
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"应用"
,
prop
:
"groupName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
name
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"请求时间"
,
prop
:
"bindTime"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
requestTime
)))]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
requestTime
)))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"商户"
,
prop
:
"interfaceName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
enterpriseName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"接口"
,
prop
:
"interfaceName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
projectName
||
"--"
)
+
"-"
+
e
.
_s
(
t
.
row
.
groupName
||
"--"
))]),
e
.
_v
(
" "
),
r
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
interfaceName
||
"--"
))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"请求内容"
,
prop
:
"interfaceName"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
requestParams
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"返回内容"
,
prop
:
"interfaceName"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
responseParams
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"备注"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
remarks
||
"--"
)
+
"
\
n "
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
E
=
r
(
"VU/8"
)(
$
,
P
,
!
1
,
function
(
e
){
r
(
"3yRM"
)},
"data-v-6c542f1c"
,
null
).
exports
,
F
=
{
name
:
"envManage"
,
components
:{
navBread
:
c
.
a
,
selectEnv
:
h
.
a
,
whiteList
:
p
,
capacityList
:
y
,
errorCodeList
:
C
,
bindTranser
:
j
,
newErrorCode
:
w
,
logList
:
E
},
data
:
function
(){
return
{
navPath
:[{
name
:
"插件管理"
,
path
:
"/pluginManage"
},{
name
:
"开放平台"
,
path
:
""
}],
activeName
:
"first"
,
search
:
""
,
showdialog
:
!
1
,
pluginId
:
""
,
sceneCode
:
""
,
pluginType
:
1
,
projectList
:[],
projectId
:
""
,
groupList
:[],
groupId
:
""
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
20
,
pageSizes
:[
20
,
40
,
60
,
80
],
showNewCode
:
!
1
,
errorSettingId
:
""
,
showBinddialog
:
!
1
,
type
:
""
,
loading
:
!
1
,
logSearch
:{
requestDate
:[],
searchValue
:
""
,
requestProjectId
:
""
,
requestGroupId
:
""
,
requestStatus
:
""
}}},
methods
:{
changeDate
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
changeStatus
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
changePro
:
function
(){
var
e
=
this
;
return
l
()(
o
.
a
.
mark
(
function
t
(){
var
r
;
return
o
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
r
=
e
,
t
.
next
=
3
,
r
.
getGroupList
();
case
3
:
r
.
currentPage
=
1
,
r
.
getList
();
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
changeGroup
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
searchEnterFun
:
Object
(
d
.
a
)(
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
200
),
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
handleClick
:
function
(
e
,
t
){
this
.
search
=
""
,
this
.
projectId
=
""
,
this
.
groupId
=
""
,
this
.
getList
()},
goEnvList
:
function
(){
this
.
showdialog
=!
0
,
this
.
pluginId
=
this
.
pluginId
},
closeDialog
:
function
(){
this
.
showdialog
=!
1
},
getChange
:
function
(){
this
.
groupId
=
""
,
this
.
getGroupList
(),
this
.
getList
()},
getSearchList
:
function
(){
"first"
!==
this
.
activeName
&&
"second"
!==
this
.
activeName
||
(
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
())},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
this
,
r
=
""
,
a
=
{};
"first"
===
this
.
activeName
?(
r
=
"/gateway-manage/platform/white/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"second"
===
this
.
activeName
?(
r
=
"/gateway-manage/platform/capacity/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"third"
===
this
.
activeName
?(
r
=
"/gateway-manage/page-error-setting"
,
a
=
{
errorType
:
2
,
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):(
r
=
"/gateway-manage/page-log"
,
t
.
logSearch
.
requestDate
||
(
t
.
logSearch
.
requestDate
=
[]),
a
=
{
startTime
:
t
.
logSearch
.
requestDate
[
0
],
endTime
:
t
.
logSearch
.
requestDate
[
1
],
requestProjectId
:
t
.
logSearch
.
requestProjectId
,
requestGroupId
:
t
.
logSearch
.
requestGroupId
,
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}),
"first"
===
this
.
activeName
||
"second"
===
this
.
activeName
?(
this
.
loading
=!
0
,
Object
(
u
.
a
)(
r
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
):(
e
.
loading
=!
1
,
e
.
$message
.
error
(
t
.
data
.
message
))}).
catch
(
function
(
e
){
this
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})):(
this
.
loading
=!
0
,
Object
(
u
.
b
)(
r
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
):(
e
.
loading
=!
1
,
e
.
$message
.
error
(
t
.
data
.
message
))}).
catch
(
function
(
e
){
this
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}))},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
u
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
,
r
=
{
type
:
0
,
id
:
this
.
projectId
};
Object
(
u
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
r
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addCode
:
function
(){
this
.
showNewCode
=!
0
,
this
.
errorSettingId
=
""
},
cancelNewCoce
:
function
(){
this
.
showNewCode
=!
1
},
addBind
:
function
(
e
){
this
.
showBinddialog
=!
0
,
this
.
type
=
e
},
cancelBind
:
function
(){
this
.
showBinddialog
=!
1
}},
watch
:
n
()({
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
"$route"
,
function
(
e
,
t
){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()}),
created
:
function
(){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()}},
D
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
r
(
"div"
,{
staticClass
:
"common-nav"
},[
r
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"change-env"
,
on
:{
click
:
e
.
goEnvList
}},[
r
(
"span"
,[
e
.
_v
(
"切换环境"
)]),
r
(
"i"
,{
staticClass
:
"iconfont iconicon-qihuan"
,
on
:{
click
:
function
(
t
){
e
.
goEnvList
(
e
.
item
)}}})])],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
},[
r
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
r
(
"div"
,{
staticClass
:
"env-tab-wrap"
},[
r
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
r
(
"div"
,{
staticClass
:
"search-box"
},[
r
(
"div"
,{
staticClass
:
"left"
},[
"second"
===
e
.
activeName
||
"first"
===
e
.
activeName
?
r
(
"div"
,[
r
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
placeholder
:
"请输入接口名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
function
(
t
){
e
.
getSearchList
()}},
nativeOn
:{
keyup
:
function
(
t
){
if
(
!
(
"button"
in
t
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
))
return
null
;
e
.
getSearchList
()}},
model
:{
value
:
e
.
search
,
callback
:
function
(
t
){
e
.
search
=
t
},
expression
:
"search"
}}),
e
.
_v
(
" "
),
r
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
function
(
t
){
e
.
getChange
()}},
model
:{
value
:
e
.
projectId
,
callback
:
function
(
t
){
e
.
projectId
=
t
},
expression
:
"projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
r
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择分组"
,
size
:
"small"
,
clearable
:
""
,
disabled
:
""
===
e
.
projectId
},
on
:{
change
:
function
(
t
){
e
.
getSearchList
()}},
model
:{
value
:
e
.
groupId
,
callback
:
function
(
t
){
e
.
groupId
=
t
},
expression
:
"groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
r
(
"div"
,[
"third"
===
e
.
activeName
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addCode
}},[
e
.
_v
(
"新建错误码"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"first"
===
e
.
activeName
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
addBind
(
"1"
)}}},[
e
.
_v
(
"新建绑定"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"second"
===
e
.
activeName
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
addBind
(
"2"
)}}},[
e
.
_v
(
"新建绑定"
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
r
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"白名单接口"
,
name
:
"first"
}},[
"first"
===
e
.
activeName
?
r
(
"whiteList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"能力接口"
,
name
:
"second"
}},[
"second"
===
e
.
activeName
?
r
(
"capacityList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"错误码配置"
,
name
:
"third"
}},[
"third"
===
e
.
activeName
?
r
(
"errorCodeList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"日志"
,
name
:
"four"
}},[
r
(
"div"
,{
staticClass
:
"log-search flex"
},[
r
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
placeholder
:
"选择请求时间"
,
editable
:
!
1
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
logSearch
.
requestDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestDate"
,
t
)},
expression
:
"logSearch.requestDate"
}}),
r
(
"el-input"
,{
staticClass
:
"w-250 marginLeft10"
,
attrs
:{
placeholder
:
"请输入开发者账号/ip/商户名称/接口名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
r
=
t
,
e
.
searchEnterFun
(
r
,
e
.
searchValue
);
var
r
}},
model
:{
value
:
e
.
logSearch
.
searchValue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"searchValue"
,
t
)},
expression
:
"logSearch.searchValue"
}}),
e
.
_v
(
" "
),
r
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
changePro
},
model
:{
value
:
e
.
logSearch
.
requestProjectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestProjectId"
,
t
)},
expression
:
"logSearch.requestProjectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
logSearch
.
requestProjectId
?
r
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
changeGroup
},
model
:{
value
:
e
.
logSearch
.
requestGroupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestGroupId"
,
t
)},
expression
:
"logSearch.requestGroupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"log-list"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}})],
1
)],
1
),
e
.
_v
(
" "
),
0
!==
e
.
total
?
r
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
"margin-top"
:
"20px"
}},[
r
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:
e
.
pageSizes
,
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
e
.
showdialog
?
r
(
"selectEnv"
,{
attrs
:{
pluginId
:
e
.
pluginId
,
pluginType
:
e
.
pluginType
},
on
:{
closeDialog
:
e
.
closeDialog
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showBinddialog
?
r
(
"bindTranser"
,{
attrs
:{
type
:
e
.
type
,
sceneCode
:
e
.
sceneCode
},
on
:{
cancelBind
:
e
.
cancelBind
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showNewCode
?
r
(
"newErrorCode"
,{
attrs
:{
errorSettingId
:
e
.
errorSettingId
},
on
:{
getList
:
e
.
getList
,
cancelNewCoce
:
e
.
cancelNewCoce
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
O
=
r
(
"VU/8"
)(
F
,
D
,
!
1
,
function
(
e
){
r
(
"f5l0"
)},
"data-v-c485e294"
,
null
);
t
.
default
=
O
.
exports
},
exGp
:
function
(
e
,
t
,
r
){
"use strict"
;
t
.
__esModule
=!
0
;
var
a
,
n
=
r
(
"//Fk"
),
i
=
(
a
=
n
)
&&
a
.
__esModule
?
a
:{
default
:
a
};
t
.
default
=
function
(
e
){
return
function
(){
var
t
=
e
.
apply
(
this
,
arguments
);
return
new
i
.
default
(
function
(
e
,
r
){
return
function
a
(
n
,
o
){
try
{
var
s
=
t
[
n
](
o
),
l
=
s
.
value
}
catch
(
e
){
return
void
r
(
e
)}
if
(
!
s
.
done
)
return
i
.
default
.
resolve
(
l
).
then
(
function
(
e
){
a
(
"next"
,
e
)},
function
(
e
){
a
(
"throw"
,
e
)});
e
(
l
)}(
"next"
)})}}},
f5l0
:
function
(
e
,
t
){},
jyFz
:
function
(
e
,
t
,
r
){
var
a
=
function
(){
return
this
}()
||
Function
(
"return this"
)(),
n
=
a
.
regeneratorRuntime
&&
Object
.
getOwnPropertyNames
(
a
).
indexOf
(
"regeneratorRuntime"
)
>=
0
,
i
=
n
&&
a
.
regeneratorRuntime
;
if
(
a
.
regeneratorRuntime
=
void
0
,
e
.
exports
=
r
(
"SldL"
),
n
)
a
.
regeneratorRuntime
=
i
;
else
try
{
delete
a
.
regeneratorRuntime
}
catch
(
e
){
a
.
regeneratorRuntime
=
void
0
}},
oPMN
:
function
(
e
,
t
){},
xU1Q
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/
4.8986d02b4b782618f64
2.js
→
dist/static/js/
5.9e039b3008bbf555db6
2.js
View file @
e7ab42bf
webpackJsonp
([
4
],{
"+Mqh"
:
function
(
e
,
t
){},
"0amw"
:
function
(
e
,
t
){},
"8PC5"
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAB0NJREFUWAnFl9tvVUUUxteavfdpy6WUq0QuMRrEoIiXhEsiERMjKpjIg6+8kPDsA0/+A8Q/QOODrz4YeUCjhhgj0cSkSgyaFIOGu1y0lpZSaDn7MuNv7d1zaemx1SZl2rP3npk9M9+s9a1v1laZoRweDsskk1VFt2gtiI/rovUukRUioRDRrm4Rq0fUY6szh/0S6hl1m9LJGNX/Vo5o79lycPuwg1fDSjfhj4rzfVHkJWFV0cDdB3VOoziEiHrkrCrK3cdxUJsoqonE6gEZeEN62cve9rlne14my2uu/aXDIST1Mf9Omvu+UHjJvIaMLeeFC0URSRHsLtxVPPXcS/DeaVY4KbyTkIr4zElKPYi7zU6O86N17mUKoD8H5EjIwoYcq9d9HMpF2WooVDMaQ16UC+epuoyq+S8PEXcvBrQOwCyAlj5v/RJnDP+c+tBcIUGBquw/FQ5KLs+mMCPC7JAAyzBdLQ6ixhwDlkgccvX4DHDmOP4K9VxxLa5ytIWQMtxG8ay1OGKwP4lNn6FpU2O9TvcS0N7+8FIust9xiYwzmNzM4m2rrBs0YtuAM98lGqATLyXGlMAY9QDGiPaGsDpzONXCDFXgYuMbjZr8LJIN87CDWscS7/4ubMHch2ymOGJyoBgQUce+2S5EyTVoAiTwliEUMIfL8UgUJPU+REksuEhiXwQMxVtwyOeGHVzwDtMwtyQaX8a5o7zwSidEznk5BnEfs51BkZK0FrtZqpBT4QaTs0y9MBdE0MaJ99YXpMgdzk3Up6CxwWD0wWEXlgVXCvGN4J7JjfCZmVGSUfb9KVubkewWDmuYZ2eRyTbmZDIjZmUmm6gAVJZZOCl7BrS5CDdadBGNLOLV2rM8QPxIs9RrylIBsCYGRvYME2c8595hcM9+XV0l+gxQN6dbqhVlQR5nY3t8JhHgCHmshe+ILqwSMRGRZgABZiD4x00Ru3chLdsjgAciDWFCAkwyigKyIV/qkIgCgOUGoTj9uJ9t6Ddw41w7qGaUWSOWWgWoN6DLF4zIS+m16MIlXTXV53tlRTdyyPzEEz/jPs4ZuOeGN9VC71LVpOpj/5AJ3dTzhb81gVG0JBfhAd85BUISYy18VxM9HSSH7GG7YZgCyBpYoQawA3jqBGIzVvAG/JZ9K2XjoQ1ROah8r3mJ5deJcGVLj25sNjUfYvkt9Vc+HK//YFxwhJvH4haV8F8TqJcSsojHZex9y4a1XNacpHrAvK+mXtZDEwdvZHE0A/jJMb1OFk0b3qxyxiUeV5q74FLJqRzTFKgWrg5VYMAPlP0wFO0IqJzRyy4YuNXDJYuaRjES3zENaJS2PntvDA42C9TJiTaTSjtqjJemHRY5EF7LuT1cBLON+XdAvID7NjPwRSKOaapy6m+RY5caNfNyq5wmbj6+2KojQhYAIS2jBPoQpRYcpbWM2cgCVpI8q6a/n0OtuZpPgFozUpfljYZt5CGPLm3U7N7EKk/x1rrFbX2Khai6XDlyEEg7+zBLkdg27CBG+dGWaDJZmROg9ZbskIn8NE01ro5XC49k0jM4Lfu5Ptk3lMuSh8aTzUO17AqKcM90yciNfhhviFY0npDMc5zGOnMCtHMZk+D7/sEKwAzXdptM69beNSLbiAl3VbKzJFOcUoQyWkS8BY1LMW5yZ06ATHPmW4h1x7GD5KCwrJoR7rHntEO5cwhaK0/1OVpovmBsvAUXiRzCjGBS4bxVlJyg8Xaoo8LoKGVWC72MvV9bj8vmaaX+Uem+cJfTw5SavCXFXkmMdUzPYT2EL4N1VkA/IuoX7orsWSVyYJ3t4f5yif5HOrDoWl1ufjIYBq5nMszRpngJ/SkcVAJNrBFW4kZHpXSzAroNevs9DbF7SeKtjFsb4re2p6rrRKtvgiga4bR/eLLvRibp6btShkOMlTkJ+RDgC4HjDfepJDgtI7OcTO9nFcZqyanXX7DaiWtT2xq1MyMiX/7RqMEVHJGxtuVQ5h6yCYSw4PQnO7AThT5LhfNJdZ/VQq2pW0/bV4tsRRxnKs+tFNnc1+oxYpj2WCnzf+fBGCE9JC+Qu8BiJHhlRmzv/C9A+F+WdBhp5F/a1mcWMnYUuDmyD7YyPCCTHRVEl2XsNKLkVdi0DTV8ncu5OyKD99jINCfbYl//JdKHUs8E8sxtGTV3WH5EbCvpDBHP2QUQUs3yCyYhN7fM1MqcAQ3w2fdWf2fAx6937HuCQB/COzfsQwLZKUHFhH/MZ+8kjlKnbIZp++046bw6cNsLAHnSxNEwWW5ECkMuhATYj8PWDlwrCwKoXMnLFhK93QSYQ3qq/JoOngFFxLnovJIZLBygEpWs5djaB6fiMiciuixpS4MML+qSo/bKQgPCYdKDUd5EChbbUYbFUvLsdz/apLD0QQCyVYkzePQ6gFYD7oOvduhFa7ay8Baq1q2uQY6d3KXftzc9SEDvfbtH328HY8/ka3IaSeLoXLiCDPyOJd6eacV/AHIL53dgZjL3AAAAAElFTkSuQmCC"
},
Alw0
:
function
(
e
,
t
){},
DAuE
:
function
(
e
,
t
){},
FtC4
:
function
(
e
,
t
){},
"JN/y"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"bOdI"
),
o
=
a
.
n
(
r
),
n
=
a
(
"BO1k"
),
i
=
a
.
n
(
n
),
s
=
a
(
"319J"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"PEkr"
),
d
=
{
props
:{
ruleId
:{
type
:
String
,
default
:
function
(){
return
""
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
projectList
:[],
groupList
:[],
apiList
:[],
form
:{
rangeType
:
0
,
rangeInfo
:
""
,
projectId
:
""
,
projectName
:
""
,
groupId
:
""
,
groupName
:
""
,
interfaceId
:
""
,
interfaceName
:
""
,
ruleContent
:
""
,
grade
:
1
,
count
:
""
,
strategy
:
0
,
distFlag
:
!
1
,
enableFlag
:
!
1
},
rule
:{
projectId
:[{
required
:
!
0
,
message
:
"请选择项目"
,
trigger
:
"change"
}],
groupId
:[{
required
:
!
0
,
message
:
"请选择分组"
,
trigger
:
"change"
}],
interfaceId
:[{
required
:
!
0
,
message
:
"请选择接口"
,
trigger
:
"change"
}],
count
:[{
required
:
!
0
,
message
:
"请选择阈值"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
(
0
|
\
+
?[
1
-
9
][
0
-
9
]
*
)
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"阈值必须输入正整数"
))},
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getProjectList
(),
this
.
ruleId
&&
this
.
getInfo
()},
methods
:{
getInfo
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
ruleId
:
this
.
ruleId
};
Object
(
l
.
a
)(
"/gateway-manage//rule/ratelimiter/detail"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
form
.
rangeType
=
t
.
data
.
result
.
rangeType
,
0
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
1
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
2
===
e
.
form
.
rangeType
&&
(
e
.
getApiList
(),
e
.
getGroupList
()),
e
.
form
.
projectId
=
t
.
data
.
result
.
projectId
,
e
.
form
.
interfaceId
=
t
.
data
.
result
.
interfaceId
,
e
.
form
.
groupId
=
t
.
data
.
result
.
groupId
,
e
.
form
.
grade
=
t
.
data
.
result
.
grade
,
e
.
form
.
count
=
t
.
data
.
result
.
count
,
e
.
form
.
strategy
=
t
.
data
.
result
.
strategy
,
e
.
form
.
distFlag
=
1
===
t
.
data
.
result
.
distFlag
,
e
.
form
.
enableFlag
=
1
===
t
.
data
.
result
.
enableFlag
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
groupId
=
""
,
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
0
,
id
:
this
.
form
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getApiList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
1
,
id
:
this
.
form
.
groupId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
apiList
=
t
.
data
.
result
:
e
.
apiList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
function
(
e
){
var
t
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
0
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
,
t
.
form
.
rangeInfo
=
t
.
form
.
projectId
):
1
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
,
t
.
form
.
rangeInfo
=
t
.
form
.
groupId
):
2
===
t
.
form
.
rangeType
&&
(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
interfaceName
=
t
.
apiList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
interfaceId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
+
"-"
+
t
.
form
.
interfaceName
,
t
.
form
.
rangeInfo
=
t
.
form
.
interfaceId
);
var
a
=
{
sceneCode
:
t
.
sceneCode
,
rangeType
:
t
.
form
.
rangeType
,
rangeInfo
:
t
.
form
.
rangeInfo
,
ruleContent
:
t
.
form
.
ruleContent
,
grade
:
t
.
form
.
grade
,
count
:
t
.
form
.
count
,
strategy
:
t
.
form
.
strategy
,
distFlag
:
t
.
form
.
distFlag
?
1
:
0
,
enableFlag
:
t
.
form
.
enableFlag
?
1
:
0
};
t
.
ruleId
&&
(
a
.
rateLimiterId
=
t
.
ruleId
),
Object
(
l
.
a
)(
"/gateway-manage//rule/ratelimiter/save"
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"getList"
),
t
.
$emit
(
"cancelAdd"
)):
t
.
$message
.
error
(
e
.
data
.
message
)})})},
close
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelAdd"
)}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
ruleId
?
"编辑流控规则"
:
"新建流控规则"
,
visible
:
e
.
dialogVisible
,
width
:
"400px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
close
(
"form"
)}}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
form
,
rules
:
e
.
rule
,
"label-width"
:
"100px"
,
"label-position"
:
"right"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控范围"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"项目"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"分组"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"接口"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控内容"
,
prop
:
"projectId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择项目"
},
on
:{
change
:
e
.
getGroupList
},
model
:{
value
:
e
.
form
.
projectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"projectId"
,
t
)},
expression
:
"form.projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
0
!==
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"groupId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择分组"
,
disabled
:
""
===
e
.
form
.
projectId
},
on
:{
change
:
e
.
getApiList
},
model
:{
value
:
e
.
form
.
groupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"groupId"
,
t
)},
expression
:
"form.groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"interfaceId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择接口"
,
disabled
:
""
===
e
.
form
.
groupId
},
model
:{
value
:
e
.
form
.
interfaceId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"interfaceId"
,
t
)},
expression
:
"form.interfaceId"
}},
e
.
_l
(
e
.
apiList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值类型"
,
prop
:
"grade"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
grade
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"grade"
,
t
)},
expression
:
"form.grade"
}},[
e
.
_v
(
"QPS"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值"
,
prop
:
"count"
}},[
a
(
"el-input"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入阈值"
},
model
:{
value
:
e
.
form
.
count
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"count"
,
t
)},
expression
:
"form.count"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控方式"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
strategy
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"strategy"
,
t
)},
expression
:
"form.strategy"
}},[
e
.
_v
(
"快速失败"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"分布式限流"
,
prop
:
"count"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
distFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"distFlag"
,
t
)},
expression
:
"form.distFlag"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"是否开启"
,
prop
:
"count"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
enableFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"enableFlag"
,
t
)},
expression
:
"form.enableFlag"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
close
(
"form"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"form"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"0amw"
)},
"data-v-7928b793"
,
null
).
exports
,
m
=
{
props
:{
ruleId
:{
type
:
String
,
default
:
function
(){
return
""
}},
alarmType
:{
type
:
Number
,
default
:
function
(){
return
0
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
5
}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getList
()},
methods
:{
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
ruleId
:
this
.
ruleId
,
sceneCode
:
this
.
sceneCode
,
alarmType
:
this
.
alarmType
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
},
a
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/log"
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
.
result
.
length
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
close
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
$emit
(
"cancelLog"
)}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
1
===
e
.
alarmType
?
"流控日志"
:
"熔断日志"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
close
}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-table"
,{
staticClass
:
"dialog-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmType"
,
label
:
"告警类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"流控告警"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"熔断告警"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmContent"
,
label
:
1
===
e
.
alarmType
?
"流控内容"
:
"熔断内容"
,
width
:
"300px"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"updateTime"
,
label
:
"发生时间"
},
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
)))])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
>
0
?
a
(
"div"
,{
staticClass
:
"page-content"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
"prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
,
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
}}})],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
m
,
f
,
!
1
,
function
(
e
){
a
(
"+Mqh"
)},
"data-v-d52bf870"
,
null
).
exports
,
h
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
newRule
:
g
,
ahshLog
:
p
},
data
:
function
(){
return
{
showRuleDialog
:
!
1
,
ruleId
:
""
,
showDialog
:
""
,
alarmType
:
1
}},
methods
:{
deleteList
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
rateLimiterId
:
e
.
rateLimiterId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/ratelimiter/del"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
getList
():
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getList
:
function
(){
this
.
$emit
(
"getList"
)},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
{
enableFlag
:
e
.
enableFlag
?
1
:
0
,
rateLimiterId
:
e
.
rateLimiterId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/ratelimiter/enable"
,
a
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
$emit
(
"getList"
):(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))})},
edit
:
function
(
e
){
this
.
ruleId
=
e
.
rateLimiterId
,
this
.
showRuleDialog
=!
0
},
cancelAdd
:
function
(){
this
.
showRuleDialog
=!
1
},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
rateLimiterId
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
}}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"流控ID"
,
prop
:
"ruleCode"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
ruleCode
))]),
e
.
_v
(
" "
),
1
===
t
.
row
.
editeFlag
?
a
(
"span"
,{
staticClass
:
"sign-design"
},[
e
.
_v
(
"未发布"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"rangeType"
,
label
:
"流控范围"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"项目"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"分组"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"接口"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"ruleContent"
,
label
:
"流控内容"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"阈值类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
grade
?
a
(
"p"
,[
e
.
_v
(
"QPS"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"count"
,
label
:
"阈值"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"strategy"
,
label
:
"流控方式"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
strategy
?
a
(
"p"
,[
e
.
_v
(
"快速失败"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"分布式限流"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
distFlag
?
a
(
"p"
,[
e
.
_v
(
"是"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
0
===
t
.
row
.
distFlag
?
a
(
"p"
,[
e
.
_v
(
"否"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"enableFlag"
,
label
:
"开启状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
changeFlag
(
t
.
row
)}},
model
:{
value
:
t
.
row
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"enableFlag"
,
a
)},
expression
:
"scope.row.enableFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除该数据吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
deleteList
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
.
row
)}}},[
e
.
_v
(
"日志"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showRuleDialog
?
a
(
"newRule"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
},
on
:{
cancelAdd
:
e
.
cancelAdd
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showDialog
?
a
(
"ahshLog"
,{
attrs
:{
alarmType
:
e
.
alarmType
,
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
e
){
a
(
"Twux"
)},
"data-v-70574bb8"
,
null
).
exports
,
y
=
{
props
:{
degradeId
:{
type
:
String
,
default
:
function
(){
return
""
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
projectList
:[],
groupList
:[],
apiList
:[],
form
:{
rangeType
:
0
,
rangeInfo
:
""
,
ruleContent
:
""
,
projectId
:
""
,
projectName
:
""
,
groupId
:
""
,
groupName
:
""
,
interfaceId
:
""
,
interfaceName
:
""
,
grade
:
1
,
count
:
""
,
timeWindow
:
""
,
enableFlag
:
!
1
},
rule
:{
projectId
:[{
required
:
!
0
,
message
:
"请选择项目"
,
trigger
:
"change"
}],
groupId
:[{
required
:
!
0
,
message
:
"请选择分组"
,
trigger
:
"change"
}],
interfaceId
:[{
required
:
!
0
,
message
:
"请选择接口"
,
trigger
:
"change"
}],
count
:[{
required
:
!
0
,
message
:
"请输入异常比例"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
\
d
{
0
,
8
}
\
.{
0
,
1
}(
\
d
{
1
,
2
})?
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"请输入0-1且小数不超过两位的数字"
))},
trigger
:
"blur"
}],
timeWindow
:[{
required
:
!
0
,
message
:
"请输入时间窗口"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
(
0
|
\
+
?[
1
-
9
][
0
-
9
]
*
)
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"时间必须输入正整数"
))},
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getProjectList
(),
this
.
degradeId
&&
this
.
getInfo
()},
methods
:{
getInfo
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
ruleId
:
this
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/detail"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
form
.
rangeType
=
t
.
data
.
result
.
rangeType
,
0
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
1
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
2
===
e
.
form
.
rangeType
&&
(
e
.
getApiList
(),
e
.
getGroupList
()),
e
.
form
.
projectId
=
t
.
data
.
result
.
projectId
,
e
.
form
.
interfaceId
=
t
.
data
.
result
.
interfaceId
,
e
.
form
.
groupId
=
t
.
data
.
result
.
groupId
,
e
.
form
.
grade
=
t
.
data
.
result
.
grade
,
e
.
form
.
count
=
t
.
data
.
result
.
count
,
e
.
form
.
timeWindow
=
t
.
data
.
result
.
timeWindow
,
e
.
form
.
enableFlag
=
1
===
t
.
data
.
result
.
enableFlag
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
groupId
=
""
,
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
0
,
id
:
this
.
form
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getApiList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
1
,
id
:
this
.
form
.
groupId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
apiList
=
t
.
data
.
result
:
e
.
apiList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
function
(
e
){
var
t
=
this
,
a
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
0
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
,
t
.
form
.
rangeInfo
=
t
.
form
.
projectId
):
1
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
,
t
.
form
.
rangeInfo
=
t
.
form
.
groupId
):
2
===
t
.
form
.
rangeType
&&
(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
interfaceName
=
t
.
apiList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
interfaceId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
+
"-"
+
t
.
form
.
interfaceName
,
t
.
form
.
rangeInfo
=
t
.
form
.
interfaceId
);
var
r
=
{
sceneCode
:
t
.
sceneCode
,
rangeType
:
t
.
form
.
rangeType
,
rangeInfo
:
t
.
form
.
rangeInfo
,
ruleContent
:
t
.
form
.
ruleContent
,
grade
:
t
.
form
.
grade
,
count
:
t
.
form
.
count
,
timeWindow
:
t
.
form
.
timeWindow
,
enableFlag
:
t
.
form
.
enableFlag
?
1
:
0
};
t
.
degradeId
&&
(
r
.
degradeId
=
t
.
degradeId
),
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/save"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"cancelAddFlus"
),
t
.
$emit
(
"getList"
)):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
close
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelAddFlus"
)}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
degradeId
?
"编辑熔断规则"
:
"新建熔断规则"
,
visible
:
e
.
dialogVisible
,
width
:
"400px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
close
(
"form"
)}}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
form
,
rules
:
e
.
rule
,
"label-width"
:
"100px"
,
"label-position"
:
"right"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"熔断范围"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"项目"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"分组"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"接口"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"熔断内容"
,
prop
:
"projectId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择项目"
},
on
:{
change
:
e
.
getGroupList
},
model
:{
value
:
e
.
form
.
projectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"projectId"
,
t
)},
expression
:
"form.projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
0
!==
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"groupId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择分组"
,
disabled
:
""
===
e
.
form
.
projectId
},
on
:{
change
:
e
.
getApiList
},
model
:{
value
:
e
.
form
.
groupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"groupId"
,
t
)},
expression
:
"form.groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"interfaceId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择接口"
,
disabled
:
""
===
e
.
form
.
groupId
},
model
:{
value
:
e
.
form
.
interfaceId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"interfaceId"
,
t
)},
expression
:
"form.interfaceId"
}},
e
.
_l
(
e
.
apiList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值类型"
,
prop
:
"grade"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
grade
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"grade"
,
t
)},
expression
:
"form.grade"
}},[
e
.
_v
(
"异常比例"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"异常比例"
,
prop
:
"count"
}},[
a
(
"el-input"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入异常比例"
},
model
:{
value
:
e
.
form
.
count
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"count"
,
t
)},
expression
:
"form.count"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"时间窗口"
,
prop
:
"timeWindow"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入时间窗口"
,
"controls-position"
:
"right"
},
model
:{
value
:
e
.
form
.
timeWindow
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"timeWindow"
,
t
)},
expression
:
"form.timeWindow"
}}),
e
.
_v
(
" 秒
\
n "
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"是否开启"
,
prop
:
"enableFlag"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
enableFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"enableFlag"
,
t
)},
expression
:
"form.enableFlag"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
close
(
"form"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"form"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
w
=
a
(
"VU/8"
)(
y
,
I
,
!
1
,
function
(
e
){
a
(
"FtC4"
)},
"data-v-ba38da90"
,
null
).
exports
,
C
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
showFlusDialog
:
!
1
,
showDialog
:
!
1
,
alarmType
:
2
}},
methods
:{
deleteList
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
degradeId
:
e
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/del"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
getList
():
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getList
:
function
(){
this
.
$emit
(
"getList"
)},
edit
:
function
(
e
){
this
.
degradeId
=
e
.
degradeId
,
this
.
showFlusDialog
=!
0
},
cancelAddFlus
:
function
(){
this
.
showFlusDialog
=!
1
},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
enableFlag
:
e
.
enableFlag
?
1
:
0
,
degradeId
:
e
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/enable"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
$emit
(
"getList"
):(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
degradeId
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
}},
components
:{
newSet
:
w
,
ahshLog
:
p
}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"熔断ID"
,
prop
:
"ruleCode"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
ruleCode
))]),
e
.
_v
(
" "
),
1
===
t
.
row
.
editeFlag
?
a
(
"span"
,{
staticClass
:
"sign-design"
},[
e
.
_v
(
"未发布"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"rangeType"
,
label
:
"熔断范围"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"项目"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"分组"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"接口"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"其他"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"ruleContent"
,
label
:
"熔断内容"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"阈值类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
grade
?
a
(
"p"
,[
e
.
_v
(
"异常比例"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"count"
,
label
:
"阈值"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
100
*
t
.
row
.
count
)
+
"%"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"timeWindow"
,
label
:
"时间窗口"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
timeWindow
)
+
"秒"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"enableFlag"
,
label
:
"开启状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
changeFlag
(
t
.
row
)}},
model
:{
value
:
t
.
row
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"enableFlag"
,
a
)},
expression
:
"scope.row.enableFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除该数据吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
deleteList
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
.
row
)}}},[
e
.
_v
(
"日志"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showFlusDialog
?
a
(
"newSet"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
degradeId
:
e
.
degradeId
},
on
:{
cancelAddFlus
:
e
.
cancelAddFlus
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showDialog
?
a
(
"ahshLog"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
,
alarmType
:
e
.
alarmType
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
C
,
L
,
!
1
,
function
(
e
){
a
(
"DAuE"
)},
"data-v-cd61b720"
,
null
).
exports
,
F
=
{
props
:{
alarmType
:{
type
:
Number
,
default
:
function
(){
return
0
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
5
}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getList
()},
methods
:{
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
sceneCode
:
this
.
sceneCode
,
alarmType
:
this
.
alarmType
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
},
a
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/log"
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
.
result
.
length
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
close
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
$emit
(
"cancelLog"
)}}},
j
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"日志"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
close
}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-table"
,{
staticClass
:
"dialog-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmType"
,
label
:
"告警类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"流控告警"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"熔断告警"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmContent"
,
label
:
"告警内容"
,
width
:
"300px"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"updateTime"
,
label
:
"发生时间"
},
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
)))])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
>
0
?
a
(
"div"
,{
staticClass
:
"page-content"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
"prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
,
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
}}})],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
A
=
a
(
"VU/8"
)(
F
,
j
,
!
1
,
function
(
e
){
a
(
"pj1/"
)},
"data-v-d3b90fa2"
,
null
).
exports
,
D
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
showDialog
:
!
1
,
refash
:
!
1
}},
methods
:{
handleChange
:
function
(
e
){
this
.
$emit
(
"changeFlag"
,
e
)},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
sceneCode
,
this
.
alarmType
=
e
.
alarmType
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
},
editItemm
:
function
(
e
){
var
t
=
this
,
a
=
this
;
if
(
this
.
refash
=!
this
.
refash
,
e
.
editStatus
=!
e
.
editStatus
,
!
e
.
editStatus
){
var
r
=
{
alarmType
:
e
.
alarmType
,
alarmInfo
:
e
.
alarmInfo
,
sceneCode
:
this
.
sceneCode
};
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/edit"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?(
t
.
$emit
(
"getList"
),
t
.
$message
.
success
(
"保存成功"
)):(
e
.
editStatus
=!
e
.
editStatus
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}}},
components
:{
alarmLog
:
A
}},
T
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"list-content"
},
e
.
_l
(
e
.
tableData
,
function
(
t
,
o
){
return
r
(
"div"
,{
key
:
o
,
staticClass
:
"list-item"
},[
r
(
"div"
,{
staticClass
:
"item-top"
},[
1
===
t
.
alarmType
?
r
(
"img"
,{
attrs
:{
src
:
a
(
"vgET"
),
alt
:
""
}}):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
alarmType
?
r
(
"img"
,{
attrs
:{
src
:
a
(
"8PC5"
),
alt
:
""
}}):
e
.
_e
(),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"item-info"
},[
r
(
"p"
,{
staticClass
:
"info-type"
},[
e
.
_v
(
e
.
_s
(
1
===
t
.
alarmType
?
"流控告警"
:
"熔断告警"
))]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
"Webhook通知地址"
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"address"
},[
t
.
editStatus
?
r
(
"el-input"
,{
staticStyle
:{
width
:
"368px"
,
height
:
"78px"
},
attrs
:{
type
:
"textarea"
,
resize
:
"none"
,
placeholder
:
"请输入内容"
},
model
:{
value
:
t
.
alarmInfo
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"alarmInfo"
,
a
)},
expression
:
"item.alarmInfo"
}}):
r
(
"p"
,[
e
.
_v
(
e
.
_s
(
t
.
alarmInfo
))])],
1
)])]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"item-bottom"
},[
r
(
"div"
,[
r
(
"p"
,{
on
:{
click
:
function
(
a
){
e
.
editItemm
(
t
)}}},[
e
.
_v
(
e
.
_s
(
t
.
editStatus
?
"保存"
:
"编辑"
)
+
"Webhook通知地址"
)]),
e
.
_v
(
" "
),
r
(
"p"
,{
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
)}}},[
e
.
_v
(
"日志"
)])]),
e
.
_v
(
" "
),
r
(
"span"
,{
staticStyle
:{
display
:
"none"
}},[
e
.
_v
(
e
.
_s
(
e
.
refash
))]),
e
.
_v
(
" "
),
r
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
handleChange
(
t
)}},
model
:{
value
:
t
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"enableFlag"
,
a
)},
expression
:
"item.enableFlag"
}})],
1
)])})),
e
.
_v
(
" "
),
e
.
showDialog
?
r
(
"alarmLog"
,{
attrs
:{
alarmType
:
e
.
alarmType
,
sceneCode
:
e
.
sceneCode
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
D
,
T
,
!
1
,
function
(
e
){
a
(
"bBUd"
)},
"data-v-fd99d76e"
,
null
).
exports
,
k
=
{
name
:
"envManage"
,
components
:{
navBread
:
s
.
a
,
selectEnv
:
c
.
a
,
fluidList
:
b
,
fusingList
:
_
,
warnSet
:
S
,
newRule
:
g
,
newSet
:
w
},
data
:
function
(){
return
{
navPath
:[{
name
:
"插件管理"
,
path
:
"/pluginManage"
},{
name
:
"AHAS"
,
path
:
""
}],
activeName
:
"first"
,
search
:
""
,
showdialog
:
!
1
,
pluginId
:
""
,
sceneCode
:
""
,
pluginType
:
0
,
projectList
:[],
projectId
:
""
,
groupList
:[],
groupId
:
""
,
total
:
0
,
currentPage
:
1
,
pageSize
:
20
,
pageSizes
:[
20
,
40
,
60
,
80
],
tableData
:[],
loading
:
!
1
,
showRuleDialog
:
!
1
,
showFlusDialog
:
!
1
,
publishNum
:
0
}},
created
:
function
(){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()},
methods
:{
handleClick
:
function
(
e
,
t
){
this
.
search
=
""
,
this
.
projectId
=
""
,
this
.
groupId
=
""
,
this
.
getList
()},
goEnvList
:
function
(){
this
.
showdialog
=!
0
,
this
.
pluginId
=
this
.
pluginId
},
closeDialog
:
function
(){
this
.
showdialog
=!
1
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getChange
:
function
(){
this
.
groupId
=
""
,
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
()},
getSearchList
:
function
(){
"first"
!==
this
.
activeName
&&
"second"
!==
this
.
activeName
||
(
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
())},
getList
:
function
(){
var
e
=
this
,
t
=
""
,
a
=
{};
"first"
===
this
.
activeName
?(
t
=
"/gateway-manage/rule/ratelimiter/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"second"
===
this
.
activeName
?(
t
=
"/gateway-manage/rule/degrade/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"third"
===
this
.
activeName
&&
(
t
=
"/gateway-manage/rule/alarm/list"
,
a
=
{
sceneCode
:
this
.
sceneCode
}),
this
.
tableData
=
[],
this
.
loading
=!
0
;
var
r
=
this
;
Object
(
l
.
a
)(
t
,
a
).
then
(
function
(
t
){
if
(
"0000"
==
t
.
data
.
code
){
if
(
"first"
===
e
.
activeName
){
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
total
=
0
,
e
.
tableData
=
[]);
var
a
=!
0
,
r
=!
1
,
o
=
void
0
;
try
{
for
(
var
n
,
s
=
i
()(
e
.
tableData
);
!
(
a
=
(
n
=
s
.
next
()).
done
);
a
=!
0
){
var
l
=
n
.
value
;
l
.
enableFlag
=
1
===
l
.
enableFlag
}}
catch
(
e
){
r
=!
0
,
o
=
e
}
finally
{
try
{
!
a
&&
s
.
return
&&
s
.
return
()}
finally
{
if
(
r
)
throw
o
}}}
else
if
(
"second"
===
e
.
activeName
){
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
total
=
0
,
e
.
tableData
=
[]);
var
c
=!
0
,
d
=!
1
,
u
=
void
0
;
try
{
for
(
var
g
,
m
=
i
()(
e
.
tableData
);
!
(
c
=
(
g
=
m
.
next
()).
done
);
c
=!
0
){
var
f
=
g
.
value
;
f
.
enableFlag
=
1
===
f
.
enableFlag
}}
catch
(
e
){
d
=!
0
,
u
=
e
}
finally
{
try
{
!
c
&&
m
.
return
&&
m
.
return
()}
finally
{
if
(
d
)
throw
u
}}}
else
if
(
"third"
===
e
.
activeName
){
t
.
data
.
result
?
e
.
tableData
=
t
.
data
.
result
:
e
.
tableData
=
[];
var
p
=!
0
,
h
=!
1
,
v
=
void
0
;
try
{
for
(
var
b
,
y
=
i
()(
e
.
tableData
);
!
(
p
=
(
b
=
y
.
next
()).
done
);
p
=!
0
){
var
I
=
b
.
value
;
I
.
enableFlag
=
1
===
I
.
enableFlag
,
I
.
editStatus
=!
1
}}
catch
(
e
){
h
=!
0
,
v
=
e
}
finally
{
try
{
!
p
&&
y
.
return
&&
y
.
return
()}
finally
{
if
(
h
)
throw
v
}}}
e
.
loading
=!
1
,
e
.
getUpdateStatus
()}
else
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
alarmType
:
e
.
alarmType
,
enableFlag
:
e
.
enableFlag
?
1
:
0
,
sceneCode
:
this
.
sceneCode
};
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/enable"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
getList
():(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
type
:
0
,
id
:
this
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addFluid
:
function
(){
this
.
showRuleDialog
=!
0
},
cancelAdd
:
function
(){
this
.
showRuleDialog
=!
1
},
addFusing
:
function
(){
this
.
showFlusDialog
=!
0
},
cancelAddFlus
:
function
(){
this
.
showFlusDialog
=!
1
},
publish
:
function
(){
var
e
=
this
,
t
=
{
sceneCode
:
this
.
sceneCode
},
a
=
""
;
"first"
===
this
.
activeName
?
a
=
"/gateway-manage/rule/ratelimiter/publish"
:
"second"
===
this
.
activeName
&&
(
a
=
"/gateway-manage/rule/degrade/publish"
);
var
r
=
this
;
this
.
$confirm
(
"确定要发布吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
l
.
a
)(
a
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
e
.
getList
():
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}).
catch
(
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消发布"
})})},
getUpdateStatus
:
function
(
e
){
var
t
=
this
,
a
=
{
sceneCode
:
e
||
this
.
sceneCode
},
r
=
""
;
r
=
"first"
===
this
.
activeName
?
"/gateway-manage/rule/ratelimiter/has/edit"
:
"/gateway-manage/rule/degrade/has/edit"
,
Object
(
l
.
a
)(
r
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
publishNum
=
e
.
data
.
result
:
t
.
$message
.
error
(
e
.
data
.
message
)})}},
watch
:
o
()({
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
"$route"
,
function
(
e
,
t
){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getList
()})},
N
=
{
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
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"change-env"
,
on
:{
click
:
e
.
goEnvList
}},[
a
(
"span"
,[
e
.
_v
(
"切换环境"
)]),
a
(
"i"
,{
staticClass
:
"iconfont iconicon-qihuan"
,
on
:{
click
:
function
(
t
){
e
.
goEnvList
(
e
.
item
)}}})])],
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
:
"env-tab-wrap"
},[
a
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
"third"
!==
e
.
activeName
?
a
(
"div"
,{
staticClass
:
"search-box"
},[
a
(
"div"
,{
staticClass
:
"left"
},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
placeholder
:
"first"
===
e
.
activeName
?
"请输入接口名称/流控ID"
:
"请输入接口名称/熔断ID"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
function
(
t
){
e
.
getSearchList
()}},
nativeOn
:{
keyup
:
function
(
t
){
if
(
!
(
"button"
in
t
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
))
return
null
;
e
.
getSearchList
()}},
model
:{
value
:
e
.
search
,
callback
:
function
(
t
){
e
.
search
=
t
},
expression
:
"search"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
getChange
},
model
:{
value
:
e
.
projectId
,
callback
:
function
(
t
){
e
.
projectId
=
t
},
expression
:
"projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择分组"
,
size
:
"small"
,
clearable
:
""
,
disabled
:
""
===
e
.
projectId
},
on
:{
change
:
e
.
getSearchList
},
model
:{
value
:
e
.
groupId
,
callback
:
function
(
t
){
e
.
groupId
=
t
},
expression
:
"groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
"first"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFluid
}},[
e
.
_v
(
"新建流控规则"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"second"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFusing
}},[
e
.
_v
(
"新建熔断规则"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
publishNum
<=
0
},
on
:{
click
:
e
.
publish
}},[
e
.
_v
(
e
.
_s
(
e
.
publishNum
>
0
?
"待发布("
+
e
.
publishNum
+
")"
:
"发布"
))])],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"流控规则"
,
name
:
"first"
}},[
"first"
===
e
.
activeName
?
a
(
"fluidList"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"熔断规则"
,
name
:
"second"
}},[
"second"
===
e
.
activeName
?
a
(
"fusingList"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"告警配置"
,
name
:
"third"
}},[
"third"
===
e
.
activeName
?
a
(
"warnSet"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
,
changeFlag
:
e
.
changeFlag
}}):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
0
===
e
.
total
||
"first"
!==
e
.
activeName
&&
"second"
!==
e
.
activeName
?
e
.
_e
():
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
"margin-top"
:
"20px"
}},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:
e
.
pageSizes
,
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)],
1
)])]),
e
.
_v
(
" "
),
e
.
showdialog
?
a
(
"selectEnv"
,{
attrs
:{
pluginId
:
e
.
pluginId
,
pluginType
:
e
.
pluginType
},
on
:{
closeDialog
:
e
.
closeDialog
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showRuleDialog
?
a
(
"newRule"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
},
on
:{
cancelAdd
:
e
.
cancelAdd
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showFlusDialog
?
a
(
"newSet"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
},
on
:{
cancelAddFlus
:
e
.
cancelAddFlus
,
getList
:
e
.
getList
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
k
,
N
,
!
1
,
function
(
e
){
a
(
"Alw0"
)},
"data-v-57a03d4d"
,
null
);
t
.
default
=
x
.
exports
},
Twux
:
function
(
e
,
t
){},
bBUd
:
function
(
e
,
t
){},
"pj1/"
:
function
(
e
,
t
){},
vgET
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACMxJREFUWAmVmFuMVWcVx/97n3NmYG4Mc0EYYJqAQsslVE28pBqsl0hsm2hifDLGxtgaExMffPJF44OtD9XExNrUZ99I1FBNK5H6IGosKbRAOyAjZRhpuA04AzPAzDnb/2/t/Z2ZAUrKgr2/2/rW+q/Lt/Z3JtNd6PPPFqt6cg3NNZXVV6jVmFcGW62hYramrLPaU6t7vODxDemm57q83jTvwJCKbevVUbEp8ce4PatFhorx6UezsVCUNtJ+5afFoOU/U8yrX7mU18rVllSopayWqSg81XLfm7Os5q6B50higXembOMa9W0e0ReZgDG3rHYf3tjsefoMvd7oU0fFVk4+daho2NIfZk31I8BgQkWAMUuAsYCWHwRZUSHAGLR5QkmrUQqfvKDpI6f1+1ahW1hQBINb+vBWczYsKK0vAzT5in5gyRuDw+63sFCU4xn0AMY7wGNQRUjOS/nhAfcb5rVni9zhvDqj+ddOat98U5dCFsqR6TbcXA7bffS2AT3+bPENi/pwUuIwBOVWa3diVDGP18pQFfZWJsJJG40KQBtwgdCmA+dN2Y2bah06oVev3dC/kRKC/AqAMSgBMoYC0GPPFY8a9eN2f1ATS0rFuTlCIVpqTUfKI4MJAmhWuZyJCKXHFh4c9mj0Fiz3yLiOXJzRPyNklXLQJSDJY/mTLxTbWnP6Fm60lLDXSiMvbCI5Us4SClNlPUlainVo4h9r7hFSwkd+1ei7ZQ4jxyY18c55vRKgSuDhsgCTPNSba+9Inzbj/SabEcyADmRhkPkzQDgUcWoiGQ3SwrIwwDwBxsaEDMMPh2OGJ5Bp4dk7U5o+dkZ/sJxbCE2hS57KLXhNV6c+MTqgXeQFyQhjUGlpDOu5WgGGIBAK4yJpCkYodX2yh7LCdQkbjGGxFFgmCUV+OezFlVndfH08kv3yUu+gMxzPZL2mLQ8M6TONIlK13AwHrjdEuzwL0zPrstLgwnKvxQnDLbBbOd4zKNrCeZXldpX/ZzXPJ1vnSPb/6MD1GzqF/vC499cDIRZ60h4aemBQT5yb0R+9YSF0+IUwwMQxct2Ra81Atzo+t0MjO0c1vKpLXRZRXJ3V3NGzuvjXozo3NefibSOIfngRDXjRshw6jCjmbdibZ3TkQ+s1Ndyjj5lV2XefLy65HQw/u1MVPE3N6uXpOc0slAGMsOD2zrryb39BDxrM1kZddYTcTla08JfjOvGb/Rqbb9l4ow1gZkQPiUobdQ0PW/qGYfXt3KYncjwUD+6gT+PXQJf2DPVqgzfGUceJa1zaf/FN7d7zsLa/FxizibU9u7Qd3kHvAQyUjKaldDiR43OE7P+e18xTH9VCCcgTAYrWwMh4xt0d+uSGfu2sWWKn6++Pv6ZHRoc1ZLb3RaNDGvrJV/VIw3sdNtQjNjzTNCgTJ7c8jZHNXgsgFQDAxI5qjLs6c20d7dfu7+zRQ/cDJtT5tdGgCDEFNcA4BwkGKPBcFFP0VW70ISlB3NHCVD09nVqze7seQs77oXNT0nXuIxV9dru2+hB0+rOTF1VZwUFNg+CUgoz8hPIUnvCOJ9otYBj7tWPUd5d6VBv23JOuXpcOvi0dHl9kI6cMasRHrqz8pAWJYy+1wk2hKyAthszr4RHaKnS0AP7gyKLw23u3FkoAVwwEmrhYtuev+tI2X/Z579igYeu3C/wfEKg3wPhY4y4eU1mHyn7JBHIW2eA+w/5uyVcIXfifp8MOT1ZEeHgoWg6rJlxE+rqk6VnprbNykZJW90irusta5SKZhVcqMFZQIBM90HJAadbCgwPlFYDxd6WjZ9hyJ3WvMFh75O1JyQVVDz/ovsGc8h6e9YPS2gHnreuN8yZsctUuk9s6/SVQ0zcJJC8HxAwAvAS25I0r16SPb5E+sLpad5OI0+NKrf1vSMcnLNDhWGe+tf3SzFzJ1bvSxpzVnL+FhdMg4/PCxy5CBhi6JLcpJ08glMdD33OR7G7hOmnLUbzaocP9Sx/CyRqJz/6RAQu3QQBLfPTfmtQFwLDmK3LusBWEzwrKetmuQ1bIhw3Fy0ABsAL3xunlCerpOwggm9dJW+5yAJx/C38+rnfRjDd8wlIyZxhukJx6guLgAMYjvNIGxDg9ZvL1U/sPw35v+sim0iu3cx04phNXr/n+Y0Irnw3IOoqGvce1xk1Q+9PByPOLQBKgCuifDpUJGrvu43X2ki69eEBjpf32AKFBkYnwcXrJbtQw165DEbY064WlHqK/4Hrz65fuD9TZy7r8o7066JLQQgZJzJWE1jEqfLL40hMnQlmGLGD5RRsPaCtgbVDV+oxD9/PfSS/96945RUF8+XXpl/s0aEN8e7I2kpijjodIJJcAiw083Ld9kwyqAwsAfHXDCreBzHPJzcFZvfDUPgN69U1p1yYn8XrnjU8avHw2Tp2Tjk24HjljOH1DXfpSR0N/uzwnVyQTV2CDs3fiVzD5E6iqm1UdryCMbEcAsH1VKCkWq35qWPP8NdeYv/ub9Y+x2F7uZb8NggVZQebtq+tTK7t98q/rOB9TfvOZLX4wkM0hsvJQnP60F0XtXCJsHofXLDn1o2UtzS3tM+dx1DBksZ85Pz5N20Z79WnXJIIRN1DAEE/2OKTj/vnin38JzZLNSUi0fgVI1quFNL8MJOuASzxL2sTn4752Y68eW9mpOmD9s5t0KoxiqmtIzxgbnvMMr/Bb1XgihFcKQjZzfpL1oYR19rN2e8vckicZ5VO2cl2Pvty/Qt2+NXLqbrXq+tlvv55NAyPyKZyERHeqJloYlgq9o790PYFLLWCWrLdlucOfb0j2NV0a9t9fXtj3vew061AkNRsBE8DcjbFfll3OuUOyAug9ic2s06aNgPM4wpA2mifJ6u3Q3hefzg6mJVq+u3EikMXTHlsQsiGAEKo4OVV7V3AIYBMIqj7DZbwxEaH51XNPZs97eRnVbcFh86xKMhIK9gUlIFgLkx8UxDr9iq3N73GcGnghM0QZqVq+We6e7Nuk78f6ba//AxcahJX31IAzAAAAAElFTkSuQmCC"
}});
\ No newline at end of file
webpackJsonp
([
5
],{
"+Mqh"
:
function
(
e
,
t
){},
"0amw"
:
function
(
e
,
t
){},
"8PC5"
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,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"
},
Alw0
:
function
(
e
,
t
){},
DAuE
:
function
(
e
,
t
){},
FtC4
:
function
(
e
,
t
){},
"JN/y"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"bOdI"
),
o
=
a
.
n
(
r
),
n
=
a
(
"BO1k"
),
i
=
a
.
n
(
n
),
s
=
a
(
"319J"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"PEkr"
),
d
=
{
props
:{
ruleId
:{
type
:
String
,
default
:
function
(){
return
""
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
projectList
:[],
groupList
:[],
apiList
:[],
form
:{
rangeType
:
0
,
rangeInfo
:
""
,
projectId
:
""
,
projectName
:
""
,
groupId
:
""
,
groupName
:
""
,
interfaceId
:
""
,
interfaceName
:
""
,
ruleContent
:
""
,
grade
:
1
,
count
:
""
,
strategy
:
0
,
distFlag
:
!
1
,
enableFlag
:
!
1
},
rule
:{
projectId
:[{
required
:
!
0
,
message
:
"请选择项目"
,
trigger
:
"change"
}],
groupId
:[{
required
:
!
0
,
message
:
"请选择分组"
,
trigger
:
"change"
}],
interfaceId
:[{
required
:
!
0
,
message
:
"请选择接口"
,
trigger
:
"change"
}],
count
:[{
required
:
!
0
,
message
:
"请选择阈值"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
(
0
|
\
+
?[
1
-
9
][
0
-
9
]
*
)
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"阈值必须输入正整数"
))},
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getProjectList
(),
this
.
ruleId
&&
this
.
getInfo
()},
methods
:{
getInfo
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
ruleId
:
this
.
ruleId
};
Object
(
l
.
a
)(
"/gateway-manage//rule/ratelimiter/detail"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
form
.
rangeType
=
t
.
data
.
result
.
rangeType
,
0
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
1
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
2
===
e
.
form
.
rangeType
&&
(
e
.
getApiList
(),
e
.
getGroupList
()),
e
.
form
.
projectId
=
t
.
data
.
result
.
projectId
,
e
.
form
.
interfaceId
=
t
.
data
.
result
.
interfaceId
,
e
.
form
.
groupId
=
t
.
data
.
result
.
groupId
,
e
.
form
.
grade
=
t
.
data
.
result
.
grade
,
e
.
form
.
count
=
t
.
data
.
result
.
count
,
e
.
form
.
strategy
=
t
.
data
.
result
.
strategy
,
e
.
form
.
distFlag
=
1
===
t
.
data
.
result
.
distFlag
,
e
.
form
.
enableFlag
=
1
===
t
.
data
.
result
.
enableFlag
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
groupId
=
""
,
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
0
,
id
:
this
.
form
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getApiList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
1
,
id
:
this
.
form
.
groupId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
apiList
=
t
.
data
.
result
:
e
.
apiList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
function
(
e
){
var
t
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
0
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
,
t
.
form
.
rangeInfo
=
t
.
form
.
projectId
):
1
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
,
t
.
form
.
rangeInfo
=
t
.
form
.
groupId
):
2
===
t
.
form
.
rangeType
&&
(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
interfaceName
=
t
.
apiList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
interfaceId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
+
"-"
+
t
.
form
.
interfaceName
,
t
.
form
.
rangeInfo
=
t
.
form
.
interfaceId
);
var
a
=
{
sceneCode
:
t
.
sceneCode
,
rangeType
:
t
.
form
.
rangeType
,
rangeInfo
:
t
.
form
.
rangeInfo
,
ruleContent
:
t
.
form
.
ruleContent
,
grade
:
t
.
form
.
grade
,
count
:
t
.
form
.
count
,
strategy
:
t
.
form
.
strategy
,
distFlag
:
t
.
form
.
distFlag
?
1
:
0
,
enableFlag
:
t
.
form
.
enableFlag
?
1
:
0
};
t
.
ruleId
&&
(
a
.
rateLimiterId
=
t
.
ruleId
),
Object
(
l
.
a
)(
"/gateway-manage//rule/ratelimiter/save"
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"getList"
),
t
.
$emit
(
"cancelAdd"
)):
t
.
$message
.
error
(
e
.
data
.
message
)})})},
close
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelAdd"
)}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
ruleId
?
"编辑流控规则"
:
"新建流控规则"
,
visible
:
e
.
dialogVisible
,
width
:
"400px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
close
(
"form"
)}}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
form
,
rules
:
e
.
rule
,
"label-width"
:
"100px"
,
"label-position"
:
"right"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控范围"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"项目"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"分组"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"接口"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控内容"
,
prop
:
"projectId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择项目"
},
on
:{
change
:
e
.
getGroupList
},
model
:{
value
:
e
.
form
.
projectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"projectId"
,
t
)},
expression
:
"form.projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
0
!==
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"groupId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择分组"
,
disabled
:
""
===
e
.
form
.
projectId
},
on
:{
change
:
e
.
getApiList
},
model
:{
value
:
e
.
form
.
groupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"groupId"
,
t
)},
expression
:
"form.groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"interfaceId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择接口"
,
disabled
:
""
===
e
.
form
.
groupId
},
model
:{
value
:
e
.
form
.
interfaceId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"interfaceId"
,
t
)},
expression
:
"form.interfaceId"
}},
e
.
_l
(
e
.
apiList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值类型"
,
prop
:
"grade"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
grade
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"grade"
,
t
)},
expression
:
"form.grade"
}},[
e
.
_v
(
"QPS"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值"
,
prop
:
"count"
}},[
a
(
"el-input"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入阈值"
},
model
:{
value
:
e
.
form
.
count
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"count"
,
t
)},
expression
:
"form.count"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"流控方式"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
strategy
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"strategy"
,
t
)},
expression
:
"form.strategy"
}},[
e
.
_v
(
"快速失败"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"分布式限流"
,
prop
:
"count"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
distFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"distFlag"
,
t
)},
expression
:
"form.distFlag"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"是否开启"
,
prop
:
"count"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
enableFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"enableFlag"
,
t
)},
expression
:
"form.enableFlag"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
close
(
"form"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"form"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"0amw"
)},
"data-v-7928b793"
,
null
).
exports
,
m
=
{
props
:{
ruleId
:{
type
:
String
,
default
:
function
(){
return
""
}},
alarmType
:{
type
:
Number
,
default
:
function
(){
return
0
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
5
}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getList
()},
methods
:{
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
ruleId
:
this
.
ruleId
,
sceneCode
:
this
.
sceneCode
,
alarmType
:
this
.
alarmType
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
},
a
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/log"
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
.
result
.
length
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
close
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
$emit
(
"cancelLog"
)}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
1
===
e
.
alarmType
?
"流控日志"
:
"熔断日志"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
close
}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-table"
,{
staticClass
:
"dialog-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmType"
,
label
:
"告警类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"流控告警"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"熔断告警"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmContent"
,
label
:
1
===
e
.
alarmType
?
"流控内容"
:
"熔断内容"
,
width
:
"300px"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"updateTime"
,
label
:
"发生时间"
},
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
)))])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
>
0
?
a
(
"div"
,{
staticClass
:
"page-content"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
"prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
,
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
}}})],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
m
,
f
,
!
1
,
function
(
e
){
a
(
"+Mqh"
)},
"data-v-d52bf870"
,
null
).
exports
,
h
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
newRule
:
g
,
ahshLog
:
p
},
data
:
function
(){
return
{
showRuleDialog
:
!
1
,
ruleId
:
""
,
showDialog
:
""
,
alarmType
:
1
}},
methods
:{
deleteList
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
rateLimiterId
:
e
.
rateLimiterId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/ratelimiter/del"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
getList
():
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getList
:
function
(){
this
.
$emit
(
"getList"
)},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
{
enableFlag
:
e
.
enableFlag
?
1
:
0
,
rateLimiterId
:
e
.
rateLimiterId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/ratelimiter/enable"
,
a
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
$emit
(
"getList"
):(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))})},
edit
:
function
(
e
){
this
.
ruleId
=
e
.
rateLimiterId
,
this
.
showRuleDialog
=!
0
},
cancelAdd
:
function
(){
this
.
showRuleDialog
=!
1
},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
rateLimiterId
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
}}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"流控ID"
,
prop
:
"ruleCode"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
ruleCode
))]),
e
.
_v
(
" "
),
1
===
t
.
row
.
editeFlag
?
a
(
"span"
,{
staticClass
:
"sign-design"
},[
e
.
_v
(
"未发布"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"rangeType"
,
label
:
"流控范围"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"项目"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"分组"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"接口"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"ruleContent"
,
label
:
"流控内容"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"阈值类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
grade
?
a
(
"p"
,[
e
.
_v
(
"QPS"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"count"
,
label
:
"阈值"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"strategy"
,
label
:
"流控方式"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
strategy
?
a
(
"p"
,[
e
.
_v
(
"快速失败"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"分布式限流"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
distFlag
?
a
(
"p"
,[
e
.
_v
(
"是"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
0
===
t
.
row
.
distFlag
?
a
(
"p"
,[
e
.
_v
(
"否"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"enableFlag"
,
label
:
"开启状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
changeFlag
(
t
.
row
)}},
model
:{
value
:
t
.
row
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"enableFlag"
,
a
)},
expression
:
"scope.row.enableFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除该数据吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
deleteList
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
.
row
)}}},[
e
.
_v
(
"日志"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showRuleDialog
?
a
(
"newRule"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
},
on
:{
cancelAdd
:
e
.
cancelAdd
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showDialog
?
a
(
"ahshLog"
,{
attrs
:{
alarmType
:
e
.
alarmType
,
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
e
){
a
(
"Twux"
)},
"data-v-70574bb8"
,
null
).
exports
,
y
=
{
props
:{
degradeId
:{
type
:
String
,
default
:
function
(){
return
""
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
projectList
:[],
groupList
:[],
apiList
:[],
form
:{
rangeType
:
0
,
rangeInfo
:
""
,
ruleContent
:
""
,
projectId
:
""
,
projectName
:
""
,
groupId
:
""
,
groupName
:
""
,
interfaceId
:
""
,
interfaceName
:
""
,
grade
:
1
,
count
:
""
,
timeWindow
:
""
,
enableFlag
:
!
1
},
rule
:{
projectId
:[{
required
:
!
0
,
message
:
"请选择项目"
,
trigger
:
"change"
}],
groupId
:[{
required
:
!
0
,
message
:
"请选择分组"
,
trigger
:
"change"
}],
interfaceId
:[{
required
:
!
0
,
message
:
"请选择接口"
,
trigger
:
"change"
}],
count
:[{
required
:
!
0
,
message
:
"请输入异常比例"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
\
d
{
0
,
8
}
\
.{
0
,
1
}(
\
d
{
1
,
2
})?
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"请输入0-1且小数不超过两位的数字"
))},
trigger
:
"blur"
}],
timeWindow
:[{
required
:
!
0
,
message
:
"请输入时间窗口"
,
trigger
:
"blur"
},{
validator
:
function
(
e
,
t
,
a
){
/^
(
0
|
\
+
?[
1
-
9
][
0
-
9
]
*
)
$
/
.
test
(
t
)?
a
():
a
(
new
Error
(
"时间必须输入正整数"
))},
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getProjectList
(),
this
.
degradeId
&&
this
.
getInfo
()},
methods
:{
getInfo
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
ruleId
:
this
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/detail"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
form
.
rangeType
=
t
.
data
.
result
.
rangeType
,
0
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
1
===
e
.
form
.
rangeType
?
e
.
getGroupList
():
2
===
e
.
form
.
rangeType
&&
(
e
.
getApiList
(),
e
.
getGroupList
()),
e
.
form
.
projectId
=
t
.
data
.
result
.
projectId
,
e
.
form
.
interfaceId
=
t
.
data
.
result
.
interfaceId
,
e
.
form
.
groupId
=
t
.
data
.
result
.
groupId
,
e
.
form
.
grade
=
t
.
data
.
result
.
grade
,
e
.
form
.
count
=
t
.
data
.
result
.
count
,
e
.
form
.
timeWindow
=
t
.
data
.
result
.
timeWindow
,
e
.
form
.
enableFlag
=
1
===
t
.
data
.
result
.
enableFlag
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
groupId
=
""
,
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
0
,
id
:
this
.
form
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getApiList
:
function
(){
var
e
=
this
,
t
=
this
;
this
.
form
.
interfaceId
=
""
;
var
a
=
{
type
:
1
,
id
:
this
.
form
.
groupId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
apiList
=
t
.
data
.
result
:
e
.
apiList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
function
(
e
){
var
t
=
this
,
a
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
0
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
,
t
.
form
.
rangeInfo
=
t
.
form
.
projectId
):
1
===
t
.
form
.
rangeType
?(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
,
t
.
form
.
rangeInfo
=
t
.
form
.
groupId
):
2
===
t
.
form
.
rangeType
&&
(
t
.
form
.
projectName
=
t
.
projectList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
projectId
}).
name
,
t
.
form
.
groupName
=
t
.
groupList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
groupId
}).
name
,
t
.
form
.
interfaceName
=
t
.
apiList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
form
.
interfaceId
}).
name
,
t
.
form
.
ruleContent
=
t
.
form
.
projectName
+
"-"
+
t
.
form
.
groupName
+
"-"
+
t
.
form
.
interfaceName
,
t
.
form
.
rangeInfo
=
t
.
form
.
interfaceId
);
var
r
=
{
sceneCode
:
t
.
sceneCode
,
rangeType
:
t
.
form
.
rangeType
,
rangeInfo
:
t
.
form
.
rangeInfo
,
ruleContent
:
t
.
form
.
ruleContent
,
grade
:
t
.
form
.
grade
,
count
:
t
.
form
.
count
,
timeWindow
:
t
.
form
.
timeWindow
,
enableFlag
:
t
.
form
.
enableFlag
?
1
:
0
};
t
.
degradeId
&&
(
r
.
degradeId
=
t
.
degradeId
),
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/save"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"cancelAddFlus"
),
t
.
$emit
(
"getList"
)):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
close
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelAddFlus"
)}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
degradeId
?
"编辑熔断规则"
:
"新建熔断规则"
,
visible
:
e
.
dialogVisible
,
width
:
"400px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
close
(
"form"
)}}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
form
,
rules
:
e
.
rule
,
"label-width"
:
"100px"
,
"label-position"
:
"right"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"熔断范围"
,
prop
:
"rangeType"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"项目"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"分组"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
},
model
:{
value
:
e
.
form
.
rangeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"rangeType"
,
t
)},
expression
:
"form.rangeType"
}},[
e
.
_v
(
"接口"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"熔断内容"
,
prop
:
"projectId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择项目"
},
on
:{
change
:
e
.
getGroupList
},
model
:{
value
:
e
.
form
.
projectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"projectId"
,
t
)},
expression
:
"form.projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
0
!==
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"groupId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择分组"
,
disabled
:
""
===
e
.
form
.
projectId
},
on
:{
change
:
e
.
getApiList
},
model
:{
value
:
e
.
form
.
groupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"groupId"
,
t
)},
expression
:
"form.groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
e
.
form
.
rangeType
?
a
(
"el-form-item"
,{
attrs
:{
prop
:
"interfaceId"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择接口"
,
disabled
:
""
===
e
.
form
.
groupId
},
model
:{
value
:
e
.
form
.
interfaceId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"interfaceId"
,
t
)},
expression
:
"form.interfaceId"
}},
e
.
_l
(
e
.
apiList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"阈值类型"
,
prop
:
"grade"
}},[[
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
form
.
grade
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"grade"
,
t
)},
expression
:
"form.grade"
}},[
e
.
_v
(
"异常比例"
)])]],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"异常比例"
,
prop
:
"count"
}},[
a
(
"el-input"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入异常比例"
},
model
:{
value
:
e
.
form
.
count
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"count"
,
t
)},
expression
:
"form.count"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"时间窗口"
,
prop
:
"timeWindow"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-220"
,
attrs
:{
placeholder
:
"请输入时间窗口"
,
"controls-position"
:
"right"
},
model
:{
value
:
e
.
form
.
timeWindow
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"timeWindow"
,
t
)},
expression
:
"form.timeWindow"
}}),
e
.
_v
(
" 秒
\
n "
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"是否开启"
,
prop
:
"enableFlag"
}},[
a
(
"el-switch"
,{
model
:{
value
:
e
.
form
.
enableFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"enableFlag"
,
t
)},
expression
:
"form.enableFlag"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
close
(
"form"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"form"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
w
=
a
(
"VU/8"
)(
y
,
I
,
!
1
,
function
(
e
){
a
(
"FtC4"
)},
"data-v-ba38da90"
,
null
).
exports
,
C
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
showFlusDialog
:
!
1
,
showDialog
:
!
1
,
alarmType
:
2
}},
methods
:{
deleteList
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
degradeId
:
e
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/del"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
getList
():
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getList
:
function
(){
this
.
$emit
(
"getList"
)},
edit
:
function
(
e
){
this
.
degradeId
=
e
.
degradeId
,
this
.
showFlusDialog
=!
0
},
cancelAddFlus
:
function
(){
this
.
showFlusDialog
=!
1
},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
enableFlag
:
e
.
enableFlag
?
1
:
0
,
degradeId
:
e
.
degradeId
};
Object
(
l
.
a
)(
"/gateway-manage/rule/degrade/enable"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
$emit
(
"getList"
):(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
degradeId
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
}},
components
:{
newSet
:
w
,
ahshLog
:
p
}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"熔断ID"
,
prop
:
"ruleCode"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
ruleCode
))]),
e
.
_v
(
" "
),
1
===
t
.
row
.
editeFlag
?
a
(
"span"
,{
staticClass
:
"sign-design"
},[
e
.
_v
(
"未发布"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"rangeType"
,
label
:
"熔断范围"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"项目"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"分组"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"接口"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
===
t
.
row
.
rangeType
?
a
(
"p"
,[
e
.
_v
(
"其他"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"ruleContent"
,
label
:
"熔断内容"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"grade"
,
label
:
"阈值类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
grade
?
a
(
"p"
,[
e
.
_v
(
"异常比例"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"count"
,
label
:
"阈值"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
100
*
t
.
row
.
count
)
+
"%"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"timeWindow"
,
label
:
"时间窗口"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
timeWindow
)
+
"秒"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"enableFlag"
,
label
:
"开启状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
changeFlag
(
t
.
row
)}},
model
:{
value
:
t
.
row
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"enableFlag"
,
a
)},
expression
:
"scope.row.enableFlag"
}})]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除该数据吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
deleteList
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
.
row
)}}},[
e
.
_v
(
"日志"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showFlusDialog
?
a
(
"newSet"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
degradeId
:
e
.
degradeId
},
on
:{
cancelAddFlus
:
e
.
cancelAddFlus
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showDialog
?
a
(
"ahshLog"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
,
ruleId
:
e
.
ruleId
,
alarmType
:
e
.
alarmType
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
C
,
L
,
!
1
,
function
(
e
){
a
(
"DAuE"
)},
"data-v-cd61b720"
,
null
).
exports
,
F
=
{
props
:{
alarmType
:{
type
:
Number
,
default
:
function
(){
return
0
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
5
}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
getList
()},
methods
:{
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
sceneCode
:
this
.
sceneCode
,
alarmType
:
this
.
alarmType
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
},
a
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/log"
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
.
result
.
length
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
close
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
$emit
(
"cancelLog"
)}}},
j
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"日志"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
close
}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"el-table"
,{
staticClass
:
"dialog-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmType"
,
label
:
"告警类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"流控告警"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
row
.
alarmType
?
a
(
"div"
,[
e
.
_v
(
"熔断告警"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"alarmContent"
,
label
:
"告警内容"
,
width
:
"300px"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"updateTime"
,
label
:
"发生时间"
},
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
)))])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
>
0
?
a
(
"div"
,{
staticClass
:
"page-content"
},[
a
(
"el-pagination"
,{
attrs
:{
small
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
"prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
,
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
}}})],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
A
=
a
(
"VU/8"
)(
F
,
j
,
!
1
,
function
(
e
){
a
(
"pj1/"
)},
"data-v-d3b90fa2"
,
null
).
exports
,
D
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
showDialog
:
!
1
,
refash
:
!
1
}},
methods
:{
handleChange
:
function
(
e
){
this
.
$emit
(
"changeFlag"
,
e
)},
seeLog
:
function
(
e
){
this
.
ruleId
=
e
.
sceneCode
,
this
.
alarmType
=
e
.
alarmType
,
this
.
showDialog
=!
0
},
cancelLog
:
function
(){
this
.
showDialog
=!
1
},
editItemm
:
function
(
e
){
var
t
=
this
,
a
=
this
;
if
(
this
.
refash
=!
this
.
refash
,
e
.
editStatus
=!
e
.
editStatus
,
!
e
.
editStatus
){
var
r
=
{
alarmType
:
e
.
alarmType
,
alarmInfo
:
e
.
alarmInfo
,
sceneCode
:
this
.
sceneCode
};
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/edit"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?(
t
.
$emit
(
"getList"
),
t
.
$message
.
success
(
"保存成功"
)):(
e
.
editStatus
=!
e
.
editStatus
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}}},
components
:{
alarmLog
:
A
}},
T
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
r
(
"div"
,{
staticClass
:
"list-content"
},
e
.
_l
(
e
.
tableData
,
function
(
t
,
o
){
return
r
(
"div"
,{
key
:
o
,
staticClass
:
"list-item"
},[
r
(
"div"
,{
staticClass
:
"item-top"
},[
1
===
t
.
alarmType
?
r
(
"img"
,{
attrs
:{
src
:
a
(
"vgET"
),
alt
:
""
}}):
e
.
_e
(),
e
.
_v
(
" "
),
2
===
t
.
alarmType
?
r
(
"img"
,{
attrs
:{
src
:
a
(
"8PC5"
),
alt
:
""
}}):
e
.
_e
(),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"item-info"
},[
r
(
"p"
,{
staticClass
:
"info-type"
},[
e
.
_v
(
e
.
_s
(
1
===
t
.
alarmType
?
"流控告警"
:
"熔断告警"
))]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
"Webhook通知地址"
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"address"
},[
t
.
editStatus
?
r
(
"el-input"
,{
staticStyle
:{
width
:
"368px"
,
height
:
"78px"
},
attrs
:{
type
:
"textarea"
,
resize
:
"none"
,
placeholder
:
"请输入内容"
},
model
:{
value
:
t
.
alarmInfo
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"alarmInfo"
,
a
)},
expression
:
"item.alarmInfo"
}}):
r
(
"p"
,[
e
.
_v
(
e
.
_s
(
t
.
alarmInfo
))])],
1
)])]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"item-bottom"
},[
r
(
"div"
,[
r
(
"p"
,{
on
:{
click
:
function
(
a
){
e
.
editItemm
(
t
)}}},[
e
.
_v
(
e
.
_s
(
t
.
editStatus
?
"保存"
:
"编辑"
)
+
"Webhook通知地址"
)]),
e
.
_v
(
" "
),
r
(
"p"
,{
on
:{
click
:
function
(
a
){
e
.
seeLog
(
t
)}}},[
e
.
_v
(
"日志"
)])]),
e
.
_v
(
" "
),
r
(
"span"
,{
staticStyle
:{
display
:
"none"
}},[
e
.
_v
(
e
.
_s
(
e
.
refash
))]),
e
.
_v
(
" "
),
r
(
"el-switch"
,{
on
:{
change
:
function
(
a
){
e
.
handleChange
(
t
)}},
model
:{
value
:
t
.
enableFlag
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"enableFlag"
,
a
)},
expression
:
"item.enableFlag"
}})],
1
)])})),
e
.
_v
(
" "
),
e
.
showDialog
?
r
(
"alarmLog"
,{
attrs
:{
alarmType
:
e
.
alarmType
,
sceneCode
:
e
.
sceneCode
},
on
:{
cancelLog
:
e
.
cancelLog
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
D
,
T
,
!
1
,
function
(
e
){
a
(
"bBUd"
)},
"data-v-fd99d76e"
,
null
).
exports
,
k
=
{
name
:
"envManage"
,
components
:{
navBread
:
s
.
a
,
selectEnv
:
c
.
a
,
fluidList
:
b
,
fusingList
:
_
,
warnSet
:
S
,
newRule
:
g
,
newSet
:
w
},
data
:
function
(){
return
{
navPath
:[{
name
:
"插件管理"
,
path
:
"/pluginManage"
},{
name
:
"AHAS"
,
path
:
""
}],
activeName
:
"first"
,
search
:
""
,
showdialog
:
!
1
,
pluginId
:
""
,
sceneCode
:
""
,
pluginType
:
0
,
projectList
:[],
projectId
:
""
,
groupList
:[],
groupId
:
""
,
total
:
0
,
currentPage
:
1
,
pageSize
:
20
,
pageSizes
:[
20
,
40
,
60
,
80
],
tableData
:[],
loading
:
!
1
,
showRuleDialog
:
!
1
,
showFlusDialog
:
!
1
,
publishNum
:
0
}},
created
:
function
(){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()},
methods
:{
handleClick
:
function
(
e
,
t
){
this
.
search
=
""
,
this
.
projectId
=
""
,
this
.
groupId
=
""
,
this
.
getList
()},
goEnvList
:
function
(){
this
.
showdialog
=!
0
,
this
.
pluginId
=
this
.
pluginId
},
closeDialog
:
function
(){
this
.
showdialog
=!
1
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getChange
:
function
(){
this
.
groupId
=
""
,
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
()},
getSearchList
:
function
(){
"first"
!==
this
.
activeName
&&
"second"
!==
this
.
activeName
||
(
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
())},
getList
:
function
(){
var
e
=
this
,
t
=
""
,
a
=
{};
"first"
===
this
.
activeName
?(
t
=
"/gateway-manage/rule/ratelimiter/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"second"
===
this
.
activeName
?(
t
=
"/gateway-manage/rule/degrade/list"
,
a
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"third"
===
this
.
activeName
&&
(
t
=
"/gateway-manage/rule/alarm/list"
,
a
=
{
sceneCode
:
this
.
sceneCode
}),
this
.
tableData
=
[],
this
.
loading
=!
0
;
var
r
=
this
;
Object
(
l
.
a
)(
t
,
a
).
then
(
function
(
t
){
if
(
"0000"
==
t
.
data
.
code
){
if
(
"first"
===
e
.
activeName
){
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
total
=
0
,
e
.
tableData
=
[]);
var
a
=!
0
,
r
=!
1
,
o
=
void
0
;
try
{
for
(
var
n
,
s
=
i
()(
e
.
tableData
);
!
(
a
=
(
n
=
s
.
next
()).
done
);
a
=!
0
){
var
l
=
n
.
value
;
l
.
enableFlag
=
1
===
l
.
enableFlag
}}
catch
(
e
){
r
=!
0
,
o
=
e
}
finally
{
try
{
!
a
&&
s
.
return
&&
s
.
return
()}
finally
{
if
(
r
)
throw
o
}}}
else
if
(
"second"
===
e
.
activeName
){
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
total
=
0
,
e
.
tableData
=
[]);
var
c
=!
0
,
d
=!
1
,
u
=
void
0
;
try
{
for
(
var
g
,
m
=
i
()(
e
.
tableData
);
!
(
c
=
(
g
=
m
.
next
()).
done
);
c
=!
0
){
var
f
=
g
.
value
;
f
.
enableFlag
=
1
===
f
.
enableFlag
}}
catch
(
e
){
d
=!
0
,
u
=
e
}
finally
{
try
{
!
c
&&
m
.
return
&&
m
.
return
()}
finally
{
if
(
d
)
throw
u
}}}
else
if
(
"third"
===
e
.
activeName
){
t
.
data
.
result
?
e
.
tableData
=
t
.
data
.
result
:
e
.
tableData
=
[];
var
p
=!
0
,
h
=!
1
,
v
=
void
0
;
try
{
for
(
var
b
,
y
=
i
()(
e
.
tableData
);
!
(
p
=
(
b
=
y
.
next
()).
done
);
p
=!
0
){
var
I
=
b
.
value
;
I
.
enableFlag
=
1
===
I
.
enableFlag
,
I
.
editStatus
=!
1
}}
catch
(
e
){
h
=!
0
,
v
=
e
}
finally
{
try
{
!
p
&&
y
.
return
&&
y
.
return
()}
finally
{
if
(
h
)
throw
v
}}}
e
.
loading
=!
1
,
e
.
getUpdateStatus
()}
else
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeFlag
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
alarmType
:
e
.
alarmType
,
enableFlag
:
e
.
enableFlag
?
1
:
0
,
sceneCode
:
this
.
sceneCode
};
Object
(
l
.
a
)(
"/gateway-manage/rule/alarm/enable"
,
r
).
then
(
function
(
a
){
"0000"
==
a
.
data
.
code
?
t
.
getList
():(
e
.
enableFlag
=!
e
.
enableFlag
,
t
.
$message
.
error
(
a
.
data
.
message
))}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
type
:
0
,
id
:
this
.
projectId
};
Object
(
l
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addFluid
:
function
(){
this
.
showRuleDialog
=!
0
},
cancelAdd
:
function
(){
this
.
showRuleDialog
=!
1
},
addFusing
:
function
(){
this
.
showFlusDialog
=!
0
},
cancelAddFlus
:
function
(){
this
.
showFlusDialog
=!
1
},
publish
:
function
(){
var
e
=
this
,
t
=
{
sceneCode
:
this
.
sceneCode
},
a
=
""
;
"first"
===
this
.
activeName
?
a
=
"/gateway-manage/rule/ratelimiter/publish"
:
"second"
===
this
.
activeName
&&
(
a
=
"/gateway-manage/rule/degrade/publish"
);
var
r
=
this
;
this
.
$confirm
(
"确定要发布吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
l
.
a
)(
a
,
t
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
e
.
getList
():
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}).
catch
(
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消发布"
})})},
getUpdateStatus
:
function
(
e
){
var
t
=
this
,
a
=
{
sceneCode
:
e
||
this
.
sceneCode
},
r
=
""
;
r
=
"first"
===
this
.
activeName
?
"/gateway-manage/rule/ratelimiter/has/edit"
:
"/gateway-manage/rule/degrade/has/edit"
,
Object
(
l
.
a
)(
r
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
publishNum
=
e
.
data
.
result
:
t
.
$message
.
error
(
e
.
data
.
message
)})}},
watch
:
o
()({
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
"$route"
,
function
(
e
,
t
){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getList
()})},
N
=
{
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
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"change-env"
,
on
:{
click
:
e
.
goEnvList
}},[
a
(
"span"
,[
e
.
_v
(
"切换环境"
)]),
a
(
"i"
,{
staticClass
:
"iconfont iconicon-qihuan"
,
on
:{
click
:
function
(
t
){
e
.
goEnvList
(
e
.
item
)}}})])],
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
:
"env-tab-wrap"
},[
a
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
"third"
!==
e
.
activeName
?
a
(
"div"
,{
staticClass
:
"search-box"
},[
a
(
"div"
,{
staticClass
:
"left"
},[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
placeholder
:
"first"
===
e
.
activeName
?
"请输入接口名称/流控ID"
:
"请输入接口名称/熔断ID"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
function
(
t
){
e
.
getSearchList
()}},
nativeOn
:{
keyup
:
function
(
t
){
if
(
!
(
"button"
in
t
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
))
return
null
;
e
.
getSearchList
()}},
model
:{
value
:
e
.
search
,
callback
:
function
(
t
){
e
.
search
=
t
},
expression
:
"search"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
getChange
},
model
:{
value
:
e
.
projectId
,
callback
:
function
(
t
){
e
.
projectId
=
t
},
expression
:
"projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择分组"
,
size
:
"small"
,
clearable
:
""
,
disabled
:
""
===
e
.
projectId
},
on
:{
change
:
e
.
getSearchList
},
model
:{
value
:
e
.
groupId
,
callback
:
function
(
t
){
e
.
groupId
=
t
},
expression
:
"groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
"first"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFluid
}},[
e
.
_v
(
"新建流控规则"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"second"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFusing
}},[
e
.
_v
(
"新建熔断规则"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
publishNum
<=
0
},
on
:{
click
:
e
.
publish
}},[
e
.
_v
(
e
.
_s
(
e
.
publishNum
>
0
?
"待发布("
+
e
.
publishNum
+
")"
:
"发布"
))])],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"流控规则"
,
name
:
"first"
}},[
"first"
===
e
.
activeName
?
a
(
"fluidList"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"熔断规则"
,
name
:
"second"
}},[
"second"
===
e
.
activeName
?
a
(
"fusingList"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"告警配置"
,
name
:
"third"
}},[
"third"
===
e
.
activeName
?
a
(
"warnSet"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
tableData
:
e
.
tableData
,
sceneCode
:
e
.
sceneCode
},
on
:{
getList
:
e
.
getList
,
changeFlag
:
e
.
changeFlag
}}):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
0
===
e
.
total
||
"first"
!==
e
.
activeName
&&
"second"
!==
e
.
activeName
?
e
.
_e
():
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
"margin-top"
:
"20px"
}},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:
e
.
pageSizes
,
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)],
1
)])]),
e
.
_v
(
" "
),
e
.
showdialog
?
a
(
"selectEnv"
,{
attrs
:{
pluginId
:
e
.
pluginId
,
pluginType
:
e
.
pluginType
},
on
:{
closeDialog
:
e
.
closeDialog
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showRuleDialog
?
a
(
"newRule"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
},
on
:{
cancelAdd
:
e
.
cancelAdd
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showFlusDialog
?
a
(
"newSet"
,{
attrs
:{
sceneCode
:
e
.
sceneCode
},
on
:{
cancelAddFlus
:
e
.
cancelAddFlus
,
getList
:
e
.
getList
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
k
,
N
,
!
1
,
function
(
e
){
a
(
"Alw0"
)},
"data-v-57a03d4d"
,
null
);
t
.
default
=
x
.
exports
},
Twux
:
function
(
e
,
t
){},
bBUd
:
function
(
e
,
t
){},
"pj1/"
:
function
(
e
,
t
){},
vgET
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,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"
}});
\ No newline at end of file
dist/static/js/5.a2dcd228e86f2340568b.js
deleted
100644 → 0
View file @
5f64f554
webpackJsonp
([
5
],{
"6yE4"
:
function
(
e
,
t
){},
"7Jbw"
:
function
(
e
,
t
){},
"ASE+"
:
function
(
e
,
t
){},
UGey
:
function
(
e
,
t
){},
UOoF
:
function
(
e
,
t
){},
dAfO
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"bOdI"
),
i
=
a
.
n
(
r
),
n
=
a
(
"319J"
),
o
=
a
(
"P9l9"
),
s
=
a
(
"jvWE"
),
l
=
a
(
"PEkr"
),
c
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{
cancelBind
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
id
:
e
.
openPlatformInterfaceId
};
Object
(
o
.
a
)(
"/gateway-manage/platform/white/unbind"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
components
:{}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目名称"
,
prop
:
"projectName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"分组"
,
prop
:
"groupName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"接口名称"
,
prop
:
"interfaceName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"绑定时间"
,
prop
:
"bindTime"
},
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
.
bindTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
bindTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要解除绑定吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
cancelBind
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"解除绑定"
)])],
1
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"xU1Q"
)},
"data-v-f1de626e"
,
null
).
exports
,
g
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{
cancelBind
:
function
(
e
){
var
t
=
this
,
a
=
this
,
r
=
{
id
:
e
.
openPlatformInterfaceId
};
Object
(
o
.
a
)(
"/gateway-manage/platform/capacity/unbind"
,
r
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
components
:{}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"项目名称"
,
prop
:
"projectName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"分组"
,
prop
:
"groupName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"接口名称"
,
prop
:
"interfaceName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"绑定时间"
,
prop
:
"bindTime"
},
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
.
bindTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
bindTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要接触绑定吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
cancelBind
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"解除绑定"
)])],
1
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
g
,
h
,
!
1
,
function
(
e
){
a
(
"7Jbw"
)},
"data-v-2c6d01f2"
,
null
).
exports
,
p
=
{
props
:{
errorSettingId
:{
type
:
String
,
default
:
function
(){
return
""
}},
errorCode
:{
type
:
String
,
default
:
function
(){
return
""
}},
errorInfo
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
errorForm
:{
errorCode
:
""
,
errorInfo
:
""
},
modalRules
:{
errorCode
:[{
required
:
!
0
,
message
:
"请输入错误码"
,
trigger
:
"blur"
}],
errorInfo
:[{
required
:
!
0
,
message
:
"请输入错误信息"
,
trigger
:
"blur"
}]}}},
created
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
errorForm
.
errorCode
=
this
.
errorCode
,
this
.
errorForm
.
errorInfo
=
this
.
errorInfo
},
methods
:{
submitForm
:
function
(
e
){
var
t
=
this
,
a
=
this
;
this
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
r
=
""
,
i
=
{
errorCode
:
t
.
errorForm
.
errorCode
,
errorInfo
:
t
.
errorForm
.
errorInfo
,
errorType
:
2
};
t
.
errorSettingId
?(
i
.
errorSettingId
=
t
.
errorSettingId
,
r
=
"/gateway-manage/update-error-setting"
):
r
=
"/gateway-manage/create-error-setting"
,
Object
(
o
.
b
)(
r
,
i
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?(
t
.
$emit
(
"getList"
),
t
.
dialogVisible
=!
1
,
t
.
$emit
(
"cancelNewCoce"
)):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
cancelForm
:
function
(
e
){
this
.
$refs
[
e
].
resetFields
(),
this
.
$emit
(
"cancelNewCoce"
)}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
errorSettingId
?
"编辑错误码"
:
"新建错误码"
,
visible
:
e
.
dialogVisible
,
width
:
"500px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
function
(
t
){
e
.
cancelForm
(
"errorForm"
)}}},[
a
(
"el-form"
,{
ref
:
"errorForm"
,
staticStyle
:{
width
:
"450px"
},
attrs
:{
model
:
e
.
errorForm
,
rules
:
e
.
modalRules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误码"
,
"label-width"
:
"90px"
,
prop
:
"errorCode"
}},[
a
(
"dm-input"
,{
attrs
:{
byteType
:
1
,
type
:
"text"
,
maxlength
:
20
},
model
:{
value
:
e
.
errorForm
.
errorCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
errorForm
,
"errorCode"
,
t
)},
expression
:
"errorForm.errorCode"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误信息"
,
"label-width"
:
"90px"
,
prop
:
"errorInfo"
}},[
a
(
"dm-input"
,{
attrs
:{
byteType
:
1
,
type
:
"text"
,
maxlength
:
20
},
model
:{
value
:
e
.
errorForm
.
errorInfo
,
callback
:
function
(
t
){
e
.
$set
(
e
.
errorForm
,
"errorInfo"
,
t
)},
expression
:
"errorForm.errorInfo"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
cancelForm
(
"errorForm"
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"errorForm"
)}}},[
e
.
_v
(
e
.
_s
(
e
.
errorSettingId
?
"保存"
:
"新建"
))])],
1
)],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"ASE+"
)},
"data-v-1f51806f"
,
null
).
exports
,
b
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
showNewCode
:
!
1
,
errorSettingId
:
""
,
errorInfo
:
""
,
errorCode
:
""
}},
methods
:{
getList
:
function
(){
this
.
$emit
(
"getList"
)},
edit
:
function
(
e
){
this
.
showNewCode
=!
0
,
this
.
errorSettingId
=
e
.
errorSettingId
,
this
.
errorCode
=
e
.
errorCode
,
this
.
errorInfo
=
e
.
errorInfo
},
cancelNewCoce
:
function
(){
this
.
showNewCode
=!
1
},
deleteList
:
function
(
e
){
var
t
=
this
,
a
=
{
errorSettingId
:
e
.
errorSettingId
};
Object
(
o
.
b
)(
"/gateway-manage/delete-error-setting"
,
a
).
then
(
function
(
e
){
"0000"
==
e
.
data
.
code
?
t
.
$emit
(
"getList"
):
t
.
$message
.
error
(
e
.
data
.
message
)})}},
components
:{
newErrorCode
:
v
}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误码"
,
prop
:
"errorCode"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误信息"
,
prop
:
"errorInfo"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"dm-delete"
,{
attrs
:{
tips
:
"确定要删除吗?"
},
on
:{
confirm
:
function
(
a
){
e
.
deleteList
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
e
.
showNewCode
?
a
(
"newErrorCode"
,{
attrs
:{
errorSettingId
:
e
.
errorSettingId
,
errorCode
:
e
.
errorCode
,
errorInfo
:
e
.
errorInfo
},
on
:{
getList
:
e
.
getList
,
cancelNewCoce
:
e
.
cancelNewCoce
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
y
,
!
1
,
function
(
e
){
a
(
"oPMN"
)},
"data-v-78e39e8a"
,
null
).
exports
,
S
=
a
(
"BO1k"
),
w
=
a
.
n
(
S
),
C
=
{
props
:{
type
:{
type
:
String
,
default
:
function
(){
return
1
}},
sceneCode
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
checkedAll
:
!
1
,
isIndeterminate
:
!
1
,
rightList
:[],
leftSelectList
:[],
rightSelectList
:[],
props
:{
label
:
"name"
,
children
:
"zones"
,
isLeaf
:
"leaf"
},
loading
:
!
1
,
projectList
:[],
refash
:
!
1
,
btnLoading
:
!
1
}},
created
:
function
(){
this
.
dialogVisible
=!
0
},
methods
:{
changeAllTree
:
function
(
e
){
e
?(
this
.
$refs
.
tree
.
setCheckedNodes
(
this
.
projectList
),
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
()):(
this
.
$refs
.
tree
.
setCheckedKeys
([]),
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
())},
handleCheckChange
:
function
(
e
,
t
,
a
){
this
.
leftSelectList
=
this
.
$refs
.
tree
.
getCheckedNodes
();
var
r
=
0
,
i
=!
0
,
n
=!
1
,
o
=
void
0
;
try
{
for
(
var
s
,
l
=
w
()(
this
.
leftSelectList
);
!
(
i
=
(
s
=
l
.
next
()).
done
);
i
=!
0
){
var
c
=
s
.
value
;
this
.
leftSelectList
.
every
(
function
(
e
){
return
0
!==
e
.
type
})?
r
=
1
:
0
===
c
.
type
&&
(
r
+=
1
)}}
catch
(
e
){
n
=!
0
,
o
=
e
}
finally
{
try
{
!
i
&&
l
.
return
&&
l
.
return
()}
finally
{
if
(
n
)
throw
o
}}
this
.
isIndeterminate
=
r
>
0
&&
r
<
this
.
projectList
.
length
,
this
.
checkedAll
=
r
===
this
.
projectList
.
length
},
transferRight
:
function
(){
var
e
=
this
;
this
.
rightList
=
this
.
leftSelectList
.
concat
(
this
.
rightList
),
this
.
rightList
=
this
.
rightList
.
filter
(
function
(
e
,
t
,
a
){
return
a
.
indexOf
(
e
)
===
t
});
for
(
var
t
=
function
(
t
){
e
.
rightList
.
find
(
function
(
a
){
return
a
.
id
===
e
.
rightList
[
t
].
parentId
})
&&
e
.
rightList
[
t
].
leaf
&&
(
e
.
rightList
.
splice
(
t
,
1
),
t
=
0
),
a
=
t
},
a
=
0
;
a
<
this
.
rightList
.
length
;
a
++
)
t
(
a
);
this
.
$refs
.
tree
.
setCheckedKeys
([]),
this
.
leftSelectList
=
[],
this
.
checkedAll
=!
1
},
transferLeft
:
function
(){
for
(
var
e
=
0
;
e
<
this
.
rightSelectList
.
length
;
e
++
)
for
(
var
t
=
0
;
t
<
this
.
rightList
.
length
;
t
++
)
this
.
rightSelectList
[
e
].
id
===
this
.
rightList
[
t
].
id
&&
(
this
.
rightList
.
splice
(
t
,
1
),
t
=
0
);
this
.
rightSelectList
=
[]},
loadNode
:
function
(
e
,
t
){
var
a
=
this
,
r
=
this
;
if
(
0
===
e
.
level
)
return
this
.
loading
=!
0
,
Object
(
o
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
e
){
if
(
"0000"
==
e
.
data
.
code
){
a
.
loading
=!
1
,
e
.
data
.
result
?
a
.
projectList
=
e
.
data
.
result
:
a
.
projectList
=
[];
var
r
=!
0
,
i
=!
1
,
n
=
void
0
;
try
{
for
(
var
o
,
s
=
w
()(
a
.
projectList
);
!
(
r
=
(
o
=
s
.
next
()).
done
);
r
=!
0
){
var
l
=
o
.
value
;
0
===
l
.
leafFlag
?
l
.
leaf
=!
1
:
l
.
leaf
=!
0
,
l
.
parentId
=
""
}}
catch
(
e
){
i
=!
0
,
n
=
e
}
finally
{
try
{
!
r
&&
s
.
return
&&
s
.
return
()}
finally
{
if
(
i
)
throw
n
}}
return
t
(
a
.
projectList
)}
a
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
t
(
this
.
projectList
);
if
(
e
.
level
>
2
)
return
t
([]);
if
(
1
===
e
.
level
||
2
===
e
.
level
){
var
i
=
{
type
:
e
.
level
-
1
,
id
:
e
.
data
.
id
},
n
=
[];
Object
(
o
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
i
).
then
(
function
(
t
){
if
(
"0000"
==
t
.
data
.
code
){
n
=
t
.
data
.
result
?
t
.
data
.
result
:[];
var
r
=!
0
,
i
=!
1
,
o
=
void
0
;
try
{
for
(
var
s
,
l
=
w
()(
n
);
!
(
r
=
(
s
=
l
.
next
()).
done
);
r
=!
0
){
var
c
=
s
.
value
;
0
===
c
.
leafFlag
?
c
.
leaf
=!
1
:
c
.
leaf
=!
0
,
c
.
parentId
=
e
.
data
.
id
}}
catch
(
e
){
i
=!
0
,
o
=
e
}
finally
{
try
{
!
r
&&
l
.
return
&&
l
.
return
()}
finally
{
if
(
i
)
throw
o
}}}
else
a
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
setTimeout
(
function
(){
t
(
n
)},
2
e3
)}},
handleSelectionChange
:
function
(
e
){
this
.
rightSelectList
=
e
},
submitForm
:
function
(){
var
e
=
this
,
t
=
this
;
if
(
0
===
this
.
rightSelectList
.
length
)
return
this
.
$message
.
error
(
"请选择要绑定的API"
),
!
1
;
var
a
=
[],
r
=
[],
i
=
[],
n
=!
0
,
s
=!
1
,
l
=
void
0
;
try
{
for
(
var
c
,
d
=
w
()(
this
.
rightSelectList
);
!
(
n
=
(
c
=
d
.
next
()).
done
);
n
=!
0
){
var
u
=
c
.
value
;
0
===
u
.
type
?
a
.
push
(
u
.
id
):
1
===
u
.
type
?
r
.
push
(
u
.
id
):
2
===
u
.
type
&&
i
.
push
(
u
.
id
)}}
catch
(
e
){
s
=!
0
,
l
=
e
}
finally
{
try
{
!
n
&&
d
.
return
&&
d
.
return
()}
finally
{
if
(
s
)
throw
l
}}
var
g
=
{
sceneCode
:
this
.
sceneCode
};
a
.
length
&&
(
g
.
projectIds
=
a
.
join
(
","
)),
r
.
length
&&
(
g
.
groupIds
=
r
.
join
(
","
)),
i
.
length
&&
(
g
.
interfaceIds
=
i
.
join
(
","
));
var
h
=
""
;
"1"
===
this
.
type
?
h
=
"/gateway-manage/platform/white/bind"
:
"2"
===
this
.
type
&&
(
h
=
"/gateway-manage/platform/capacity/bind"
),
this
.
btnLoading
=!
0
,
Object
(
o
.
a
)(
h
,
g
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
e
.
dialogVisible
=!
1
,
e
.
$emit
(
"getList"
),
e
.
btnLoading
=!
1
):
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
closeDialog
:
function
(){
this
.
$emit
(
"cancelBind"
)}}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"1"
===
e
.
type
?
"新建绑定白名单接口"
:
"新建绑定能力接口"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
closeDialog
}},[
a
(
"div"
,{
staticClass
:
"dialog-body"
},[
a
(
"div"
,{
staticClass
:
"content"
},[
a
(
"div"
,{
staticClass
:
"left-content"
},[
a
(
"div"
,{
staticClass
:
"title"
},[
a
(
"h3"
,[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
changeAllTree
},
model
:{
value
:
e
.
checkedAll
,
callback
:
function
(
t
){
e
.
checkedAll
=
t
},
expression
:
"checkedAll"
}},[
e
.
_v
(
"所有API"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"tree-content"
},[
a
(
"el-tree"
,{
ref
:
"tree"
,
attrs
:{
props
:
e
.
props
,
load
:
e
.
loadNode
,
"node-key"
:
"id"
,
lazy
:
""
,
"show-checkbox"
:
""
},
on
:{
"check-change"
:
e
.
handleCheckChange
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"left-center"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
leftSelectList
.
length
<=
0
},
on
:{
click
:
e
.
transferRight
}},[
e
.
_v
(
"转入"
),
a
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
e
.
rightSelectList
.
length
<=
0
},
on
:{
click
:
e
.
transferLeft
}},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-left el-icon--left"
}),
e
.
_v
(
"移除"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"list-content table-transfer"
},[[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
rightList
,
"tooltip-effect"
:
"dark"
,
height
:
"305"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"50"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"已选API"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
name
))]}}])})],
1
)]],
2
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
closeDialog
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
btnLoading
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
C
,
L
,
!
1
,
function
(
e
){
a
(
"6yE4"
),
a
(
"UOoF"
)},
"data-v-38497e12"
,
null
).
exports
,
k
=
{
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{}},
methods
:{},
components
:{}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"20px"
}},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
,
height
:
e
.
tableHeight
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"traceid"
,
prop
:
"projectName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
traceId
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"应用"
,
prop
:
"groupName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
name
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"请求时间"
,
prop
:
"bindTime"
},
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
.
requestTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
requestTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"商户"
,
prop
:
"interfaceName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
enterpriseName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"接口"
,
prop
:
"interfaceName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
projectName
||
"--"
)
+
"-"
+
e
.
_s
(
t
.
row
.
groupName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
interfaceName
||
"--"
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"请求内容"
,
prop
:
"interfaceName"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
requestParams
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"返回内容"
,
prop
:
"interfaceName"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
responseParams
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
remarks
||
"--"
)
+
"
\
n "
)]}}])})],
1
)],
1
)])},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
k
,
N
,
!
1
,
function
(
e
){
a
(
"UGey"
)},
"data-v-eb3a22bc"
,
null
).
exports
,
j
=
{
name
:
"envManage"
,
components
:{
navBread
:
n
.
a
,
selectEnv
:
l
.
a
,
whiteList
:
u
,
capacityList
:
f
,
errorCodeList
:
_
,
bindTranser
:
I
,
newErrorCode
:
v
,
logList
:
x
},
data
:
function
(){
return
{
navPath
:[{
name
:
"插件管理"
,
path
:
"/pluginManage"
},{
name
:
"开放平台"
,
path
:
""
}],
activeName
:
"first"
,
search
:
""
,
showdialog
:
!
1
,
pluginId
:
""
,
sceneCode
:
""
,
pluginType
:
1
,
projectList
:[],
projectId
:
""
,
groupList
:[],
groupId
:
""
,
tableData
:[],
total
:
0
,
currentPage
:
1
,
pageSize
:
20
,
pageSizes
:[
20
,
40
,
60
,
80
],
showNewCode
:
!
1
,
errorSettingId
:
""
,
showBinddialog
:
!
1
,
type
:
""
,
loading
:
!
1
,
logSearch
:{
requestDate
:[],
searchValue
:
""
,
requestProjectId
:
""
,
requestGroupId
:
""
,
requestStatus
:
""
}}},
methods
:{
changeDate
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
changeStatus
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
changePro
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
searchEnterFun
:
Object
(
s
.
a
)(
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
200
),
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getList
()},
handleClick
:
function
(
e
,
t
){
this
.
search
=
""
,
this
.
projectId
=
""
,
this
.
groupId
=
""
,
this
.
getList
()},
goEnvList
:
function
(){
this
.
showdialog
=!
0
,
this
.
pluginId
=
this
.
pluginId
},
closeDialog
:
function
(){
this
.
showdialog
=!
1
},
getChange
:
function
(){
this
.
groupId
=
""
,
this
.
getGroupList
(),
this
.
getList
()},
getSearchList
:
function
(){
"first"
!==
this
.
activeName
&&
"second"
!==
this
.
activeName
||
(
this
.
currentPage
=
1
,
this
.
getGroupList
(),
this
.
getList
())},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
""
,
r
=
{};
"first"
===
this
.
activeName
?(
a
=
"/gateway-manage/platform/white/list"
,
r
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"second"
===
this
.
activeName
?(
a
=
"/gateway-manage/platform/capacity/list"
,
r
=
{
projectId
:
this
.
projectId
?
this
.
projectId
:
null
,
groupId
:
this
.
groupId
?
this
.
groupId
:
null
,
search
:
this
.
search
?
this
.
search
:
null
,
sceneCode
:
this
.
sceneCode
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):
"third"
===
this
.
activeName
?(
a
=
"/gateway-manage/page-error-setting"
,
r
=
{
errorType
:
2
,
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}):(
a
=
"/gateway-manage/page-log"
,
t
.
logSearch
.
requestDate
||
(
t
.
logSearch
.
requestDate
=
[]),
r
=
{
startTime
:
t
.
logSearch
.
requestDate
[
0
],
endTime
:
t
.
logSearch
.
requestDate
[
1
],
requestProjectId
:
t
.
logSearch
.
requestProjectId
,
requestGroupId
:
t
.
logSearch
.
requestGroupId
,
requestStatus
:
t
.
logSearch
.
requestStatus
,
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
}),
"first"
===
this
.
activeName
||
"second"
===
this
.
activeName
?(
this
.
loading
=!
0
,
Object
(
o
.
a
)(
a
,
r
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
):(
e
.
loading
=!
1
,
e
.
$message
.
error
(
t
.
data
.
message
))}).
catch
(
function
(
e
){
this
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})):(
this
.
loading
=!
0
,
Object
(
o
.
b
)(
a
,
r
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?(
t
.
data
.
result
.
result
?(
e
.
tableData
=
t
.
data
.
result
.
result
,
e
.
total
=
t
.
data
.
result
.
totalCount
):(
e
.
tableData
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
):(
e
.
loading
=!
1
,
e
.
$message
.
error
(
t
.
data
.
message
))}).
catch
(
function
(
e
){
this
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}))},
getProjectList
:
function
(){
var
e
=
this
,
t
=
this
;
Object
(
o
.
a
)(
"/gateway-manage/plugin/interface/tree"
,{}).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
projectList
=
t
.
data
.
result
:
e
.
projectList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getGroupList
:
function
(){
var
e
=
this
,
t
=
this
,
a
=
{
type
:
0
,
id
:
this
.
projectId
};
Object
(
o
.
a
)(
"/gateway-manage/plugin/interface/tree"
,
a
).
then
(
function
(
t
){
"0000"
==
t
.
data
.
code
?
t
.
data
.
result
?
e
.
groupList
=
t
.
data
.
result
:
e
.
groupList
=
[]:
e
.
$message
.
error
(
t
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addCode
:
function
(){
this
.
showNewCode
=!
0
,
this
.
errorSettingId
=
""
},
cancelNewCoce
:
function
(){
this
.
showNewCode
=!
1
},
addBind
:
function
(
e
){
this
.
showBinddialog
=!
0
,
this
.
type
=
e
},
cancelBind
:
function
(){
this
.
showBinddialog
=!
1
}},
watch
:
i
()({
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
"$route"
,
function
(
e
,
t
){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()}),
created
:
function
(){
this
.
pluginId
=
this
.
$route
.
query
.
pluginId
,
this
.
sceneCode
=
this
.
$route
.
query
.
sceneCode
,
this
.
getProjectList
(),
this
.
getList
()}},
$
=
{
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
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"change-env"
,
on
:{
click
:
e
.
goEnvList
}},[
a
(
"span"
,[
e
.
_v
(
"切换环境"
)]),
a
(
"i"
,{
staticClass
:
"iconfont iconicon-qihuan"
,
on
:{
click
:
function
(
t
){
e
.
goEnvList
(
e
.
item
)}}})])],
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
:
"env-tab-wrap"
},[
a
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
a
(
"div"
,{
staticClass
:
"search-box"
},[
a
(
"div"
,{
staticClass
:
"left"
},[
"second"
===
e
.
activeName
||
"first"
===
e
.
activeName
?
a
(
"div"
,[
a
(
"el-input"
,{
staticClass
:
"w-320"
,
attrs
:{
placeholder
:
"请输入接口名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
function
(
t
){
e
.
getSearchList
()}},
nativeOn
:{
keyup
:
function
(
t
){
if
(
!
(
"button"
in
t
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
))
return
null
;
e
.
getSearchList
()}},
model
:{
value
:
e
.
search
,
callback
:
function
(
t
){
e
.
search
=
t
},
expression
:
"search"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
function
(
t
){
e
.
getChange
()}},
model
:{
value
:
e
.
projectId
,
callback
:
function
(
t
){
e
.
projectId
=
t
},
expression
:
"projectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择分组"
,
size
:
"small"
,
clearable
:
""
,
disabled
:
""
===
e
.
projectId
},
on
:{
change
:
function
(
t
){
e
.
getSearchList
()}},
model
:{
value
:
e
.
groupId
,
callback
:
function
(
t
){
e
.
groupId
=
t
},
expression
:
"groupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"div"
,[
"third"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addCode
}},[
e
.
_v
(
"新建错误码"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"first"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
addBind
(
"1"
)}}},[
e
.
_v
(
"新建绑定"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"second"
===
e
.
activeName
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
addBind
(
"2"
)}}},[
e
.
_v
(
"新建绑定"
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"白名单接口"
,
name
:
"first"
}},[
"first"
===
e
.
activeName
?
a
(
"whiteList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"能力接口"
,
name
:
"second"
}},[
"second"
===
e
.
activeName
?
a
(
"capacityList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"错误码配置"
,
name
:
"third"
}},[
"third"
===
e
.
activeName
?
a
(
"errorCodeList"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
label
:
"日志"
,
name
:
"four"
}},[
a
(
"div"
,{
staticClass
:
"log-search flex"
},[
a
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
placeholder
:
"选择请求时间"
,
editable
:
!
1
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
logSearch
.
requestDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestDate"
,
t
)},
expression
:
"logSearch.requestDate"
}}),
a
(
"el-input"
,{
staticClass
:
"w-250 marginLeft10"
,
attrs
:{
placeholder
:
"请输入开发者账号/ip/商户名称/接口名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchEnterFun
(
a
,
e
.
searchValue
);
var
a
}},
model
:{
value
:
e
.
logSearch
.
searchValue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"searchValue"
,
t
)},
expression
:
"logSearch.searchValue"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
changePro
},
model
:{
value
:
e
.
logSearch
.
requestProjectId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestProjectId"
,
t
)},
expression
:
"logSearch.requestProjectId"
}},
e
.
_l
(
e
.
projectList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})),
e
.
logSearch
.
requestProjectId
?
a
(
"el-select"
,{
staticClass
:
"w-140 marginLeft10"
,
staticStyle
:{
display
:
"inline-block"
},
attrs
:{
placeholder
:
"请选择项目"
,
size
:
"small"
,
clearable
:
""
},
on
:{
change
:
e
.
changeGroup
},
model
:{
value
:
e
.
logSearch
.
requestGroupId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
logSearch
,
"requestGroupId"
,
t
)},
expression
:
"logSearch.requestGroupId"
}},
e
.
_l
(
e
.
groupList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"log-list"
,{
attrs
:{
tableData
:
e
.
tableData
},
on
:{
getList
:
e
.
getList
}})],
1
)],
1
),
e
.
_v
(
" "
),
0
!==
e
.
total
?
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
"margin-top"
:
"20px"
}},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:
e
.
pageSizes
,
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
e
.
showdialog
?
a
(
"selectEnv"
,{
attrs
:{
pluginId
:
e
.
pluginId
,
pluginType
:
e
.
pluginType
},
on
:{
closeDialog
:
e
.
closeDialog
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showBinddialog
?
a
(
"bindTranser"
,{
attrs
:{
type
:
e
.
type
,
sceneCode
:
e
.
sceneCode
},
on
:{
cancelBind
:
e
.
cancelBind
,
getList
:
e
.
getList
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
showNewCode
?
a
(
"newErrorCode"
,{
attrs
:{
errorSettingId
:
e
.
errorSettingId
},
on
:{
getList
:
e
.
getList
,
cancelNewCoce
:
e
.
cancelNewCoce
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
P
=
a
(
"VU/8"
)(
j
,
$
,
!
1
,
function
(
e
){
a
(
"iFUS"
)},
"data-v-3d9f57ed"
,
null
);
t
.
default
=
P
.
exports
},
iFUS
:
function
(
e
,
t
){},
oPMN
:
function
(
e
,
t
){},
xU1Q
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/app.6
b740cc0d36bda3fa82
6.js
→
dist/static/js/app.6
0fa4926a5de78cca8e
6.js
View file @
e7ab42bf
webpackJsonp
([
23
],{
"/NA0"
:
function
(
e
,
n
){},
0
:
function
(
e
,
n
,
t
){
t
(
"j1ja"
),
e
.
exports
=
t
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
n
){},
"5tgt"
:
function
(
e
,
n
,
t
){
e
.
exports
=
function
(
e
,
n
){
return
function
(
o
){
t
(
"Opzk"
)(
"./"
+
e
+
"/"
+
n
+
".vue"
).
then
(
function
(
e
){
o
(
e
)})}}},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"fZjL"
),
a
=
t
.
n
(
o
),
r
=
(
t
(
"j1ja"
),
t
(
"hKoQ"
)),
i
=
t
.
n
(
r
),
u
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
n
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
s
=
t
(
"lRwf"
),
p
=
t
.
n
(
s
),
m
=
t
(
"pRNm"
),
f
=
t
.
n
(
m
),
g
=
t
(
"5tgt"
),
l
=
t
.
n
(
g
);
p
.
a
.
use
(
f
.
a
);
var
d
,
v
=
function
(
e
){
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
n
){
e
(
n
)})},
h
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
l
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"概览"
,
redirect
:
"overview"
,
component
:
l
()(
"index"
,
"index"
),
children
:[{
path
:
"/overview"
,
name
:
"概览"
,
component
:
l
()(
"index"
,
"overview"
)},{
path
:
"/apiProgram"
,
name
:
"项目列表"
,
component
:
l
()(
"index"
,
"apiProgram"
)},{
path
:
"/apiProgramGroup"
,
name
:
"分组列表"
,
component
:
l
()(
"index"
,
"apiProgramGroup"
)},{
path
:
"/apiList"
,
name
:
"API列表"
,
component
:
l
()(
"index"
,
"apiList"
)},{
path
:
"/groupApiList"
,
name
:
"项目分组API列表"
,
component
:
l
()(
"index"
,
"groupApiList"
)},{
path
:
"/createApi"
,
name
:
"创建API"
,
component
:
l
()(
"index"
,
"createApi"
)},{
path
:
"/apiListManage"
,
name
:
"API列表管理"
,
component
:
l
()(
"index"
,
"apiListManage"
)},{
path
:
"/apiListManageShow"
,
name
:
"API列表管理查看"
,
component
:
l
()(
"index"
,
"apiListManageShow"
)},{
path
:
"/envManage"
,
name
:
"环境管理"
,
component
:
l
()(
"index"
,
"envManage"
)},{
path
:
"/createEnvSet"
,
name
:
"新建配置"
,
component
:
l
()(
"index"
,
"createEnvSet"
)},{
path
:
"/releaseRecords"
,
name
:
"发布记录"
,
component
:
l
()(
"index"
,
"releaseRecords"
)},{
path
:
"/pluginManage"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"pluginManage"
)},{
path
:
"/plugAhsh"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugAhsh"
)},{
path
:
"/plugPlatform"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugPlatform"
)},{
path
:
"/errorCode"
,
name
:
"错误码"
,
component
:
l
()(
"index"
,
"errorCode"
)}]},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
x
=
new
f
.
a
({
routes
:
h
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
I
=
t
(
"zL8q"
),
S
=
t
.
n
(
I
),
M
=
t
(
"Rf8U"
),
k
=
t
.
n
(
M
),
w
=
t
(
"mtWM"
),
A
=
t
.
n
(
w
),
D
=
t
(
"bOdI"
),
P
=
t
.
n
(
D
),
R
=
t
(
"mvHQ"
),
B
=
t
.
n
(
R
),
L
=
t
(
"SJI6"
),
T
=
t
.
n
(
L
);
p
.
a
.
use
(
T
.
a
);
var
b
=
new
T
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{},
tempBackData
:[]},
mutations
:(
d
=
{},
P
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
P
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
P
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
P
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
P
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
B
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
P
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
P
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
P
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
P
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
P
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
P
()(
d
,
"saveTempBack"
,
function
(
e
,
n
){
e
.
tempBackData
=
n
}),
P
()(
d
,
"clearTempBack"
,
function
(
e
){
e
.
tempBackData
=
[]}),
P
()(
d
,
"clearData"
,
function
(
e
){
e
.
baseInfo
=
{},
e
.
frontInfo
=
{},
e
.
backInfo
=
{},
e
.
resultInfo
=
{}}),
d
),
actions
:{
saveUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveUser"
,
n
)},
clearUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"clearUser"
,
n
)},
saveBaseInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBase"
,
n
)},
saveFrontInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveFront"
,
n
)},
saveBackInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBack"
,
n
)},
saveResultInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveResult"
,
n
)},
saveTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"saveTempBack"
,
n
)},
clearTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"clearTempBack"
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
H
=
(
t
(
"4qCZ"
),
t
(
"uKUT"
),
t
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
n
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
t
=
new
Date
(
e
),
o
=
{
"M+"
:
t
.
getMonth
()
+
1
,
"D+"
:
t
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
t
.
getDay
()),
"h+"
:
t
.
getHours
(),
"m+"
:
t
.
getMinutes
(),
"s+"
:
t
.
getSeconds
(),
"q+"
:
Math
.
floor
((
t
.
getMonth
()
+
3
)
/
3
),
S
:
t
.
getMilliseconds
()};
for
(
var
a
in
/
(
Y+
)
/
.
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,(
t
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
o
)
new
RegExp
(
"("
+
a
+
")"
).
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
o
[
a
]:(
"00"
+
o
[
a
]).
substr
((
""
+
o
[
a
]).
length
)));
return
n
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
,
r
=
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
(),
i
=
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
(),
u
=
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
();
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
+
" "
+
r
+
":"
+
i
+
":"
+
u
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
;
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
);
return
(
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
())
+
":"
+
(
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
())
+
":"
+
(
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
())}}});
i
.
a
.
polyfill
(),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
S
.
a
,{
size
:
"large"
}),
Vue
.
use
(
k
.
a
,
A
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
H
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
H
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
b
,
components
:{
App
:
c
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
11
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
19
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
6
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
12
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
18
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
16
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
8
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
13
],
"./index/groupApiList.vue"
:[
"S82n"
,
0
,
17
],
"./index/index.vue"
:[
"JXTs"
,
0
,
9
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
21
],
"./index/plugAhsh.vue"
:[
"JN/y"
,
0
,
4
],
"./index/plugPlatform.vue"
:[
"dAfO"
,
0
,
5
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
20
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
15
],
"./login/index.vue"
:[
"T+/8"
,
0
,
7
]};
function
a
(
e
){
var
n
=
o
[
e
];
return
n
?
Promise
.
all
(
n
.
slice
(
1
).
map
(
t
.
e
)).
then
(
function
(){
return
t
(
n
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
a
.
keys
=
function
(){
return
Object
.
keys
(
o
)},
a
.
id
=
"Opzk"
,
e
.
exports
=
a
},
SJI6
:
function
(
e
,
n
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
n
){},
lRwf
:
function
(
e
,
n
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
n
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
n
){}},[
0
]);
\ No newline at end of file
webpackJsonp
([
23
],{
"/NA0"
:
function
(
e
,
n
){},
0
:
function
(
e
,
n
,
t
){
t
(
"j1ja"
),
e
.
exports
=
t
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
n
){},
"5tgt"
:
function
(
e
,
n
,
t
){
e
.
exports
=
function
(
e
,
n
){
return
function
(
o
){
t
(
"Opzk"
)(
"./"
+
e
+
"/"
+
n
+
".vue"
).
then
(
function
(
e
){
o
(
e
)})}}},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"fZjL"
),
a
=
t
.
n
(
o
),
r
=
(
t
(
"j1ja"
),
t
(
"hKoQ"
)),
i
=
t
.
n
(
r
),
u
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
n
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
s
=
t
(
"lRwf"
),
p
=
t
.
n
(
s
),
m
=
t
(
"pRNm"
),
f
=
t
.
n
(
m
),
g
=
t
(
"5tgt"
),
l
=
t
.
n
(
g
);
p
.
a
.
use
(
f
.
a
);
var
d
,
v
=
function
(
e
){
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
n
){
e
(
n
)})},
h
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
l
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"概览"
,
redirect
:
"overview"
,
component
:
l
()(
"index"
,
"index"
),
children
:[{
path
:
"/overview"
,
name
:
"概览"
,
component
:
l
()(
"index"
,
"overview"
)},{
path
:
"/apiProgram"
,
name
:
"项目列表"
,
component
:
l
()(
"index"
,
"apiProgram"
)},{
path
:
"/apiProgramGroup"
,
name
:
"分组列表"
,
component
:
l
()(
"index"
,
"apiProgramGroup"
)},{
path
:
"/apiList"
,
name
:
"API列表"
,
component
:
l
()(
"index"
,
"apiList"
)},{
path
:
"/groupApiList"
,
name
:
"项目分组API列表"
,
component
:
l
()(
"index"
,
"groupApiList"
)},{
path
:
"/createApi"
,
name
:
"创建API"
,
component
:
l
()(
"index"
,
"createApi"
)},{
path
:
"/apiListManage"
,
name
:
"API列表管理"
,
component
:
l
()(
"index"
,
"apiListManage"
)},{
path
:
"/apiListManageShow"
,
name
:
"API列表管理查看"
,
component
:
l
()(
"index"
,
"apiListManageShow"
)},{
path
:
"/envManage"
,
name
:
"环境管理"
,
component
:
l
()(
"index"
,
"envManage"
)},{
path
:
"/createEnvSet"
,
name
:
"新建配置"
,
component
:
l
()(
"index"
,
"createEnvSet"
)},{
path
:
"/releaseRecords"
,
name
:
"发布记录"
,
component
:
l
()(
"index"
,
"releaseRecords"
)},{
path
:
"/pluginManage"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"pluginManage"
)},{
path
:
"/plugAhsh"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugAhsh"
)},{
path
:
"/plugPlatform"
,
name
:
"插件管理"
,
component
:
l
()(
"index"
,
"plugPlatform"
)},{
path
:
"/errorCode"
,
name
:
"错误码"
,
component
:
l
()(
"index"
,
"errorCode"
)}]},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
x
=
new
f
.
a
({
routes
:
h
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
I
=
t
(
"zL8q"
),
S
=
t
.
n
(
I
),
M
=
t
(
"Rf8U"
),
k
=
t
.
n
(
M
),
w
=
t
(
"mtWM"
),
A
=
t
.
n
(
w
),
D
=
t
(
"bOdI"
),
P
=
t
.
n
(
D
),
R
=
t
(
"mvHQ"
),
B
=
t
.
n
(
R
),
L
=
t
(
"SJI6"
),
T
=
t
.
n
(
L
);
p
.
a
.
use
(
T
.
a
);
var
b
=
new
T
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{},
tempBackData
:[]},
mutations
:(
d
=
{},
P
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
P
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
P
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
P
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
P
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
B
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
P
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
P
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
P
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
P
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
P
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
P
()(
d
,
"saveTempBack"
,
function
(
e
,
n
){
e
.
tempBackData
=
n
}),
P
()(
d
,
"clearTempBack"
,
function
(
e
){
e
.
tempBackData
=
[]}),
P
()(
d
,
"clearData"
,
function
(
e
){
e
.
baseInfo
=
{},
e
.
frontInfo
=
{},
e
.
backInfo
=
{},
e
.
resultInfo
=
{}}),
d
),
actions
:{
saveUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveUser"
,
n
)},
clearUserInfo
:
function
(
e
,
n
){
e
.
commit
(
"clearUser"
,
n
)},
saveBaseInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBase"
,
n
)},
saveFrontInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveFront"
,
n
)},
saveBackInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveBack"
,
n
)},
saveResultInfo
:
function
(
e
,
n
){
e
.
commit
(
"saveResult"
,
n
)},
saveTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"saveTempBack"
,
n
)},
clearTempBackData
:
function
(
e
,
n
){
e
.
commit
(
"clearTempBack"
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
H
=
(
t
(
"4qCZ"
),
t
(
"uKUT"
),
t
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
n
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
t
=
new
Date
(
e
),
o
=
{
"M+"
:
t
.
getMonth
()
+
1
,
"D+"
:
t
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
t
.
getDay
()),
"h+"
:
t
.
getHours
(),
"m+"
:
t
.
getMinutes
(),
"s+"
:
t
.
getSeconds
(),
"q+"
:
Math
.
floor
((
t
.
getMonth
()
+
3
)
/
3
),
S
:
t
.
getMilliseconds
()};
for
(
var
a
in
/
(
Y+
)
/
.
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,(
t
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
o
)
new
RegExp
(
"("
+
a
+
")"
).
test
(
n
)
&&
(
n
=
n
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
o
[
a
]:(
"00"
+
o
[
a
]).
substr
((
""
+
o
[
a
]).
length
)));
return
n
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
,
r
=
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
(),
i
=
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
(),
u
=
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
();
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
+
" "
+
r
+
":"
+
i
+
":"
+
u
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
),
t
=
n
.
getMonth
()
+
1
,
o
=
n
.
getDate
()
<
10
?
"0"
+
n
.
getDate
():
n
.
getDate
(),
a
=
t
<
10
?
"0"
+
t
:
t
;
return
n
.
getFullYear
()
+
"-"
+
a
+
"-"
+
o
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
n
=
new
Date
(
e
);
return
(
n
.
getHours
()
<
10
?
"0"
+
n
.
getHours
():
n
.
getHours
())
+
":"
+
(
n
.
getMinutes
()
<
10
?
"0"
+
n
.
getMinutes
():
n
.
getMinutes
())
+
":"
+
(
n
.
getSeconds
()
<
10
?
"0"
+
n
.
getSeconds
():
n
.
getSeconds
())}}});
i
.
a
.
polyfill
(),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
S
.
a
,{
size
:
"large"
}),
Vue
.
use
(
k
.
a
,
A
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
H
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
H
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
b
,
components
:{
App
:
c
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
11
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
19
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
6
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
12
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
18
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
16
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
8
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
13
],
"./index/groupApiList.vue"
:[
"S82n"
,
0
,
17
],
"./index/index.vue"
:[
"JXTs"
,
0
,
9
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
21
],
"./index/plugAhsh.vue"
:[
"JN/y"
,
0
,
5
],
"./index/plugPlatform.vue"
:[
"dAfO"
,
0
,
4
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
20
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
15
],
"./login/index.vue"
:[
"T+/8"
,
0
,
7
]};
function
a
(
e
){
var
n
=
o
[
e
];
return
n
?
Promise
.
all
(
n
.
slice
(
1
).
map
(
t
.
e
)).
then
(
function
(){
return
t
(
n
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
a
.
keys
=
function
(){
return
Object
.
keys
(
o
)},
a
.
id
=
"Opzk"
,
e
.
exports
=
a
},
SJI6
:
function
(
e
,
n
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
n
){},
lRwf
:
function
(
e
,
n
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
n
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
n
){}},[
0
]);
\ No newline at end of file
dist/static/js/manifest.
fe60218666c9bcff04ee
.js
→
dist/static/js/manifest.
30bc99e4966743e8ced7
.js
View file @
e7ab42bf
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
f
){
for
(
var
a
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
a
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
a
)
&&
(
e
[
a
]
=
c
[
a
]);
for
(
n
&&
n
(
r
,
c
,
f
);
b
.
length
;)
b
.
shift
()();
if
(
f
)
for
(
u
=
0
;
u
<
f
.
length
;
u
++
)
i
=
o
(
o
.
s
=
f
[
u
]);
return
i
};
var
r
=
{},
t
=
{
24
:
0
};
function
o
(
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
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
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
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
type
=
"text/javascript"
,
f
.
charset
=
"utf-8"
,
f
.
async
=!
0
,
f
.
timeout
=
12
e4
,
o
.
nc
&&
f
.
setAttribute
(
"nonce"
,
o
.
nc
),
f
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"9375e55c4a69923b85b0"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"746c1aff28909fa81065"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"8986d02b4b782618f642"
,
5
:
"a2dcd228e86f2340568b"
,
6
:
"e4fb3b8fe9848c1e3cdd"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"0774f888c4ec018000f4"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"6e70f43452cbef826036"
,
17
:
"8354f7b686256ddf47fb"
,
18
:
"e7685f45ec4dd5b70ae4"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
a
=
setTimeout
(
d
,
12
e4
);
function
d
(){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
a
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
f
.
onerror
=
f
.
onload
=
d
,
c
.
appendChild
(
f
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"./"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
f
){
for
(
var
a
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
d
=
r
[
i
],
t
[
d
]
&&
u
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
a
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
a
)
&&
(
e
[
a
]
=
c
[
a
]);
for
(
n
&&
n
(
r
,
c
,
f
);
u
.
length
;)
u
.
shift
()();
if
(
f
)
for
(
i
=
0
;
i
<
f
.
length
;
i
++
)
b
=
o
(
o
.
s
=
f
[
i
]);
return
b
};
var
r
=
{},
t
=
{
24
:
0
};
function
o
(
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
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
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
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
type
=
"text/javascript"
,
f
.
charset
=
"utf-8"
,
f
.
async
=!
0
,
f
.
timeout
=
12
e4
,
o
.
nc
&&
f
.
setAttribute
(
"nonce"
,
o
.
nc
),
f
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"9375e55c4a69923b85b0"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"746c1aff28909fa81065"
,
3
:
"ee2db5932cf0c94dec20"
,
4
:
"195803fe28cd92522aa2"
,
5
:
"9e039b3008bbf555db62"
,
6
:
"e4fb3b8fe9848c1e3cdd"
,
7
:
"b2a85a42ddd430235a63"
,
8
:
"0774f888c4ec018000f4"
,
9
:
"c98145195e68a6e13faf"
,
10
:
"638039a7b39908980436"
,
11
:
"f27d1de28264fbbe30ff"
,
12
:
"ccbc18453e41490e2dba"
,
13
:
"b109164d2be44afb7733"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"6700988b665e14f99d41"
,
16
:
"6e70f43452cbef826036"
,
17
:
"8354f7b686256ddf47fb"
,
18
:
"e7685f45ec4dd5b70ae4"
,
19
:
"40fd9824f7542ed7f56d"
,
20
:
"c163ea91d150e0ca1cb1"
,
21
:
"55879284ad4d1f03fbe0"
}[
e
]
+
".js"
;
var
a
=
setTimeout
(
d
,
12
e4
);
function
d
(){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
a
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
f
.
onerror
=
f
.
onload
=
d
,
c
.
appendChild
(
f
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"./"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/views/index/plugPlatform.vue
View file @
e7ab42bf
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-05 10:03:31
* @LastEditors: 无尘
* @LastEditTime: 2020-05-18 1
1:22:00
* @LastEditTime: 2020-05-18 1
3:43:13
-->
<
template
>
<div
class=
"api-body-content border-box"
>
...
...
@@ -149,7 +149,13 @@ export default {
that
.
currentPage
=
1
;
that
.
getList
();
},
changePro
()
{
async
changePro
()
{
const
that
=
this
;
await
that
.
getGroupList
();
that
.
currentPage
=
1
;
that
.
getList
();
},
changeGroup
()
{
const
that
=
this
;
that
.
currentPage
=
1
;
that
.
getList
();
...
...
@@ -248,7 +254,6 @@ export default {
endTime
:
that
.
logSearch
.
requestDate
[
1
],
requestProjectId
:
that
.
logSearch
.
requestProjectId
,
requestGroupId
:
that
.
logSearch
.
requestGroupId
,
requestStatus
:
that
.
logSearch
.
requestStatus
,
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
};
...
...
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