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
7308a157
Commit
7308a157
authored
Aug 30, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改配置
parent
8a44edfe
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
71 additions
and
48 deletions
+71
-48
index.html
dist/index.html
+2
-2
app.5d429efe07e669c38e96e91aabd61e33.css
dist/static/css/app.5d429efe07e669c38e96e91aabd61e33.css
+0
-0
2.2363fee75c7a17191177.js
dist/static/js/2.2363fee75c7a17191177.js
+2
-0
2.3fb6634d557a9813d379.js
dist/static/js/2.3fb6634d557a9813d379.js
+0
-2
app.6fffa4d913c25914075b.js
dist/static/js/app.6fffa4d913c25914075b.js
+2
-2
manifest.1bad64526a7edeaffa2c.js
dist/static/js/manifest.1bad64526a7edeaffa2c.js
+2
-2
back-constant.vue
src/components/createApi/back-constant.vue
+2
-0
back-table-right.vue
src/components/createApi/back-table-right.vue
+17
-11
body-param.vue
src/components/createApi/body-param.vue
+3
-0
create-backend.vue
src/components/createApi/create-backend.vue
+9
-8
create-front.vue
src/components/createApi/create-front.vue
+11
-11
create-result.vue
src/components/createApi/create-result.vue
+10
-10
header-param.vue
src/components/createApi/header-param.vue
+2
-0
index.js
src/filters/index.js
+9
-0
No files found.
dist/index.html
View file @
7308a157
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.44f787ae8267768efac75395f49048c4.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.a97a671a0bd49ff1e018.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.f1acc3ac0ff23ced6285.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
API网关管理平台
</title><link
href=
./static/css/app.5d429efe07e669c38e96e91aabd61e33.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.1bad64526a7edeaffa2c.js
></script><script
type=
text/javascript
src=
./static/js/vendor.bb8c036d7dd62f4cb37a.js
></script><script
type=
text/javascript
src=
./static/js/app.6fffa4d913c25914075b.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
44f787ae8267768efac75395f49048c4
.css
→
dist/static/css/app.
5d429efe07e669c38e96e91aabd61e33
.css
View file @
7308a157
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/2.2363fee75c7a17191177.js
0 → 100644
View file @
7308a157
webpackJsonp
([
2
],{
"1kTN"
:
function
(
e
,
t
){},
"2kyg"
:
function
(
e
,
t
){},
"5zde"
:
function
(
e
,
t
,
a
){
a
(
"zQR9"
),
a
(
"qyJz"
),
e
.
exports
=
a
(
"FeBl"
).
Array
.
from
},
"9Yxt"
:
function
(
e
,
t
){},
DL9u
:
function
(
e
,
t
){},
Gu7T
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
r
,
o
=
a
(
"c/Tr"
),
s
=
(
r
=
o
)
&&
r
.
__esModule
?
r
:{
default
:
r
};
t
.
default
=
function
(
e
){
if
(
Array
.
isArray
(
e
)){
for
(
var
t
=
0
,
a
=
Array
(
e
.
length
);
t
<
e
.
length
;
t
++
)
a
[
t
]
=
e
[
t
];
return
a
}
return
(
0
,
s
.
default
)(
e
)}},
Jd8v
:
function
(
e
,
t
){},
PCiy
:
function
(
e
,
t
){},
SldL
:
function
(
e
,
t
){
!
function
(
t
){
"use strict"
;
var
a
,
r
=
Object
.
prototype
,
o
=
r
.
hasOwnProperty
,
s
=
"function"
==
typeof
Symbol
?
Symbol
:{},
n
=
s
.
iterator
||
"@@iterator"
,
i
=
s
.
asyncIterator
||
"@@asyncIterator"
,
l
=
s
.
toStringTag
||
"@@toStringTag"
,
c
=
"object"
==
typeof
e
,
p
=
t
.
regeneratorRuntime
;
if
(
p
)
c
&&
(
e
.
exports
=
p
);
else
{(
p
=
t
.
regeneratorRuntime
=
c
?
e
.
exports
:{}).
wrap
=
D
;
var
u
=
"suspendedStart"
,
d
=
"suspendedYield"
,
f
=
"executing"
,
b
=
"completed"
,
y
=
{},
h
=
{};
h
[
n
]
=
function
(){
return
this
};
var
m
=
Object
.
getPrototypeOf
,
v
=
m
&&
m
(
m
(
K
([])));
v
&&
v
!==
r
&&
o
.
call
(
v
,
n
)
&&
(
h
=
v
);
var
_
=
x
.
prototype
=
g
.
prototype
=
Object
.
create
(
h
);
C
.
prototype
=
_
.
constructor
=
x
,
x
.
constructor
=
C
,
x
[
l
]
=
C
.
displayName
=
"GeneratorFunction"
,
p
.
isGeneratorFunction
=
function
(
e
){
var
t
=
"function"
==
typeof
e
&&
e
.
constructor
;
return
!!
t
&&
(
t
===
C
||
"GeneratorFunction"
===
(
t
.
displayName
||
t
.
name
))},
p
.
mark
=
function
(
e
){
return
Object
.
setPrototypeOf
?
Object
.
setPrototypeOf
(
e
,
x
):(
e
.
__proto__
=
x
,
l
in
e
||
(
e
[
l
]
=
"GeneratorFunction"
)),
e
.
prototype
=
Object
.
create
(
_
),
e
},
p
.
awrap
=
function
(
e
){
return
{
__await
:
e
}},
w
(
I
.
prototype
),
I
.
prototype
[
i
]
=
function
(){
return
this
},
p
.
AsyncIterator
=
I
,
p
.
async
=
function
(
e
,
t
,
a
,
r
){
var
o
=
new
I
(
D
(
e
,
t
,
a
,
r
));
return
p
.
isGeneratorFunction
(
t
)?
o
:
o
.
next
().
then
(
function
(
e
){
return
e
.
done
?
e
.
value
:
o
.
next
()})},
w
(
_
),
_
[
l
]
=
"Generator"
,
_
[
n
]
=
function
(){
return
this
},
_
.
toString
=
function
(){
return
"[object Generator]"
},
p
.
keys
=
function
(
e
){
var
t
=
[];
for
(
var
a
in
e
)
t
.
push
(
a
);
return
t
.
reverse
(),
function
a
(){
for
(;
t
.
length
;){
var
r
=
t
.
pop
();
if
(
r
in
e
)
return
a
.
value
=
r
,
a
.
done
=!
1
,
a
}
return
a
.
done
=!
0
,
a
}},
p
.
values
=
K
,
F
.
prototype
=
{
constructor
:
F
,
reset
:
function
(
e
){
if
(
this
.
prev
=
0
,
this
.
next
=
0
,
this
.
sent
=
this
.
_sent
=
a
,
this
.
done
=!
1
,
this
.
delegate
=
null
,
this
.
method
=
"next"
,
this
.
arg
=
a
,
this
.
tryEntries
.
forEach
(
$
),
!
e
)
for
(
var
t
in
this
)
"t"
===
t
.
charAt
(
0
)
&&
o
.
call
(
this
,
t
)
&&!
isNaN
(
+
t
.
slice
(
1
))
&&
(
this
[
t
]
=
a
)},
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
r
(
r
,
o
){
return
i
.
type
=
"throw"
,
i
.
arg
=
e
,
t
.
next
=
r
,
o
&&
(
t
.
method
=
"next"
,
t
.
arg
=
a
),
!!
o
}
for
(
var
s
=
this
.
tryEntries
.
length
-
1
;
s
>=
0
;
--
s
){
var
n
=
this
.
tryEntries
[
s
],
i
=
n
.
completion
;
if
(
"root"
===
n
.
tryLoc
)
return
r
(
"end"
);
if
(
n
.
tryLoc
<=
this
.
prev
){
var
l
=
o
.
call
(
n
,
"catchLoc"
),
c
=
o
.
call
(
n
,
"finallyLoc"
);
if
(
l
&&
c
){
if
(
this
.
prev
<
n
.
catchLoc
)
return
r
(
n
.
catchLoc
,
!
0
);
if
(
this
.
prev
<
n
.
finallyLoc
)
return
r
(
n
.
finallyLoc
)}
else
if
(
l
){
if
(
this
.
prev
<
n
.
catchLoc
)
return
r
(
n
.
catchLoc
,
!
0
)}
else
{
if
(
!
c
)
throw
new
Error
(
"try statement without catch or finally"
);
if
(
this
.
prev
<
n
.
finallyLoc
)
return
r
(
n
.
finallyLoc
)}}}},
abrupt
:
function
(
e
,
t
){
for
(
var
a
=
this
.
tryEntries
.
length
-
1
;
a
>=
0
;
--
a
){
var
r
=
this
.
tryEntries
[
a
];
if
(
r
.
tryLoc
<=
this
.
prev
&&
o
.
call
(
r
,
"finallyLoc"
)
&&
this
.
prev
<
r
.
finallyLoc
){
var
s
=
r
;
break
}}
s
&&
(
"break"
===
e
||
"continue"
===
e
)
&&
s
.
tryLoc
<=
t
&&
t
<=
s
.
finallyLoc
&&
(
s
=
null
);
var
n
=
s
?
s
.
completion
:{};
return
n
.
type
=
e
,
n
.
arg
=
t
,
s
?(
this
.
method
=
"next"
,
this
.
next
=
s
.
finallyLoc
,
y
):
this
.
complete
(
n
)},
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
),
y
},
finish
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
a
=
this
.
tryEntries
[
t
];
if
(
a
.
finallyLoc
===
e
)
return
this
.
complete
(
a
.
completion
,
a
.
afterLoc
),
$
(
a
),
y
}},
catch
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
a
=
this
.
tryEntries
[
t
];
if
(
a
.
tryLoc
===
e
){
var
r
=
a
.
completion
;
if
(
"throw"
===
r
.
type
){
var
o
=
r
.
arg
;
$
(
a
)}
return
o
}}
throw
new
Error
(
"illegal catch attempt"
)},
delegateYield
:
function
(
e
,
t
,
r
){
return
this
.
delegate
=
{
iterator
:
K
(
e
),
resultName
:
t
,
nextLoc
:
r
},
"next"
===
this
.
method
&&
(
this
.
arg
=
a
),
y
}}}
function
D
(
e
,
t
,
a
,
r
){
var
o
=
t
&&
t
.
prototype
instanceof
g
?
t
:
g
,
s
=
Object
.
create
(
o
.
prototype
),
n
=
new
F
(
r
||
[]);
return
s
.
_invoke
=
function
(
e
,
t
,
a
){
var
r
=
u
;
return
function
(
o
,
s
){
if
(
r
===
f
)
throw
new
Error
(
"Generator is already running"
);
if
(
r
===
b
){
if
(
"throw"
===
o
)
throw
s
;
return
j
()}
for
(
a
.
method
=
o
,
a
.
arg
=
s
;;){
var
n
=
a
.
delegate
;
if
(
n
){
var
i
=
T
(
n
,
a
);
if
(
i
){
if
(
i
===
y
)
continue
;
return
i
}}
if
(
"next"
===
a
.
method
)
a
.
sent
=
a
.
_sent
=
a
.
arg
;
else
if
(
"throw"
===
a
.
method
){
if
(
r
===
u
)
throw
r
=
b
,
a
.
arg
;
a
.
dispatchException
(
a
.
arg
)}
else
"return"
===
a
.
method
&&
a
.
abrupt
(
"return"
,
a
.
arg
);
r
=
f
;
var
l
=
k
(
e
,
t
,
a
);
if
(
"normal"
===
l
.
type
){
if
(
r
=
a
.
done
?
b
:
d
,
l
.
arg
===
y
)
continue
;
return
{
value
:
l
.
arg
,
done
:
a
.
done
}}
"throw"
===
l
.
type
&&
(
r
=
b
,
a
.
method
=
"throw"
,
a
.
arg
=
l
.
arg
)}}}(
e
,
a
,
n
),
s
}
function
k
(
e
,
t
,
a
){
try
{
return
{
type
:
"normal"
,
arg
:
e
.
call
(
t
,
a
)}}
catch
(
e
){
return
{
type
:
"throw"
,
arg
:
e
}}}
function
g
(){}
function
C
(){}
function
x
(){}
function
w
(
e
){[
"next"
,
"throw"
,
"return"
].
forEach
(
function
(
t
){
e
[
t
]
=
function
(
e
){
return
this
.
_invoke
(
t
,
e
)}})}
function
I
(
e
){
var
t
;
this
.
_invoke
=
function
(
a
,
r
){
function
s
(){
return
new
Promise
(
function
(
t
,
s
){
!
function
t
(
a
,
r
,
s
,
n
){
var
i
=
k
(
e
[
a
],
e
,
r
);
if
(
"throw"
!==
i
.
type
){
var
l
=
i
.
arg
,
c
=
l
.
value
;
return
c
&&
"object"
==
typeof
c
&&
o
.
call
(
c
,
"__await"
)?
Promise
.
resolve
(
c
.
__await
).
then
(
function
(
e
){
t
(
"next"
,
e
,
s
,
n
)},
function
(
e
){
t
(
"throw"
,
e
,
s
,
n
)}):
Promise
.
resolve
(
c
).
then
(
function
(
e
){
l
.
value
=
e
,
s
(
l
)},
n
)}
n
(
i
.
arg
)}(
a
,
r
,
t
,
s
)})}
return
t
=
t
?
t
.
then
(
s
,
s
):
s
()}}
function
T
(
e
,
t
){
var
r
=
e
.
iterator
[
t
.
method
];
if
(
r
===
a
){
if
(
t
.
delegate
=
null
,
"throw"
===
t
.
method
){
if
(
e
.
iterator
.
return
&&
(
t
.
method
=
"return"
,
t
.
arg
=
a
,
T
(
e
,
t
),
"throw"
===
t
.
method
))
return
y
;
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"The iterator does not provide a 'throw' method"
)}
return
y
}
var
o
=
k
(
r
,
e
.
iterator
,
t
.
arg
);
if
(
"throw"
===
o
.
type
)
return
t
.
method
=
"throw"
,
t
.
arg
=
o
.
arg
,
t
.
delegate
=
null
,
y
;
var
s
=
o
.
arg
;
return
s
?
s
.
done
?(
t
[
e
.
resultName
]
=
s
.
value
,
t
.
next
=
e
.
nextLoc
,
"return"
!==
t
.
method
&&
(
t
.
method
=
"next"
,
t
.
arg
=
a
),
t
.
delegate
=
null
,
y
):
s
:(
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"iterator result is not an object"
),
t
.
delegate
=
null
,
y
)}
function
O
(
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
$
(
e
){
var
t
=
e
.
completion
||
{};
t
.
type
=
"normal"
,
delete
t
.
arg
,
e
.
completion
=
t
}
function
F
(
e
){
this
.
tryEntries
=
[{
tryLoc
:
"root"
}],
e
.
forEach
(
O
,
this
),
this
.
reset
(
!
0
)}
function
K
(
e
){
if
(
e
){
var
t
=
e
[
n
];
if
(
t
)
return
t
.
call
(
e
);
if
(
"function"
==
typeof
e
.
next
)
return
e
;
if
(
!
isNaN
(
e
.
length
)){
var
r
=-
1
,
s
=
function
t
(){
for
(;
++
r
<
e
.
length
;)
if
(
o
.
call
(
e
,
r
))
return
t
.
value
=
e
[
r
],
t
.
done
=!
1
,
t
;
return
t
.
value
=
a
,
t
.
done
=!
0
,
t
};
return
s
.
next
=
s
}}
return
{
next
:
j
}}
function
j
(){
return
{
value
:
a
,
done
:
!
0
}}}(
function
(){
return
this
}()
||
Function
(
"return this"
)())},
Sw3L
:
function
(
e
,
t
){},
Xxa5
:
function
(
e
,
t
,
a
){
e
.
exports
=
a
(
"jyFz"
)},
"Yns/"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
o
=
a
(
"fZjL"
),
s
=
a
.
n
(
o
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
l
=
a
(
"mvHQ"
),
c
=
a
.
n
(
l
),
p
=
a
(
"exGp"
),
u
=
a
.
n
(
p
),
d
=
a
(
"Kkt8"
),
f
=
a
(
"l46T"
),
b
=
a
(
"P9l9"
),
y
=
a
(
"TUB1"
),
h
=
a
(
"LlAa"
),
m
=
{
name
:
"create-base"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
},
data
:
function
(){
return
{
apiInfoData
:{
interfaceId
:
""
,
interfaceVersionId
:
""
,
interfaceName
:
""
,
target
:
"1"
,
optType
:
"get"
,
interfaceUrl
:
""
,
interfaceDescribe
:
""
},
rules
:{
interfaceName
:[{
required
:
!
0
,
message
:
"请输入API名称"
,
trigger
:
"blur"
}],
interfaceUrl
:[{
required
:
!
0
,
message
:
"请输入请求路径"
,
trigger
:
"blur"
}]}}},
methods
:{
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
a
){
if
(
!
a
)
return
!
1
;
t
.
blurInterfaceUrl
(
e
)})},
blurInterfaceUrl
:
function
(
e
){
var
t
=
this
,
a
=
{
update
:
!!
t
.
$route
.
query
.
interfaceId
,
interfaceUrl
:
t
.
apiInfoData
.
interfaceUrl
};
Object
(
b
.
a
)(
"/gateway-manage/is-exist-interface-url"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
if
(
"0000"
==
r
.
code
)
return
r
.
result
?(
y
.
a
.
showmsg
(
"接口已存在"
,
"warning"
),
!
1
):
void
(
"baseForm"
==
e
&&
(
t
.
$emit
(
"submitNext"
,
t
.
apiInfoData
),
t
.
$store
.
dispatch
(
"saveBaseInfo"
,
t
.
apiInfoData
)));
h
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleQuery
:
function
(
e
,
t
,
a
){
var
r
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
o
in
t
.
frontParams
.
properties
)
t
.
frontParams
.
properties
[
o
].
frontOriginType
==
a
&&
this
.
$set
(
r
.
properties
,
t
.
frontParams
.
properties
[
o
].
currentKey
,
t
.
frontParams
.
properties
[
o
]);
return
r
},
handleBack
:
function
(
e
,
t
,
a
){
var
r
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
o
in
t
.
endParams
.
properties
)
t
.
endParams
.
properties
[
o
].
backendOriginType
==
a
&&
this
.
$set
(
r
.
properties
,
t
.
endParams
.
properties
[
o
].
rootKey
,
t
.
endParams
.
properties
[
o
]);
return
r
},
handleConst
:
function
(
e
,
t
){
var
a
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
r
in
t
.
endParams
.
properties
)
1
==
t
.
endParams
.
properties
[
r
].
constFlag
&&
this
.
$set
(
a
.
properties
,
t
.
endParams
.
properties
[
r
].
currentKey
,
t
.
endParams
.
properties
[
r
]);
return
a
},
handleFrontData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
o
,
s
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
t
,
o
=
JSON
.
parse
(
c
()(
e
)),
s
=
{
protocol
:
o
.
protocol
,
requestType
:
o
.
requestType
,
frontBodyType
:
o
.
frontBodyType
||
"json"
,
frontParams
:{},
headerData
:{},
queryData
:{},
bodyJsonData
:{},
bodyFormData
:{}},
a
.
next
=
5
,
r
.
handleQuery
(
s
,
o
,
"query"
);
case
5
:
return
s
.
queryData
=
a
.
sent
,
a
.
next
=
8
,
r
.
handleQuery
(
s
,
o
,
"header"
);
case
8
:
if
(
s
.
headerData
=
a
.
sent
,
"POST"
!=
o
.
requestType
||
"form"
!=
o
.
frontBodyType
){
a
.
next
=
13
;
break
}
return
a
.
next
=
12
,
r
.
handleQuery
(
s
,
o
,
"body"
);
case
12
:
s
.
bodyFormData
=
a
.
sent
;
case
13
:
if
(
"POST"
!=
o
.
requestType
||
"json"
!=
o
.
frontBodyType
){
a
.
next
=
17
;
break
}
return
a
.
next
=
16
,
r
.
handleQuery
(
s
,
o
,
"body"
);
case
16
:
s
.
bodyJsonData
=
a
.
sent
;
case
17
:
r
.
$store
.
dispatch
(
"saveFrontInfo"
,
s
);
case
18
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleBackData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
o
,
s
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
t
,
o
=
JSON
.
parse
(
c
()(
e
)),
s
=
{
interfaceType
:
String
(
o
.
interfaceType
),
version
:
o
.
version
,
backendRequestType
:
o
.
backendRequestType
,
backendHttpPath
:
o
.
backendHttpPath
||
""
,
dubboInterface
:
o
.
dubboInterface
||
""
,
dubboMethod
:
o
.
dubboMethod
||
""
,
dubboVersion
:
o
.
dubboVersion
||
""
,
proxyCode
:
o
.
proxyCode
||
""
,
timeout
:
2
e4
,
backHeaderData
:{},
backQueryData
:{},
backBodyJsonData
:{},
backBodyFormData
:{},
constData
:{}},
a
.
next
=
5
,
r
.
handleQuery
(
s
,
o
,
"query"
);
case
5
:
return
s
.
backQueryData
=
a
.
sent
,
a
.
next
=
8
,
r
.
handleQuery
(
s
,
o
,
"header"
);
case
8
:
if
(
s
.
backHeaderData
=
a
.
sent
,
"POST"
!=
o
.
requestType
||
"form"
!=
o
.
frontBodyType
){
a
.
next
=
13
;
break
}
return
a
.
next
=
12
,
r
.
handleQuery
(
s
,
o
,
"body"
);
case
12
:
s
.
backBodyFormData
=
a
.
sent
;
case
13
:
if
(
"POST"
!=
o
.
requestType
||
"json"
!=
o
.
frontBodyType
){
a
.
next
=
17
;
break
}
return
a
.
next
=
16
,
r
.
handleQuery
(
s
,
o
,
"body"
);
case
16
:
s
.
backBodyJsonData
=
a
.
sent
;
case
17
:
return
a
.
next
=
19
,
r
.
handleConst
(
s
,
o
);
case
19
:
s
.
constData
=
a
.
sent
,
r
.
$store
.
dispatch
(
"saveBackInfo"
,
s
);
case
21
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleResultData
:
function
(
e
){
var
t
=
JSON
.
parse
(
c
()(
e
)),
a
=
{
resultParams
:
t
.
resultParams
,
sucReturn
:
t
.
sucReturn
,
errReturn
:
t
.
errReturn
,
errCode
:
t
.
errCode
,
sceneCode
:
t
.
sceneCode
};
this
.
$store
.
dispatch
(
"saveResultInfo"
,
a
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
interfaceId
:
e
.
$route
.
query
.
interfaceId
,
interfaceVersionId
:
e
.
$route
.
query
.
interfaceVersionId
};
Object
(
b
.
a
)(
"/gateway-manage/get-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
a
.
result
.
frontParams
=
JSON
.
parse
(
a
.
result
.
endParams
),
a
.
result
.
endParams
=
JSON
.
parse
(
a
.
result
.
endParams
),
a
.
result
.
errCode
=
JSON
.
parse
(
a
.
result
.
errCode
),
a
.
result
.
resultParams
=
JSON
.
parse
(
a
.
result
.
resultParams
),
e
.
apiInfoData
.
interfaceId
=
a
.
result
.
interfaceId
,
e
.
apiInfoData
.
interfaceVersionId
=
a
.
result
.
interfaceVersionId
,
e
.
apiInfoData
.
interfaceName
=
a
.
result
.
interfaceName
,
e
.
apiInfoData
.
target
=
String
(
a
.
result
.
target
),
e
.
apiInfoData
.
optType
=
a
.
result
.
optType
,
e
.
apiInfoData
.
interfaceUrl
=
a
.
result
.
interfaceUrl
,
e
.
apiInfoData
.
interfaceDescribe
=
a
.
result
.
interfaceDescribe
,
e
.
handleFrontData
(
a
.
result
),
e
.
handleBackData
(
a
.
result
),
e
.
handleResultData
(
a
.
result
),
!
1
;
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
$route
.
query
.
interfaceId
&&!
s
()(
this
.
$store
.
state
.
baseInfo
).
length
&&
this
.
getData
(),
s
()(
this
.
$store
.
state
.
baseInfo
).
length
&&
(
this
.
apiInfoData
=
this
.
$store
.
state
.
baseInfo
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"baseForm"
,
attrs
:{
"label-width"
:
"104px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
,
prop
:
"interfaceName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
interfaceName
,
holder
:
"请输入API名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API类型:"
,
prop
:
"target"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
apiInfoData
.
target
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"target"
,
t
)},
expression
:
"apiInfoData.target"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"公开"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"私有"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"访问类型:"
,
prop
:
"optType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
optType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"optType"
,
t
)},
expression
:
"apiInfoData.optType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"list"
,
value
:
"list"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"delete"
,
value
:
"delete"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"update"
,
value
:
"update"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"get"
,
value
:
"get"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"search"
,
value
:
"search"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
,
prop
:
"interfaceUrl"
}},[
a
(
"el-input"
,{
staticClass
:
"w-329"
,
on
:{
blur
:
e
.
blurInterfaceUrl
},
model
:{
value
:
e
.
apiInfoData
.
interfaceUrl
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceUrl"
,
t
)},
expression
:
"apiInfoData.interfaceUrl"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
apiInfoData
.
interfaceDescribe
,
holder
:
""
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceDescribe"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"baseForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
m
,
v
,
!
1
,
function
(
e
){
a
(
"Sw3L"
)},
"data-v-572713f2"
,
null
).
exports
,
D
=
a
(
"Gu7T"
),
k
=
a
.
n
(
D
),
g
=
{
name
:
"header-param"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
frontOriginType
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
trData
:{
type
:
"object"
,
properties
:{
name
:{
frontOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"name"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
}}},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
){
this
.
$delete
(
this
.
itemData
.
properties
,
t
)},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
itemData
.
properties
,
"field"
+
e
,{
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
})}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
C
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
check
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"check"
,
a
)},
expression
:
"itemValue.check"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"示例"
},
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"描述"
},
model
:{
value
:
t
.
description
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"description"
,
a
)},
expression
:
"itemValue.description"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
,
r
,
o
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])])]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加行"
)])])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"必选"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"默认值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_6 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"描述"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])])}]};
var
x
=
a
(
"VU/8"
)(
g
,
C
,
!
1
,
function
(
e
){
a
(
"aLMg"
)},
"data-v-4c93aae6"
,
null
).
exports
,
w
=
{
name
:
"body-row"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
frontOriginType
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
trData
:{},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
,
r
){
this
.
handleDelData
(
this
.
itemData
,
e
,
t
)},
handleDelData
:
function
(
e
,
t
,
a
){
this
.
handleObjData
(
e
,
t
,
a
)},
handleObjData
:
function
(
e
,
t
,
a
){
for
(
var
r
in
e
)
e
[
r
]
==
t
&&
this
.
$delete
(
e
.
properties
,
a
)},
changeType
:
function
(
e
,
t
,
a
,
r
){
"string"
!=
e
&&
"boolean"
!=
e
&&
"number"
!=
e
&&
"object"
!=
e
||
(
t
.
properties
=
{},
t
.
hasOwnProperty
(
"items"
)
&&
this
.
$delete
(
t
,
"items"
)),
"array"
==
e
&&
this
.
$set
(
t
,
"items"
,{
parentKey
:
a
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
()},
handleAdd
:
function
(
e
,
t
,
a
,
r
){
var
o
=
this
.
keyLength
++
;
if
(
"array"
==
e
.
type
)
return
this
.
$set
(
e
.
items
.
properties
,
"field"
+
o
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
o
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
(),
!
1
;
this
.
$set
(
e
.
properties
,
"field"
+
o
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
o
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
()}},
watch
:{
itemData
:
function
(
e
,
t
){
e
&&
(
this
.
trData
=
JSON
.
parse
(
c
()(
e
)))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
disabled
:
2
==
t
.
level
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
on
:{
change
:
function
(
a
){
e
.
changeType
(
t
.
type
,
t
,
t
.
currentKey
,
t
.
level
)}},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"object"
,
value
:
"object"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"array"
,
value
:
"array"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
check
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"check"
,
a
)},
expression
:
"itemValue.check"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"示例"
},
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"描述"
},
model
:{
value
:
t
.
description
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"description"
,
a
)},
expression
:
"itemValue.description"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
"array"
==
t
.
type
||
"object"
==
t
.
type
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleAdd
(
t
,
t
.
currentKey
,
o
,
t
.
level
)}}},[
e
.
_v
(
"添加子属性"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
!=
t
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
parentKey
,
t
.
currentKey
,
o
,
t
.
level
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()],
1
)])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"body-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
frontOriginType
:
e
.
frontOriginType
,
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"body-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
frontOriginType
:
e
.
frontOriginType
,
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
T
=
a
(
"VU/8"
)(
w
,
I
,
!
1
,
function
(
e
){
a
(
"kVOZ"
)},
"data-v-46bdc337"
,
null
).
exports
,
O
=
a
(
"jvWE"
),
$
=
{
name
:
"create-front"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
headerParam
:
x
,
bodyParam
:
T
},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
requestType
:
"GET"
,
frontBodyType
:
"json"
,
frontParams
:{},
headerData
:{},
queryData
:{},
bodyJsonData
:{},
bodyFormData
:{}},
headerData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
queryData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
bodyJsonData
:{
type
:
"object"
,
level
:
1
,
properties
:{
bodyRoot
:{
level
:
2
,
currentKey
:
"bodyRoot"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]},
bodyFormData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
rules
:{
requestType
:[{
required
:
!
0
,
message
:
"请选择请求方法"
,
trigger
:
"blur"
}]}}},
methods
:{
refreshData
:
function
(
e
){
this
.
frontData
=
e
},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handleData
()})},
handleData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
n
,
l
,
c
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
r
=
[].
concat
(
k
()(
s
()(
a
.
queryData
.
properties
)),
k
()(
s
()(
a
.
headerData
.
properties
))),
"POST"
==
a
.
apiInfoData
.
requestType
&&
"form"
==
a
.
apiInfoData
.
frontBodyType
&&
(
r
=
[].
concat
(
k
()(
r
),
k
()(
s
()(
a
.
bodyFormData
.
properties
)))),
t
.
next
=
5
,
Object
(
O
.
b
)(
r
);
case
5
:
if
(
!
t
.
sent
){
t
.
next
=
9
;
break
}
return
y
.
a
.
showmsg
(
"参数名重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
9
:
if
(
"POST"
==
a
.
apiInfoData
.
requestType
&&
"json"
==
a
.
apiInfoData
.
frontBodyType
){
if
(
s
()(
a
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
).
length
)
for
(
o
in
a
.
bodyJsonData
.
properties
.
bodyRoot
.
required
=
[],
a
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
)
a
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
[
o
].
check
&&
a
.
bodyJsonData
.
properties
.
bodyRoot
.
required
.
push
(
o
);
a
.
apiInfoData
.
bodyJsonData
=
a
.
bodyJsonData
}
else
a
.
apiInfoData
.
bodyJsonData
=
{};
if
(
"POST"
==
a
.
apiInfoData
.
requestType
&&
"form"
==
a
.
apiInfoData
.
frontBodyType
){
if
(
s
()(
a
.
bodyFormData
.
properties
).
length
)
for
(
n
in
a
.
bodyFormData
.
required
=
[],
a
.
bodyFormData
.
properties
)
a
.
bodyFormData
.
properties
[
n
].
check
&&
a
.
bodyFormData
.
required
.
push
(
n
);
a
.
apiInfoData
.
bodyFormData
=
a
.
bodyFormData
}
else
a
.
apiInfoData
.
bodyFormData
=
{};
if
(
s
()(
a
.
headerData
.
properties
).
length
)
for
(
l
in
a
.
headerData
.
required
=
[],
a
.
headerData
.
properties
)
a
.
headerData
.
properties
[
l
].
check
&&
a
.
headerData
.
required
.
push
(
l
);
if
(
s
()(
a
.
queryData
.
properties
).
length
)
for
(
c
in
a
.
queryData
.
required
=
[],
a
.
queryData
.
properties
)
a
.
queryData
.
properties
[
c
].
check
&&
a
.
queryData
.
required
.
push
(
c
);
a
.
apiInfoData
.
headerData
=
a
.
headerData
,
a
.
apiInfoData
.
queryData
=
a
.
queryData
,
a
.
$store
.
dispatch
(
"saveFrontInfo"
,
a
.
apiInfoData
),
a
.
$emit
(
"submitNext"
,
a
.
apiInfoData
);
case
17
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
frontInfo
)),
this
.
headerData
=
this
.
apiInfoData
.
headerData
,
this
.
queryData
=
this
.
apiInfoData
.
queryData
;
this
.
bodyJsonData
=
s
()(
this
.
apiInfoData
.
bodyJsonData
).
length
?
this
.
apiInfoData
.
bodyJsonData
:{
type
:
"object"
,
level
:
1
,
properties
:{
bodyRoot
:{
level
:
2
,
currentKey
:
"bodyRoot"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]},
this
.
bodyFormData
=
s
()(
this
.
apiInfoData
.
bodyFormData
).
length
?
this
.
apiInfoData
.
bodyFormData
:{
type
:
"object"
,
level
:
1
,
properties
:{
bodyForm
:{
level
:
2
,
currentKey
:
"bodyForm"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]}}},
mounted
:
function
(){
s
()(
this
.
$store
.
state
.
frontInfo
).
length
&&
this
.
handleStoreData
()}},
F
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"baseForm"
,
attrs
:{
"label-width"
:
"104px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"协议:"
,
prop
:
"protocol"
}},[
e
.
_v
(
e
.
_s
(
e
.
apiInfoData
.
protocol
))]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求方法:"
,
prop
:
"requestType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
requestType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"requestType"
,
t
)},
expression
:
"apiInfoData.requestType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"GET"
,
value
:
"GET"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"POST"
,
value
:
"POST"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"color-303133 font-w-700"
,
attrs
:{
label
:
"参数配置"
}}),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"header"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontHeaderTable"
,
attrs
:{
itemData
:
e
.
headerData
,
frontOriginType
:
"header"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"query"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontQueryTable"
,
attrs
:{
itemData
:
e
.
queryData
,
frontOriginType
:
"query"
}})],
1
),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"body"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
a
(
"el-radio"
,{
attrs
:{
label
:
"json"
},
model
:{
value
:
e
.
apiInfoData
.
frontBodyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"frontBodyType"
,
t
)},
expression
:
"apiInfoData.frontBodyType"
}},[
e
.
_v
(
"json"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"form"
},
model
:{
value
:
e
.
apiInfoData
.
frontBodyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"frontBodyType"
,
t
)},
expression
:
"apiInfoData.frontBodyType"
}},[
e
.
_v
(
"form"
)])],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
&&
"json"
==
e
.
apiInfoData
.
frontBodyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"div"
,{
staticClass
:
"body-param-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"必选"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"默认值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_6 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"描述"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"body-param"
,{
ref
:
"frontBodyJsonTable"
,
attrs
:{
itemData
:
e
.
bodyJsonData
,
frontOriginType
:
"body"
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
&&
"form"
==
e
.
apiInfoData
.
frontBodyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontBodyFormTable"
,
attrs
:{
itemData
:
e
.
bodyFormData
,
frontOriginType
:
"body"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"baseForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
K
=
a
(
"VU/8"
)(
$
,
F
,
!
1
,
function
(
e
){
a
(
"DL9u"
)},
"data-v-66a956d9"
,
null
).
exports
,
j
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
e
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
R
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
t
.
type
||
"array"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
r
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
frontOriginType
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
type
))])])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"back-table-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"back-table-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
q
=
a
(
"VU/8"
)(
j
,
R
,
!
1
,
function
(
e
){
a
(
"9Yxt"
)},
"data-v-ed85a484"
,
null
).
exports
,
S
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
interfaceType
:{
type
:
String
,
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
methods
:{
blurKey
:
function
(
e
,
t
){},
changeCheck
:
function
(
e
,
t
){
var
a
=
this
;
return
u
()(
i
.
a
.
mark
(
function
r
(){
var
o
,
n
,
l
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
console
.
log
(
e
,
t
),
o
=
a
,
"object"
!=
e
.
type
||!
s
()(
e
.
properties
).
length
){
r
.
next
=
14
;
break
}
e
.
isRootKeyFlag
=!
1
,
r
.
t0
=
i
.
a
.
keys
(
e
.
properties
);
case
5
:
if
((
r
.
t1
=
r
.
t0
()).
done
){
r
.
next
=
14
;
break
}
if
(
n
=
r
.
t1
.
value
,
e
.
properties
[
n
].
isRootKeyFlag
=!
0
,
o
.
$set
(
e
.
properties
[
n
],
"isRootKeyFlag"
,
!
0
),
"object"
!=
e
.
properties
[
n
].
type
||!
s
()(
e
.
properties
[
n
].
properties
).
length
){
r
.
next
=
12
;
break
}
return
r
.
next
=
12
,
o
.
checkArrObjData
(
e
.
properties
[
n
].
properties
);
case
12
:
r
.
next
=
5
;
break
;
case
14
:
if
(
"array"
!=
e
.
type
||!
s
()(
e
.
items
.
properties
).
length
){
r
.
next
=
25
;
break
}
e
.
isRootKeyFlag
=!
1
,
r
.
t2
=
i
.
a
.
keys
(
e
.
items
.
properties
);
case
17
:
if
((
r
.
t3
=
r
.
t2
()).
done
){
r
.
next
=
25
;
break
}
if
(
l
=
r
.
t3
.
value
,
e
.
items
.
properties
[
l
].
isRootKeyFlag
=!
0
,
"array"
!=
e
.
properties
[
l
].
type
||!
s
()(
e
.
items
.
properties
[
l
].
properties
).
length
){
r
.
next
=
23
;
break
}
return
r
.
next
=
23
,
o
.
checkArrObjData
(
e
.
items
.
properties
[
l
].
properties
);
case
23
:
r
.
next
=
17
;
break
;
case
25
:
o
.
$forceUpdate
();
case
26
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkArrObjData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
o
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
r
=
t
,
a
.
t0
=
i
.
a
.
keys
(
e
);
case
2
:
if
((
a
.
t1
=
a
.
t0
()).
done
){
a
.
next
=
15
;
break
}
if
(
o
=
a
.
t1
.
value
,
e
[
o
].
isRootKeyFlag
=!
0
,
"object"
!=
e
[
o
].
type
||!
s
()(
e
[
o
].
properties
).
length
){
a
.
next
=
9
;
break
}
return
e
[
o
].
isRootKeyFlag
=!
0
,
a
.
next
=
9
,
r
.
checkArrObjData
(
e
[
o
].
properties
);
case
9
:
if
(
"array"
!=
e
[
o
].
type
||!
s
()(
e
[
o
].
items
.
properties
).
length
){
a
.
next
=
13
;
break
}
return
e
[
o
].
isRootKeyFlag
=!
0
,
a
.
next
=
13
,
r
.
checkArrObjData
(
e
[
o
].
items
.
properties
);
case
13
:
a
.
next
=
2
;
break
;
case
15
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
B
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
t
.
type
||
"array"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
e
.
itemData
.
isRootKeyFlag
},
on
:{
change
:
function
(
a
){
e
.
changeCheck
(
t
,
r
)}},
model
:{
value
:
t
.
isRootKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"isRootKey"
,
a
)},
expression
:
"itemValue.isRootKey"
}})],
1
)]),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入参数名"
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
rootKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"rootKey"
,
a
)},
expression
:
"itemValue.rootKey"
}})],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数位置"
},
model
:{
value
:
t
.
backendOriginType
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"backendOriginType"
,
a
)},
expression
:
"itemValue.backendOriginType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"header"
,
value
:
"header"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"query"
,
value
:
"query"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"body"
,
value
:
"body"
}})],
1
)],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
type
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入参数值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
"1"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入包路径"
},
model
:{
value
:
t
.
objectClass
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"objectClass"
,
a
)},
expression
:
"itemValue.objectClass"
}})],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入排序"
},
model
:{
value
:
t
.
sort
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"sort"
,
a
)},
expression
:
"itemValue.sort"
}})],
1
)]):
e
.
_e
()])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
?
a
(
"back-table-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
interfaceType
:
e
.
interfaceType
,
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
?
a
(
"back-table-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
interfaceType
:
e
.
interfaceType
,
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
J
=
a
(
"VU/8"
)(
S
,
B
,
!
1
,
function
(
e
){
a
(
"urdk"
)},
"data-v-797b6635"
,
null
).
exports
,
P
=
{
name
:
"back-constant"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{
type
:
"object"
,
properties
:{
name
:{
frontOriginType
:
"header"
,
backendOriginType
:
"header"
,
type
:
"string"
,
constFlag
:
!
0
,
currentKey
:
"name"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
}}},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
){
this
.
$delete
(
this
.
itemData
.
properties
,
t
)},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
itemData
.
properties
,
"field"
+
e
,{
frontOriginType
:
"header"
,
backendOriginType
:
"header"
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
constFlag
:
!
0
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
isRootKeyFlag
:
!
1
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
})}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))},
interfaceType
:
function
(
e
,
t
){
this
.
backType
=
e
}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
V
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
_m
(
1
),
e
.
_v
(
" "
),
e
.
_m
(
2
),
e
.
_v
(
" "
),
e
.
_m
(
3
)])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
t
.
constFlag
?
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入参数名"
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数位置"
},
model
:{
value
:
t
.
backendOriginType
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"backendOriginType"
,
a
)},
expression
:
"itemValue.backendOriginType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"header"
,
value
:
"header"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"query"
,
value
:
"query"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"body"
,
value
:
"body"
}})],
1
)],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
,
r
,
o
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])]):
e
.
_e
()]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加常量参数"
)])])])},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数名"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数类型"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数值"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"操作"
)])])}]};
var
N
=
a
(
"VU/8"
)(
P
,
V
,
!
1
,
function
(
e
){
a
(
"Jd8v"
)},
"data-v-6dfcd46a"
,
null
).
exports
,
E
=
{
name
:
"create-backend"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
backTableLeft
:
q
,
backConstant
:
N
,
backTableRight
:
J
},
data
:
function
(){
var
e
=
this
;
return
{
apiInfoData
:{
interfaceType
:
"0"
,
version
:
""
,
backendRequestType
:
"GET"
,
backendHttpPath
:
""
,
dubboInterface
:
""
,
dubboMethod
:
""
,
dubboVersion
:
""
,
proxyCode
:
""
,
timeout
:
2
e4
},
backHeaderData
:{},
backQueryData
:{},
backBodyJsonData
:{},
backBodyFormData
:{},
rules
:{
version
:[{
required
:
!
0
,
message
:
"请输入API版本号"
,
trigger
:
"blur"
}],
backendRequestType
:[{
required
:
!
0
,
message
:
"请选择请求类型"
,
trigger
:
"blur"
}],
backendHttpPath
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"0"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入请求路径"
)):
r
()},
trigger
:
"blur"
}],
timeout
:[{
required
:
!
0
,
message
:
"请输入超时时长"
,
trigger
:
"blur"
}],
dubboInterface
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入dubbo接口名称"
)):
r
()},
trigger
:
"blur"
}],
dubboMethod
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入dubbo请求方法"
)):
r
()},
trigger
:
"blur"
}],
dubboVersion
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入请求版本号"
)):
r
()},
trigger
:
"blur"
}],
proxyCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请选择注册中心地址"
)):
r
()},
trigger
:
"blur"
}]},
envSetOptions
:[],
constData
:{
type
:
"object"
,
level
:
1
,
properties
:{}}}},
methods
:{
changeType
:
function
(
e
){
var
t
=
this
;
t
.
copyObj
=
JSON
.
parse
(
c
()(
t
.
apiInfoData
)),
t
.
getEnvSetData
(),
t
.
$nextTick
(
function
(){
t
.
$refs
.
backForm
.
resetFields
(),
t
.
apiInfoData
=
{
interfaceType
:
e
,
version
:
t
.
copyObj
.
version
,
backendRequestType
:
t
.
copyObj
.
backendRequestType
,
backendHttpPath
:
t
.
copyObj
.
backendHttpPath
,
dubboInterface
:
t
.
copyObj
.
dubboInterface
,
dubboMethod
:
t
.
copyObj
.
dubboMethod
,
dubboVersion
:
t
.
copyObj
.
dubboVersion
,
proxyCode
:
t
.
copyObj
.
proxyCode
,
timeout
:
t
.
copyObj
.
timeout
}})},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handlebackData
()})},
handlebackData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
n
,
l
,
c
,
p
,
u
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
r
=
[].
concat
(
k
()(
s
()(
a
.
constData
.
properties
))),
t
.
next
=
4
,
Object
(
O
.
b
)(
r
);
case
4
:
if
(
!
t
.
sent
){
t
.
next
=
8
;
break
}
return
y
.
a
.
showmsg
(
"参数名重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
8
:
if
(
o
=!
0
,
1
!=
a
.
apiInfoData
.
interfaceType
||!
s
()(
a
.
backHeaderData
).
length
||!
s
()(
a
.
backHeaderData
.
properties
).
length
){
t
.
next
=
18
;
break
}
t
.
t0
=
i
.
a
.
keys
(
a
.
backHeaderData
.
properties
);
case
11
:
if
((
t
.
t1
=
t
.
t0
()).
done
){
t
.
next
=
18
;
break
}
if
(
n
=
t
.
t1
.
value
,
!
a
.
backHeaderData
.
properties
[
n
].
isRootKey
||
a
.
backHeaderData
.
properties
[
n
].
objectClass
){
t
.
next
=
16
;
break
}
return
o
=!
1
,
t
.
abrupt
(
"break"
,
18
);
case
16
:
t
.
next
=
11
;
break
;
case
18
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
s
()(
a
.
backQueryData
).
length
||!
s
()(
a
.
backQueryData
.
properties
).
length
){
t
.
next
=
27
;
break
}
t
.
t2
=
i
.
a
.
keys
(
a
.
backQueryData
.
properties
);
case
20
:
if
((
t
.
t3
=
t
.
t2
()).
done
){
t
.
next
=
27
;
break
}
if
(
l
=
t
.
t3
.
value
,
!
a
.
backQueryData
.
properties
[
l
].
isRootKey
||
a
.
backQueryData
.
properties
[
l
].
objectClass
){
t
.
next
=
25
;
break
}
return
o
=!
1
,
t
.
abrupt
(
"break"
,
27
);
case
25
:
t
.
next
=
20
;
break
;
case
27
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
s
()(
a
.
backBodyFormData
).
length
||!
s
()(
a
.
backBodyFormData
.
properties
).
length
){
t
.
next
=
36
;
break
}
t
.
t4
=
i
.
a
.
keys
(
a
.
backBodyFormData
.
properties
);
case
29
:
if
((
t
.
t5
=
t
.
t4
()).
done
){
t
.
next
=
36
;
break
}
if
(
c
=
t
.
t5
.
value
,
!
a
.
backBodyFormData
.
properties
[
c
].
isRootKey
||
a
.
backBodyFormData
.
properties
[
c
].
objectClass
){
t
.
next
=
34
;
break
}
return
o
=!
1
,
t
.
abrupt
(
"break"
,
36
);
case
34
:
t
.
next
=
29
;
break
;
case
36
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
s
()(
a
.
backBodyJsonData
).
length
||!
s
()(
a
.
backBodyJsonData
.
properties
).
length
){
t
.
next
=
54
;
break
}
t
.
t6
=
i
.
a
.
keys
(
a
.
backBodyJsonData
.
properties
);
case
38
:
if
((
t
.
t7
=
t
.
t6
()).
done
){
t
.
next
=
54
;
break
}
if
(
p
=
t
.
t7
.
value
,
!
a
.
backBodyJsonData
.
properties
[
p
].
isRootKey
||
a
.
backBodyJsonData
.
properties
[
p
].
objectClass
){
t
.
next
=
43
;
break
}
return
o
=!
1
,
t
.
abrupt
(
"break"
,
54
);
case
43
:
if
(
!
s
()(
a
.
backBodyJsonData
.
properties
[
p
].
properties
).
length
){
t
.
next
=
52
;
break
}
t
.
t8
=
i
.
a
.
keys
(
a
.
backBodyJsonData
.
properties
[
p
].
properties
);
case
45
:
if
((
t
.
t9
=
t
.
t8
()).
done
){
t
.
next
=
52
;
break
}
if
(
u
=
t
.
t9
.
value
,
!
a
.
backBodyJsonData
.
properties
[
p
].
properties
[
u
].
isRootKey
||
a
.
backBodyJsonData
.
properties
[
p
].
properties
[
u
].
objectClass
){
t
.
next
=
50
;
break
}
return
o
=!
1
,
t
.
abrupt
(
"break"
,
52
);
case
50
:
t
.
next
=
45
;
break
;
case
52
:
t
.
next
=
38
;
break
;
case
54
:
if
(
o
){
t
.
next
=
57
;
break
}
return
y
.
a
.
showmsg
(
"请完善参数"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
57
:
a
.
apiInfoData
.
backHeaderData
=
a
.
backHeaderData
,
a
.
apiInfoData
.
backQueryData
=
a
.
backQueryData
,
a
.
apiInfoData
.
backBodyJsonData
=
a
.
backBodyJsonData
,
a
.
apiInfoData
.
backBodyFormData
=
a
.
backBodyFormData
,
a
.
apiInfoData
.
constData
=
a
.
constData
,
a
.
$emit
(
"submitNext"
,
a
.
apiInfoData
),
a
.
$store
.
dispatch
(
"saveBackInfo"
,
a
.
apiInfoData
);
case
64
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
getEnvSetData
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
100
,
proxyType
:
e
.
apiInfoData
.
interfaceType
||
"http"
};
Object
(
b
.
b
)(
"/gateway-manage/page-proxy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
envSetOptions
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleFrontData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
n
,
l
,
p
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
a
=
e
,
r
=
JSON
.
parse
(
c
()(
a
.
$store
.
state
.
frontInfo
)),
console
.
log
(
"header 数据:"
,
r
),
s
()(
r
.
headerData
).
length
){
for
(
o
in
r
.
headerData
.
properties
)
r
.
headerData
.
properties
[
o
].
isRootKey
=
""
===
r
.
headerData
.
properties
[
o
].
isRootKey
||
r
.
headerData
.
properties
[
o
].
isRootKey
,
r
.
headerData
.
properties
[
o
].
rootKey
=
r
.
headerData
.
properties
[
o
].
rootKey
?
r
.
headerData
.
properties
[
o
].
rootKey
:
o
,
r
.
headerData
.
properties
[
o
].
backendOriginType
=
r
.
headerData
.
properties
[
o
].
backendOriginType
,
r
.
headerData
.
properties
[
o
].
isBackendField
=
1
;
a
.
backHeaderData
=
JSON
.
parse
(
c
()(
r
.
headerData
)),
a
.
frontHeaderData
=
JSON
.
parse
(
c
()(
r
.
headerData
))}
if
(
s
()(
r
.
queryData
).
length
){
for
(
n
in
r
.
queryData
.
properties
)
r
.
queryData
.
properties
[
n
].
isRootKey
=
""
===
r
.
queryData
.
properties
[
n
].
isRootKey
||
r
.
queryData
.
properties
[
n
].
isRootKey
,
r
.
queryData
.
properties
[
n
].
rootKey
=
r
.
queryData
.
properties
[
n
].
rootKey
?
r
.
queryData
.
properties
[
n
].
rootKey
:
n
,
r
.
queryData
.
properties
[
n
].
backendOriginType
=
r
.
queryData
.
properties
[
n
].
backendOriginType
,
r
.
queryData
.
properties
[
n
].
isBackendField
=
1
;
a
.
backQueryData
=
JSON
.
parse
(
c
()(
r
.
queryData
)),
a
.
frontQueryData
=
JSON
.
parse
(
c
()(
r
.
queryData
))}
if
(
s
()(
r
.
bodyFormData
).
length
){
for
(
l
in
r
.
bodyFormData
.
properties
)
r
.
bodyFormData
.
properties
[
l
].
isRootKey
=
""
===
r
.
bodyFormData
.
properties
[
l
].
isRootKey
||
r
.
bodyFormData
.
properties
[
l
].
isRootKey
,
r
.
bodyFormData
.
properties
[
l
].
rootKey
=
r
.
bodyFormData
.
properties
[
l
].
rootKey
?
r
.
bodyFormData
.
properties
[
l
].
rootKey
:
l
,
r
.
bodyFormData
.
properties
[
l
].
backendOriginType
=
r
.
bodyFormData
.
properties
[
l
].
backendOriginType
,
r
.
bodyFormData
.
properties
[
l
].
isBackendField
=
1
;
a
.
backBodyFormData
=
JSON
.
parse
(
c
()(
r
.
bodyFormData
)),
a
.
frontBodyFormData
=
JSON
.
parse
(
c
()(
r
.
bodyFormData
))}
if
(
!
s
()(
r
.
bodyJsonData
).
length
){
t
.
next
=
24
;
break
}
t
.
t0
=
i
.
a
.
keys
(
r
.
bodyJsonData
.
properties
);
case
8
:
if
((
t
.
t1
=
t
.
t0
()).
done
){
t
.
next
=
22
;
break
}
if
(
p
=
t
.
t1
.
value
,
r
.
bodyJsonData
.
properties
[
p
].
isRootKey
=
""
===
r
.
bodyJsonData
.
properties
[
p
].
isRootKey
||
r
.
bodyJsonData
.
properties
[
p
].
isRootKey
,
r
.
bodyJsonData
.
properties
[
p
].
rootKey
=
r
.
bodyJsonData
.
properties
[
p
].
rootKey
?
r
.
bodyJsonData
.
properties
[
p
].
rootKey
:
p
,
r
.
bodyJsonData
.
properties
[
p
].
backendOriginType
=
r
.
bodyJsonData
.
properties
[
p
].
backendOriginType
,
r
.
bodyJsonData
.
properties
[
p
].
isBackendField
=
1
,
"array"
!=
r
.
bodyJsonData
.
properties
[
p
].
type
||!
s
()(
r
.
bodyJsonData
.
properties
[
p
].
items
.
properties
).
length
){
t
.
next
=
17
;
break
}
return
t
.
next
=
17
,
a
.
handleArrObjData
(
r
.
bodyJsonData
.
properties
[
p
].
items
.
properties
);
case
17
:
if
(
"object"
!=
r
.
bodyJsonData
.
properties
[
p
].
type
||!
s
()(
r
.
bodyJsonData
.
properties
[
p
].
properties
).
length
){
t
.
next
=
20
;
break
}
return
t
.
next
=
20
,
a
.
handleArrObjData
(
r
.
bodyJsonData
.
properties
[
p
].
properties
);
case
20
:
t
.
next
=
8
;
break
;
case
22
:
a
.
backBodyJsonData
=
JSON
.
parse
(
c
()(
r
.
bodyJsonData
)),
a
.
frontBodyJsonData
=
JSON
.
parse
(
c
()(
r
.
bodyJsonData
));
case
24
:
a
.
$forceUpdate
();
case
25
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleArrObjData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
o
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
r
=
t
,
a
.
t0
=
i
.
a
.
keys
(
e
);
case
2
:
if
((
a
.
t1
=
a
.
t0
()).
done
){
a
.
next
=
18
;
break
}
if
(
o
=
a
.
t1
.
value
,
e
[
o
].
isRootKey
=
""
===
e
[
o
].
isRootKey
||
e
[
o
].
isRootKey
,
e
[
o
].
isRootKeyFlag
=!
0
,
e
[
o
].
rootKey
=
e
[
o
].
rootKey
?
e
[
o
].
rootKey
:
o
,
e
[
o
].
isBackendField
=
1
,
"array"
!=
e
[
o
].
type
||!
s
()(
e
[
o
].
items
.
properties
).
length
){
a
.
next
=
12
;
break
}
return
e
[
o
].
isRootKeyFlag
=!
0
,
a
.
next
=
12
,
r
.
handleArrObjData
(
e
[
o
].
items
.
properties
);
case
12
:
if
(
"object"
!=
e
[
o
].
type
||!
s
()(
e
[
o
].
properties
).
length
){
a
.
next
=
16
;
break
}
return
e
[
o
].
isRootKeyFlag
=!
0
,
a
.
next
=
16
,
r
.
handleArrObjData
(
e
[
o
].
properties
);
case
16
:
a
.
next
=
2
;
break
;
case
18
:
return
a
.
abrupt
(
"return"
,
e
);
case
19
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
backInfo
)),
this
.
constData
=
this
.
apiInfoData
.
constData
}},
mounted
:
function
(){
this
.
getEnvSetData
(),
this
.
handleFrontData
(),
s
()(
this
.
$store
.
state
.
backInfo
).
length
&&
this
.
handleStoreData
()}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"back-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"backForm"
,
attrs
:{
"label-width"
:
"129px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"后端服务:"
,
prop
:
"interfaceType"
}},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeType
},
model
:{
value
:
e
.
apiInfoData
.
interfaceType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceType"
,
t
)},
expression
:
"apiInfoData.interfaceType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"http"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"dubbo"
)])],
1
)],
1
),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求类型:"
,
prop
:
"backendRequestType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
backendRequestType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"backendRequestType"
,
t
)},
expression
:
"apiInfoData.backendRequestType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"GET"
,
value
:
"GET"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"POST"
,
value
:
"POST"
}})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API版本号"
,
prop
:
"version"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
version
,
holder
:
"请输入API版本号"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"version"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo接口名称:"
,
prop
:
"dubboInterface"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboInterface
,
holder
:
"请输入dubbo接口名称"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboInterface"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo请求方法:"
,
prop
:
"dubboMethod"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboMethod
,
holder
:
"请输入dubbo请求方法"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboMethod"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
,
prop
:
"backendHttpPath"
}},[
a
(
"el-input"
,{
staticClass
:
"w-329"
,
model
:{
value
:
e
.
apiInfoData
.
backendHttpPath
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"backendHttpPath"
,
t
)},
expression
:
"apiInfoData.backendHttpPath"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
apiInfoData
.
interfaceType
?
"注册中心地址:"
:
"配置code"
,
prop
:
"proxyCode"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
proxyCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"proxyCode"
,
t
)},
expression
:
"apiInfoData.proxyCode"
}},
e
.
_l
(
e
.
envSetOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
proxyCode
,
attrs
:{
label
:
e
.
proxyName
,
value
:
e
.
proxyCode
}})}))],
1
),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求版本号"
,
prop
:
"dubboVersion"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboVersion
,
holder
:
"请输入请求版本号"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboVersion"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"超时时长:"
,
prop
:
"timeout"
}},[
a
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
1
e9
},
model
:{
value
:
e
.
apiInfoData
.
timeout
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"timeout"
,
t
)},
expression
:
"apiInfoData.timeout"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"color-303133 font-w-700"
,
attrs
:{
label
:
"参数配置"
}},[
a
(
"div"
,{
staticClass
:
"back-data-wrap font-0"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"30%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
})]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none back-table-left"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
backHeaderData
.
properties
&&
Object
.
keys
(
e
.
backHeaderData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontHeaderData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backQueryData
.
properties
&&
Object
.
keys
(
e
.
backQueryData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontQueryData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyJsonData
.
properties
&&
Object
.
keys
(
e
.
backBodyJsonData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontBodyJsonData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyFormData
.
properties
&&
Object
.
keys
(
e
.
backBodyFormData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontBodyFormData
}}):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"70%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
})]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"是否后端参数"
)])]),
e
.
_v
(
" "
),
"0"
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名映射"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数值"
)])]),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"包路径"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"排序"
)])]):
e
.
_e
()])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
backHeaderData
.
properties
&&
Object
.
keys
(
e
.
backHeaderData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backHeaderData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backQueryData
.
properties
&&
Object
.
keys
(
e
.
backQueryData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backQueryData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyJsonData
.
properties
&&
Object
.
keys
(
e
.
backBodyJsonData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backBodyJsonData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyFormData
.
properties
&&
Object
.
keys
(
e
.
backBodyFormData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backBodyFormData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
()],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"constant-wrap"
},[
a
(
"back-constant"
,{
attrs
:{
itemData
:
e
.
constData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"backForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
A
=
a
(
"VU/8"
)(
E
,
L
,
!
1
,
function
(
e
){
a
(
"2kyg"
)},
"data-v-4e9e0d68"
,
null
).
exports
,
Q
=
a
(
"woOf"
),
H
=
a
.
n
(
Q
),
U
=
{
name
:
"body-row"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
updateKey
:
function
(
e
){
for
(
var
t
in
e
)
t
!=
e
[
t
].
currentKey
&&
(
e
[
t
].
pkey
=
e
[
e
[
t
].
currentKey
]
=
e
[
t
],
this
.
$delete
(
e
,
t
)),
e
[
t
]
&&
"object"
==
e
[
t
].
type
&&
s
()(
e
[
t
].
properties
).
length
&&
this
.
updateKey
(
e
[
t
].
properties
),
e
[
t
]
&&
"array"
==
e
[
t
].
type
&&
s
()(
e
[
t
].
items
.
properties
).
length
&&
this
.
updateKey
(
e
[
t
].
items
.
properties
)},
handleDel
:
function
(
e
,
t
,
a
,
r
){
var
o
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
o
,
a
.
next
=
3
,
r
.
updateKey
(
r
.
itemData
.
properties
);
case
3
:
if
(
e
){
a
.
next
=
6
;
break
}
return
r
.
$delete
(
r
.
itemData
.
properties
,
t
),
a
.
abrupt
(
"return"
,
!
1
);
case
6
:
r
.
handleDelData
(
r
.
itemData
,
e
,
t
);
case
7
:
case
"end"
:
return
a
.
stop
()}},
a
,
o
)}))()},
handleDelData
:
function
(
e
,
t
,
a
){
this
.
handleObjData
(
e
,
t
,
a
)},
handleObjData
:
function
(
e
,
t
,
a
){
for
(
var
r
in
e
)
e
[
r
]
==
t
&&
this
.
$delete
(
e
.
properties
,
a
)},
changeType
:
function
(
e
,
t
,
a
,
r
){
"string"
!=
e
&&
"boolean"
!=
e
&&
"number"
!=
e
&&
"object"
!=
e
||
(
t
.
properties
=
{},
t
.
hasOwnProperty
(
"items"
)
&&
this
.
$delete
(
t
,
"items"
)),
"array"
==
e
&&
this
.
$set
(
t
,
"items"
,{
parentKey
:
a
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
()},
handleAdd
:
function
(
e
,
t
,
a
,
r
){
var
o
=
this
.
keyLength
++
;
if
(
"array"
==
e
.
type
)
return
this
.
$set
(
e
.
items
.
properties
,
"field"
+
o
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
currentKey
:
"field"
+
o
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
(),
!
1
;
this
.
$set
(
e
.
properties
,
"field"
+
o
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
currentKey
:
"field"
+
o
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
()}},
watch
:{
itemData
:
function
(
e
,
t
){
e
&&
(
this
.
trData
=
JSON
.
parse
(
c
()(
e
)))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
M
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
o
){
return
[
a
(
"table"
,{
key
:
o
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
disabled
:
"array"
==
t
.
type
||
"object"
==
t
.
type
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
on
:{
change
:
function
(
a
){
e
.
changeType
(
t
.
type
,
t
,
t
.
currentKey
,
t
.
level
)}},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"object"
,
value
:
"object"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"array"
,
value
:
"array"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
"array"
==
t
.
type
||
"object"
==
t
.
type
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleAdd
(
t
,
t
.
currentKey
,
o
,
t
.
level
)}}},[
e
.
_v
(
"添加子属性"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
parentKey
,
t
.
currentKey
,
o
,
t
.
level
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"body-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"body-row"
,{
key
:
o
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
G
=
a
(
"VU/8"
)(
U
,
M
,
!
1
,
function
(
e
){
a
(
"1kTN"
)},
"data-v-0344bb74"
,
null
).
exports
,
z
=
{
name
:
"create-front"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
headerParam
:
x
,
resultTable
:
G
},
data
:
function
(){
return
{
apiInfoData
:{
resultParams
:{},
sucReturn
:
""
,
errReturn
:
""
,
errCode
:[],
sceneCode
:
""
},
errOptions
:[],
resultParams
:{
type
:
"object"
,
level
:
1
,
properties
:{
root
:{
level
:
2
,
currentKey
:
"root"
,
type
:
"object"
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}}},
rules
:{
sucReturn
:[{
required
:
!
0
,
message
:
"请输入成功返回示例"
,
trigger
:
"blur"
}],
errReturn
:[{
required
:
!
0
,
message
:
"请输入失败返回示例"
,
trigger
:
"blur"
}]},
keyLength
:
1
}},
methods
:{
remoteMethod
:
function
(
e
){
""
!==
e
?
this
.
getErrcodeData
(
e
):
this
.
errOptions
=
[]},
changeErr
:
function
(
e
,
t
,
a
){
e
&&
this
.
errOptions
.
forEach
(
function
(
t
){
e
==
t
.
errorCode
&&
(
a
.
error_info
=
t
.
errorInfo
)})},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
resultParams
.
properties
,
"field"
+
e
,{
level
:
2
,
parentKey
:
""
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
defaultVal
:
""
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}})},
delErrorCode
:
function
(
e
){
this
.
apiInfoData
.
errCode
.
splice
(
e
,
1
)},
addErrCodeItem
:
function
(){
this
.
apiInfoData
.
errCode
.
push
({
error_code
:
""
,
error_info
:
""
,
orig_error_code
:
""
})},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
Object
(
O
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handleFrontBackData
()})},
500
),
handleFrontData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
n
,
l
,
p
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
((
a
=
e
).
apiInfoData
.
errCode
.
length
){
t
.
next
=
4
;
break
}
return
y
.
a
.
showmsg
(
"请完善错误码"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
return
r
=
[].
concat
(
k
()(
a
.
apiInfoData
.
errCode
.
map
(
function
(
e
){
return
e
.
error_code
}))),
t
.
next
=
7
,
Object
(
O
.
b
)(
r
);
case
7
:
if
(
!
t
.
sent
){
t
.
next
=
11
;
break
}
return
y
.
a
.
showmsg
(
"原始错误码重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
11
:
if
(
o
=
{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
n
=
JSON
.
parse
(
c
()(
a
.
$store
.
state
.
frontInfo
)),
o
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
),
"POST"
==
n
.
requestType
&&
"json"
==
n
.
frontBodyType
){
if
(
s
()(
n
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
).
length
)
for
(
l
in
n
.
bodyJsonData
.
properties
.
bodyRoot
.
required
=
[],
n
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
)
n
.
bodyJsonData
.
properties
.
bodyRoot
.
properties
[
l
].
check
&&
n
.
bodyJsonData
.
properties
.
bodyRoot
.
required
.
push
(
l
);
o
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
,
n
.
bodyJsonData
.
properties
)}
if
(
"POST"
==
n
.
requestType
&&
"form"
==
n
.
frontBodyType
&&
(
o
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
,
n
.
bodyFormData
.
properties
)),
s
()(
o
.
properties
).
length
)
for
(
p
in
o
.
required
=
[],
o
.
properties
)
o
.
properties
[
p
].
check
&&
o
.
required
.
push
(
p
);
return
t
.
abrupt
(
"return"
,
o
);
case
18
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleBackData
:
function
(){
var
e
=
{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
t
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
backInfo
)),
a
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
frontInfo
));
if
(
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
constData
.
properties
),
"POST"
==
a
.
requestType
&&
"json"
==
a
.
frontBodyType
){
if
(
s
()(
t
.
backBodyJsonData
.
properties
.
bodyRoot
.
properties
).
length
)
for
(
var
r
in
t
.
backBodyJsonData
.
properties
.
bodyRoot
.
required
=
[],
t
.
backBodyJsonData
.
properties
.
bodyRoot
.
properties
)
t
.
backBodyJsonData
.
properties
.
bodyRoot
.
properties
[
r
].
check
&&
t
.
backBodyJsonData
.
properties
.
bodyRoot
.
required
.
push
(
r
);
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
backBodyJsonData
.
properties
,
t
.
constData
.
properties
)}
if
(
"POST"
==
a
.
requestType
&&
"form"
==
a
.
frontBodyType
&&
(
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
backBodyFormData
.
properties
,
t
.
constData
.
properties
)),
s
()(
e
.
properties
).
length
)
for
(
var
o
in
e
.
required
=
[],
e
.
properties
)
e
.
properties
[
o
].
check
&&
e
.
required
.
push
(
o
);
return
e
},
handleFrontBackData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
t
.
next
=
3
,
a
.
handleFrontData
();
case
3
:
if
(
r
=
t
.
sent
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
t
.
next
=
8
,
a
.
handleBackData
();
case
8
:
return
o
=
t
.
sent
,
t
.
next
=
11
,
a
.
toPostApi
(
r
,
o
);
case
11
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
toPostApi
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
interfaceName
:
a
.
$store
.
state
.
baseInfo
.
interfaceName
,
interfaceGroupId
:
a
.
$route
.
query
.
interfaceGroupId
,
interfaceUrl
:
a
.
$store
.
state
.
baseInfo
.
interfaceUrl
,
interfaceDescribe
:
a
.
$store
.
state
.
baseInfo
.
interfaceDescribe
,
projectId
:
a
.
$route
.
query
.
projectId
,
target
:
a
.
$store
.
state
.
baseInfo
.
target
,
optType
:
a
.
$store
.
state
.
baseInfo
.
optType
,
protocol
:
a
.
$store
.
state
.
frontInfo
.
protocol
,
requestType
:
a
.
$store
.
state
.
frontInfo
.
requestType
,
frontBodyType
:
a
.
$store
.
state
.
frontInfo
.
frontBodyType
,
frontParams
:
c
()(
e
),
interfaceType
:
a
.
$store
.
state
.
backInfo
.
interfaceType
,
version
:
a
.
$store
.
state
.
backInfo
.
version
,
backendRequestType
:
a
.
$store
.
state
.
backInfo
.
backendRequestType
,
backendHttpPath
:
a
.
$store
.
state
.
backInfo
.
backendHttpPath
,
dubboInterface
:
a
.
$store
.
state
.
backInfo
.
dubboInterface
,
dubboMethod
:
a
.
$store
.
state
.
backInfo
.
dubboMethod
,
dubboVersion
:
a
.
$store
.
state
.
backInfo
.
dubboVersion
,
proxyCode
:
a
.
$store
.
state
.
backInfo
.
proxyCode
,
timeout
:
a
.
$store
.
state
.
backInfo
.
timeout
,
endParams
:
c
()(
t
),
resultParams
:
c
()(
a
.
resultParams
),
sucReturn
:
a
.
apiInfoData
.
sucReturn
,
errReturn
:
a
.
apiInfoData
.
errReturn
,
errCode
:
c
()(
a
.
apiInfoData
.
errCode
),
sceneCode
:
a
.
apiInfoData
.
sceneCode
,
interfaceId
:
a
.
$store
.
state
.
baseInfo
.
interfaceId
,
interfaceVersionId
:
a
.
$store
.
state
.
baseInfo
.
interfaceVersionId
};
Object
(
b
.
b
)(
a
.
$store
.
state
.
baseInfo
.
interfaceId
?
"/gateway-manage/update-api"
:
"/gateway-manage/create-api"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
y
.
a
.
showmsg
(
"保存成功"
,
"success"
),
a
.
$store
.
dispatch
(
"clearApiData"
),
void
a
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
result
.
interfaceId
+
"&interfaceName="
+
t
.
result
.
interfaceName
);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getErrcodeData
:
function
(
e
){
var
t
=
this
,
a
=
{
pageNum
:
1
,
pageSize
:
100
,
search
:
e
};
Object
(
b
.
b
)(
"/gateway-manage/page-error-setting"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
"0000"
!=
a
.
code
?
h
.
a
.
errorMsg
(
a
):
t
.
errOptions
=
a
.
result
.
result
||
[]}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
resultInfo
)),
this
.
resultParams
=
this
.
apiInfoData
.
resultParams
}},
mounted
:
function
(){
this
.
getErrcodeData
(),
this
.
$route
.
query
.
interfaceId
&&
this
.
handleStoreData
()}},
W
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"result-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"resultForm"
,
attrs
:{
"label-width"
:
"114px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"返回类型:"
}},[
e
.
_v
(
"json"
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"返回参数:"
}},[
a
(
"div"
,{
staticClass
:
"body-param-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"result-table"
,{
ref
:
"resultBodyTable"
,
attrs
:{
itemData
:
e
.
resultParams
},
on
:{
refreshData
:
e
.
refreshData
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加行"
)])])],
1
)])])])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误码映射:"
,
prop
:
"errCode"
}},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
apiInfoData
.
errCode
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"原始错误码"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入原始错误码"
},
model
:{
value
:
t
.
row
.
orig_error_code
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"orig_error_code"
,
a
)},
expression
:
"scope.row.orig_error_code"
}})],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误码映射"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择映射错误码"
},
on
:{
change
:
function
(
a
){
e
.
changeErr
(
a
,
t
.
$index
,
t
.
row
)}},
model
:{
value
:
t
.
row
.
error_code
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"error_code"
,
a
)},
expression
:
"scope.row.error_code"
}},
e
.
_l
(
e
.
errOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
errorCode
,
attrs
:{
label
:
e
.
errorCode
,
value
:
e
.
errorCode
}})}))],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误信息"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入错误信息"
},
model
:{
value
:
t
.
row
.
error_info
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"error_info"
,
a
)},
expression
:
"scope.row.error_info"
}})],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
delErrorCode
(
t
.
$index
)}}},[
e
.
_v
(
"删除"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line add-err-line text-center"
,
on
:{
click
:
e
.
addErrCodeItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加错误码配置"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"成功返回示例:"
,
prop
:
"sucReturn"
}},[
a
(
"el-input"
,{
staticClass
:
"w-389"
,
attrs
:{
type
:
"textarea"
,
rows
:
3
,
placeholder
:
"请输入内容"
},
model
:{
value
:
e
.
apiInfoData
.
sucReturn
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"sucReturn"
,
t
)},
expression
:
"apiInfoData.sucReturn"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"失败返回示例:"
,
prop
:
"errReturn"
}},[
a
(
"el-input"
,{
staticClass
:
"w-389"
,
attrs
:{
type
:
"textarea"
,
rows
:
3
,
placeholder
:
"请输入内容"
},
model
:{
value
:
e
.
apiInfoData
.
errReturn
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"errReturn"
,
t
)},
expression
:
"apiInfoData.errReturn"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"resultForm"
)}}},[
e
.
_v
(
"完 成"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
Y
=
a
(
"VU/8"
)(
z
,
W
,
!
1
,
function
(
e
){
a
(
"PCiy"
)},
"data-v-3925e85d"
,
null
).
exports
,
X
=
{
name
:
"createApi"
,
components
:{
navBread
:
r
.
a
,
createBase
:
_
,
createFront
:
K
,
createBackend
:
A
,
createResult
:
Y
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
this
.
$route
.
query
.
interfaceId
?
"编辑API"
:
"创建API"
,
path
:
""
}],
activeStep
:
1
,
stepData
:[{
stepName
:
"基础信息"
},{
stepName
:
"前端配置"
},{
stepName
:
"后端配置"
},{
stepName
:
"定义返回"
}],
projectId
:
this
.
$route
.
query
.
projectId
,
interfaceGroupId
:
this
.
$route
.
query
.
interfaceGroupId
}},
methods
:{
submitNext
:
function
(){
this
.
activeStep
++
},
submitBack
:
function
(){
this
.
activeStep
--
}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)},
beforeDestroy
:
function
(){
this
.
$store
.
dispatch
(
"clearApiData"
)}},
Z
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
,
staticStyle
:{
height
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"create-api-body"
},[
a
(
"div"
,{
staticClass
:
"create-api-step font-0"
},
e
.
_l
(
e
.
stepData
,
function
(
t
,
r
){
return
a
(
"div"
,{
key
:
r
+
t
.
stepName
,
class
:[
"api-step-cell inline-block border-box"
,
r
+
1
==
e
.
activeStep
?
"active-step"
:
""
],
style
:{
width
:
100
/
e
.
stepData
.
length
+
"%"
,
"max-width"
:
100
/
e
.
stepData
.
length
+
"%"
}},[
a
(
"div"
,{
staticClass
:
"api-step-cell_inner border-box"
},[
r
<
e
.
stepData
.
length
-
1
?
a
(
"div"
,{
staticClass
:
"api-step-cell_line"
}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-step-cell_title"
},[
a
(
"div"
,{
staticClass
:
"el-step__icon is-text inline-block"
},[
a
(
"div"
,{
staticClass
:
"el-step__icon-inner font-14"
},[
e
.
_v
(
e
.
_s
(
r
+
1
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-step-cell_txt p-lr-10 bg-fff inline-block font-16"
},[
e
.
_v
(
e
.
_s
(
t
.
stepName
))])])])])})),
e
.
_v
(
" "
),
"1"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-base"
},[
a
(
"create-base"
,{
on
:{
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"2"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-front"
},[
a
(
"create-front"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"3"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-back"
},[
a
(
"create-backend"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"4"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-result"
},[
a
(
"create-result"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
()])])])])},
staticRenderFns
:[]};
var
ee
=
a
(
"VU/8"
)(
X
,
Z
,
!
1
,
function
(
e
){
a
(
"jQHk"
)},
"data-v-3c0886b8"
,
null
);
t
.
default
=
ee
.
exports
},
aLMg
:
function
(
e
,
t
){},
"c/Tr"
:
function
(
e
,
t
,
a
){
e
.
exports
=
{
default
:
a
(
"5zde"
),
__esModule
:
!
0
}},
exGp
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
r
,
o
=
a
(
"//Fk"
),
s
=
(
r
=
o
)
&&
r
.
__esModule
?
r
:{
default
:
r
};
t
.
default
=
function
(
e
){
return
function
(){
var
t
=
e
.
apply
(
this
,
arguments
);
return
new
s
.
default
(
function
(
e
,
a
){
return
function
r
(
o
,
n
){
try
{
var
i
=
t
[
o
](
n
),
l
=
i
.
value
}
catch
(
e
){
return
void
a
(
e
)}
if
(
!
i
.
done
)
return
s
.
default
.
resolve
(
l
).
then
(
function
(
e
){
r
(
"next"
,
e
)},
function
(
e
){
r
(
"throw"
,
e
)});
e
(
l
)}(
"next"
)})}}},
fBQ2
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"evD5"
),
o
=
a
(
"X8DO"
);
e
.
exports
=
function
(
e
,
t
,
a
){
t
in
e
?
r
.
f
(
e
,
t
,
o
(
0
,
a
)):
e
[
t
]
=
a
}},
jQHk
:
function
(
e
,
t
){},
jyFz
:
function
(
e
,
t
,
a
){
var
r
=
function
(){
return
this
}()
||
Function
(
"return this"
)(),
o
=
r
.
regeneratorRuntime
&&
Object
.
getOwnPropertyNames
(
r
).
indexOf
(
"regeneratorRuntime"
)
>=
0
,
s
=
o
&&
r
.
regeneratorRuntime
;
if
(
r
.
regeneratorRuntime
=
void
0
,
e
.
exports
=
a
(
"SldL"
),
o
)
r
.
regeneratorRuntime
=
s
;
else
try
{
delete
r
.
regeneratorRuntime
}
catch
(
e
){
r
.
regeneratorRuntime
=
void
0
}},
kVOZ
:
function
(
e
,
t
){},
qyJz
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"+ZMJ"
),
o
=
a
(
"kM2E"
),
s
=
a
(
"sB3e"
),
n
=
a
(
"msXi"
),
i
=
a
(
"Mhyx"
),
l
=
a
(
"QRG4"
),
c
=
a
(
"fBQ2"
),
p
=
a
(
"3fs2"
);
o
(
o
.
S
+
o
.
F
*!
a
(
"dY0y"
)(
function
(
e
){
Array
.
from
(
e
)}),
"Array"
,{
from
:
function
(
e
){
var
t
,
a
,
o
,
u
,
d
=
s
(
e
),
f
=
"function"
==
typeof
this
?
this
:
Array
,
b
=
arguments
.
length
,
y
=
b
>
1
?
arguments
[
1
]:
void
0
,
h
=
void
0
!==
y
,
m
=
0
,
v
=
p
(
d
);
if
(
h
&&
(
y
=
r
(
y
,
b
>
2
?
arguments
[
2
]:
void
0
,
2
)),
void
0
==
v
||
f
==
Array
&&
i
(
v
))
for
(
a
=
new
f
(
t
=
l
(
d
.
length
));
t
>
m
;
m
++
)
c
(
a
,
m
,
h
?
y
(
d
[
m
],
m
):
d
[
m
]);
else
for
(
u
=
v
.
call
(
d
),
a
=
new
f
;
!
(
o
=
u
.
next
()).
done
;
m
++
)
c
(
a
,
m
,
h
?
n
(
u
,
y
,[
o
.
value
,
m
],
!
0
):
o
.
value
);
return
a
.
length
=
m
,
a
}})},
urdk
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/2.3fb6634d557a9813d379.js
deleted
100644 → 0
View file @
8a44edfe
webpackJsonp
([
2
],{
"1kTN"
:
function
(
e
,
t
){},
"45te"
:
function
(
e
,
t
){},
"5zde"
:
function
(
e
,
t
,
a
){
a
(
"zQR9"
),
a
(
"qyJz"
),
e
.
exports
=
a
(
"FeBl"
).
Array
.
from
},
"9Yxt"
:
function
(
e
,
t
){},
Gu7T
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
r
,
s
=
a
(
"c/Tr"
),
o
=
(
r
=
s
)
&&
r
.
__esModule
?
r
:{
default
:
r
};
t
.
default
=
function
(
e
){
if
(
Array
.
isArray
(
e
)){
for
(
var
t
=
0
,
a
=
Array
(
e
.
length
);
t
<
e
.
length
;
t
++
)
a
[
t
]
=
e
[
t
];
return
a
}
return
(
0
,
o
.
default
)(
e
)}},
KiTl
:
function
(
e
,
t
){},
POU2
:
function
(
e
,
t
){},
SldL
:
function
(
e
,
t
){
!
function
(
t
){
"use strict"
;
var
a
,
r
=
Object
.
prototype
,
s
=
r
.
hasOwnProperty
,
o
=
"function"
==
typeof
Symbol
?
Symbol
:{},
n
=
o
.
iterator
||
"@@iterator"
,
i
=
o
.
asyncIterator
||
"@@asyncIterator"
,
l
=
o
.
toStringTag
||
"@@toStringTag"
,
c
=
"object"
==
typeof
e
,
p
=
t
.
regeneratorRuntime
;
if
(
p
)
c
&&
(
e
.
exports
=
p
);
else
{(
p
=
t
.
regeneratorRuntime
=
c
?
e
.
exports
:{}).
wrap
=
D
;
var
u
=
"suspendedStart"
,
d
=
"suspendedYield"
,
f
=
"executing"
,
b
=
"completed"
,
y
=
{},
h
=
{};
h
[
n
]
=
function
(){
return
this
};
var
m
=
Object
.
getPrototypeOf
,
v
=
m
&&
m
(
m
(
F
([])));
v
&&
v
!==
r
&&
s
.
call
(
v
,
n
)
&&
(
h
=
v
);
var
_
=
x
.
prototype
=
g
.
prototype
=
Object
.
create
(
h
);
C
.
prototype
=
_
.
constructor
=
x
,
x
.
constructor
=
C
,
x
[
l
]
=
C
.
displayName
=
"GeneratorFunction"
,
p
.
isGeneratorFunction
=
function
(
e
){
var
t
=
"function"
==
typeof
e
&&
e
.
constructor
;
return
!!
t
&&
(
t
===
C
||
"GeneratorFunction"
===
(
t
.
displayName
||
t
.
name
))},
p
.
mark
=
function
(
e
){
return
Object
.
setPrototypeOf
?
Object
.
setPrototypeOf
(
e
,
x
):(
e
.
__proto__
=
x
,
l
in
e
||
(
e
[
l
]
=
"GeneratorFunction"
)),
e
.
prototype
=
Object
.
create
(
_
),
e
},
p
.
awrap
=
function
(
e
){
return
{
__await
:
e
}},
w
(
I
.
prototype
),
I
.
prototype
[
i
]
=
function
(){
return
this
},
p
.
AsyncIterator
=
I
,
p
.
async
=
function
(
e
,
t
,
a
,
r
){
var
s
=
new
I
(
D
(
e
,
t
,
a
,
r
));
return
p
.
isGeneratorFunction
(
t
)?
s
:
s
.
next
().
then
(
function
(
e
){
return
e
.
done
?
e
.
value
:
s
.
next
()})},
w
(
_
),
_
[
l
]
=
"Generator"
,
_
[
n
]
=
function
(){
return
this
},
_
.
toString
=
function
(){
return
"[object Generator]"
},
p
.
keys
=
function
(
e
){
var
t
=
[];
for
(
var
a
in
e
)
t
.
push
(
a
);
return
t
.
reverse
(),
function
a
(){
for
(;
t
.
length
;){
var
r
=
t
.
pop
();
if
(
r
in
e
)
return
a
.
value
=
r
,
a
.
done
=!
1
,
a
}
return
a
.
done
=!
0
,
a
}},
p
.
values
=
F
,
j
.
prototype
=
{
constructor
:
j
,
reset
:
function
(
e
){
if
(
this
.
prev
=
0
,
this
.
next
=
0
,
this
.
sent
=
this
.
_sent
=
a
,
this
.
done
=!
1
,
this
.
delegate
=
null
,
this
.
method
=
"next"
,
this
.
arg
=
a
,
this
.
tryEntries
.
forEach
(
$
),
!
e
)
for
(
var
t
in
this
)
"t"
===
t
.
charAt
(
0
)
&&
s
.
call
(
this
,
t
)
&&!
isNaN
(
+
t
.
slice
(
1
))
&&
(
this
[
t
]
=
a
)},
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
r
(
r
,
s
){
return
i
.
type
=
"throw"
,
i
.
arg
=
e
,
t
.
next
=
r
,
s
&&
(
t
.
method
=
"next"
,
t
.
arg
=
a
),
!!
s
}
for
(
var
o
=
this
.
tryEntries
.
length
-
1
;
o
>=
0
;
--
o
){
var
n
=
this
.
tryEntries
[
o
],
i
=
n
.
completion
;
if
(
"root"
===
n
.
tryLoc
)
return
r
(
"end"
);
if
(
n
.
tryLoc
<=
this
.
prev
){
var
l
=
s
.
call
(
n
,
"catchLoc"
),
c
=
s
.
call
(
n
,
"finallyLoc"
);
if
(
l
&&
c
){
if
(
this
.
prev
<
n
.
catchLoc
)
return
r
(
n
.
catchLoc
,
!
0
);
if
(
this
.
prev
<
n
.
finallyLoc
)
return
r
(
n
.
finallyLoc
)}
else
if
(
l
){
if
(
this
.
prev
<
n
.
catchLoc
)
return
r
(
n
.
catchLoc
,
!
0
)}
else
{
if
(
!
c
)
throw
new
Error
(
"try statement without catch or finally"
);
if
(
this
.
prev
<
n
.
finallyLoc
)
return
r
(
n
.
finallyLoc
)}}}},
abrupt
:
function
(
e
,
t
){
for
(
var
a
=
this
.
tryEntries
.
length
-
1
;
a
>=
0
;
--
a
){
var
r
=
this
.
tryEntries
[
a
];
if
(
r
.
tryLoc
<=
this
.
prev
&&
s
.
call
(
r
,
"finallyLoc"
)
&&
this
.
prev
<
r
.
finallyLoc
){
var
o
=
r
;
break
}}
o
&&
(
"break"
===
e
||
"continue"
===
e
)
&&
o
.
tryLoc
<=
t
&&
t
<=
o
.
finallyLoc
&&
(
o
=
null
);
var
n
=
o
?
o
.
completion
:{};
return
n
.
type
=
e
,
n
.
arg
=
t
,
o
?(
this
.
method
=
"next"
,
this
.
next
=
o
.
finallyLoc
,
y
):
this
.
complete
(
n
)},
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
),
y
},
finish
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
a
=
this
.
tryEntries
[
t
];
if
(
a
.
finallyLoc
===
e
)
return
this
.
complete
(
a
.
completion
,
a
.
afterLoc
),
$
(
a
),
y
}},
catch
:
function
(
e
){
for
(
var
t
=
this
.
tryEntries
.
length
-
1
;
t
>=
0
;
--
t
){
var
a
=
this
.
tryEntries
[
t
];
if
(
a
.
tryLoc
===
e
){
var
r
=
a
.
completion
;
if
(
"throw"
===
r
.
type
){
var
s
=
r
.
arg
;
$
(
a
)}
return
s
}}
throw
new
Error
(
"illegal catch attempt"
)},
delegateYield
:
function
(
e
,
t
,
r
){
return
this
.
delegate
=
{
iterator
:
F
(
e
),
resultName
:
t
,
nextLoc
:
r
},
"next"
===
this
.
method
&&
(
this
.
arg
=
a
),
y
}}}
function
D
(
e
,
t
,
a
,
r
){
var
s
=
t
&&
t
.
prototype
instanceof
g
?
t
:
g
,
o
=
Object
.
create
(
s
.
prototype
),
n
=
new
j
(
r
||
[]);
return
o
.
_invoke
=
function
(
e
,
t
,
a
){
var
r
=
u
;
return
function
(
s
,
o
){
if
(
r
===
f
)
throw
new
Error
(
"Generator is already running"
);
if
(
r
===
b
){
if
(
"throw"
===
s
)
throw
o
;
return
K
()}
for
(
a
.
method
=
s
,
a
.
arg
=
o
;;){
var
n
=
a
.
delegate
;
if
(
n
){
var
i
=
T
(
n
,
a
);
if
(
i
){
if
(
i
===
y
)
continue
;
return
i
}}
if
(
"next"
===
a
.
method
)
a
.
sent
=
a
.
_sent
=
a
.
arg
;
else
if
(
"throw"
===
a
.
method
){
if
(
r
===
u
)
throw
r
=
b
,
a
.
arg
;
a
.
dispatchException
(
a
.
arg
)}
else
"return"
===
a
.
method
&&
a
.
abrupt
(
"return"
,
a
.
arg
);
r
=
f
;
var
l
=
k
(
e
,
t
,
a
);
if
(
"normal"
===
l
.
type
){
if
(
r
=
a
.
done
?
b
:
d
,
l
.
arg
===
y
)
continue
;
return
{
value
:
l
.
arg
,
done
:
a
.
done
}}
"throw"
===
l
.
type
&&
(
r
=
b
,
a
.
method
=
"throw"
,
a
.
arg
=
l
.
arg
)}}}(
e
,
a
,
n
),
o
}
function
k
(
e
,
t
,
a
){
try
{
return
{
type
:
"normal"
,
arg
:
e
.
call
(
t
,
a
)}}
catch
(
e
){
return
{
type
:
"throw"
,
arg
:
e
}}}
function
g
(){}
function
C
(){}
function
x
(){}
function
w
(
e
){[
"next"
,
"throw"
,
"return"
].
forEach
(
function
(
t
){
e
[
t
]
=
function
(
e
){
return
this
.
_invoke
(
t
,
e
)}})}
function
I
(
e
){
var
t
;
this
.
_invoke
=
function
(
a
,
r
){
function
o
(){
return
new
Promise
(
function
(
t
,
o
){
!
function
t
(
a
,
r
,
o
,
n
){
var
i
=
k
(
e
[
a
],
e
,
r
);
if
(
"throw"
!==
i
.
type
){
var
l
=
i
.
arg
,
c
=
l
.
value
;
return
c
&&
"object"
==
typeof
c
&&
s
.
call
(
c
,
"__await"
)?
Promise
.
resolve
(
c
.
__await
).
then
(
function
(
e
){
t
(
"next"
,
e
,
o
,
n
)},
function
(
e
){
t
(
"throw"
,
e
,
o
,
n
)}):
Promise
.
resolve
(
c
).
then
(
function
(
e
){
l
.
value
=
e
,
o
(
l
)},
n
)}
n
(
i
.
arg
)}(
a
,
r
,
t
,
o
)})}
return
t
=
t
?
t
.
then
(
o
,
o
):
o
()}}
function
T
(
e
,
t
){
var
r
=
e
.
iterator
[
t
.
method
];
if
(
r
===
a
){
if
(
t
.
delegate
=
null
,
"throw"
===
t
.
method
){
if
(
e
.
iterator
.
return
&&
(
t
.
method
=
"return"
,
t
.
arg
=
a
,
T
(
e
,
t
),
"throw"
===
t
.
method
))
return
y
;
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"The iterator does not provide a 'throw' method"
)}
return
y
}
var
s
=
k
(
r
,
e
.
iterator
,
t
.
arg
);
if
(
"throw"
===
s
.
type
)
return
t
.
method
=
"throw"
,
t
.
arg
=
s
.
arg
,
t
.
delegate
=
null
,
y
;
var
o
=
s
.
arg
;
return
o
?
o
.
done
?(
t
[
e
.
resultName
]
=
o
.
value
,
t
.
next
=
e
.
nextLoc
,
"return"
!==
t
.
method
&&
(
t
.
method
=
"next"
,
t
.
arg
=
a
),
t
.
delegate
=
null
,
y
):
o
:(
t
.
method
=
"throw"
,
t
.
arg
=
new
TypeError
(
"iterator result is not an object"
),
t
.
delegate
=
null
,
y
)}
function
O
(
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
$
(
e
){
var
t
=
e
.
completion
||
{};
t
.
type
=
"normal"
,
delete
t
.
arg
,
e
.
completion
=
t
}
function
j
(
e
){
this
.
tryEntries
=
[{
tryLoc
:
"root"
}],
e
.
forEach
(
O
,
this
),
this
.
reset
(
!
0
)}
function
F
(
e
){
if
(
e
){
var
t
=
e
[
n
];
if
(
t
)
return
t
.
call
(
e
);
if
(
"function"
==
typeof
e
.
next
)
return
e
;
if
(
!
isNaN
(
e
.
length
)){
var
r
=-
1
,
o
=
function
t
(){
for
(;
++
r
<
e
.
length
;)
if
(
s
.
call
(
e
,
r
))
return
t
.
value
=
e
[
r
],
t
.
done
=!
1
,
t
;
return
t
.
value
=
a
,
t
.
done
=!
0
,
t
};
return
o
.
next
=
o
}}
return
{
next
:
K
}}
function
K
(){
return
{
value
:
a
,
done
:
!
0
}}}(
function
(){
return
this
}()
||
Function
(
"return this"
)())},
Sw3L
:
function
(
e
,
t
){},
Vkns
:
function
(
e
,
t
){},
Xxa5
:
function
(
e
,
t
,
a
){
e
.
exports
=
a
(
"jyFz"
)},
"Yns/"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"319J"
),
s
=
a
(
"fZjL"
),
o
=
a
.
n
(
s
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
l
=
a
(
"mvHQ"
),
c
=
a
.
n
(
l
),
p
=
a
(
"exGp"
),
u
=
a
.
n
(
p
),
d
=
a
(
"Kkt8"
),
f
=
a
(
"l46T"
),
b
=
a
(
"P9l9"
),
y
=
a
(
"TUB1"
),
h
=
a
(
"LlAa"
),
m
=
{
name
:
"create-base"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
},
data
:
function
(){
return
{
apiInfoData
:{
interfaceId
:
""
,
interfaceVersionId
:
""
,
interfaceName
:
""
,
target
:
"1"
,
optType
:
"get"
,
interfaceUrl
:
""
,
interfaceDescribe
:
""
},
rules
:{
interfaceName
:[{
required
:
!
0
,
message
:
"请输入API名称"
,
trigger
:
"blur"
}],
interfaceUrl
:[{
required
:
!
0
,
message
:
"请输入请求路径"
,
trigger
:
"blur"
}]}}},
methods
:{
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
a
){
if
(
!
a
)
return
!
1
;
t
.
blurInterfaceUrl
(
e
)})},
blurInterfaceUrl
:
function
(
e
){
var
t
=
this
,
a
=
{
update
:
!!
t
.
$route
.
query
.
interfaceId
,
interfaceUrl
:
t
.
apiInfoData
.
interfaceUrl
};
Object
(
b
.
a
)(
"/gateway-manage/is-exist-interface-url"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
if
(
"0000"
==
r
.
code
)
return
r
.
result
?(
y
.
a
.
showmsg
(
"接口已存在"
,
"warning"
),
!
1
):
void
(
"baseForm"
==
e
&&
(
t
.
$emit
(
"submitNext"
,
t
.
apiInfoData
),
t
.
$store
.
dispatch
(
"saveBaseInfo"
,
t
.
apiInfoData
)));
h
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleQuery
:
function
(
e
,
t
,
a
){
var
r
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
s
in
t
.
frontParams
.
properties
)
t
.
frontParams
.
properties
[
s
].
frontOriginType
==
a
&&
this
.
$set
(
r
.
properties
,
t
.
frontParams
.
properties
[
s
].
currentKey
,
t
.
frontParams
.
properties
[
s
]);
return
r
},
handleBack
:
function
(
e
,
t
,
a
){
var
r
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
s
in
t
.
endParams
.
properties
)
t
.
endParams
.
properties
[
s
].
backendOriginType
==
a
&&
this
.
$set
(
r
.
properties
,
t
.
endParams
.
properties
[
s
].
rootKey
,
t
.
endParams
.
properties
[
s
]);
return
r
},
handleConst
:
function
(
e
,
t
){
var
a
=
{
type
:
"object"
,
level
:
1
,
properties
:{}};
for
(
var
r
in
t
.
endParams
.
properties
)
1
==
t
.
endParams
.
properties
[
r
].
constFlag
&&
this
.
$set
(
a
.
properties
,
t
.
endParams
.
properties
[
r
].
currentKey
,
t
.
endParams
.
properties
[
r
]);
return
a
},
handleFrontData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
s
,
o
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
t
,
s
=
JSON
.
parse
(
c
()(
e
)),
o
=
{
protocol
:
s
.
protocol
,
requestType
:
s
.
requestType
,
frontBodyType
:
s
.
frontBodyType
||
"json"
,
frontParams
:{},
headerData
:{},
queryData
:{},
bodyJsonData
:{},
bodyFormData
:{}},
a
.
next
=
5
,
r
.
handleQuery
(
o
,
s
,
"query"
);
case
5
:
return
o
.
queryData
=
a
.
sent
,
a
.
next
=
8
,
r
.
handleQuery
(
o
,
s
,
"header"
);
case
8
:
if
(
o
.
headerData
=
a
.
sent
,
"POST"
!=
s
.
requestType
||
"form"
!=
s
.
frontBodyType
){
a
.
next
=
13
;
break
}
return
a
.
next
=
12
,
r
.
handleQuery
(
o
,
s
,
"body"
);
case
12
:
o
.
bodyFormData
=
a
.
sent
;
case
13
:
if
(
"POST"
!=
s
.
requestType
||
"json"
!=
s
.
frontBodyType
){
a
.
next
=
17
;
break
}
return
a
.
next
=
16
,
r
.
handleQuery
(
o
,
s
,
"body"
);
case
16
:
o
.
bodyJsonData
=
a
.
sent
;
case
17
:
r
.
$store
.
dispatch
(
"saveFrontInfo"
,
o
);
case
18
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleBackData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
s
,
o
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
t
,
s
=
JSON
.
parse
(
c
()(
e
)),
o
=
{
interfaceType
:
String
(
s
.
interfaceType
),
version
:
s
.
version
,
backendRequestType
:
s
.
backendRequestType
,
backendHttpPath
:
s
.
backendHttpPath
||
""
,
dubboInterface
:
s
.
dubboInterface
||
""
,
dubboMethod
:
s
.
dubboMethod
||
""
,
dubboVersion
:
s
.
dubboVersion
||
""
,
proxyCode
:
s
.
proxyCode
||
""
,
timeout
:
2
e4
,
backHeaderData
:{},
backQueryData
:{},
backBodyJsonData
:{},
backBodyFormData
:{},
constData
:{}},
a
.
next
=
5
,
r
.
handleQuery
(
o
,
s
,
"query"
);
case
5
:
return
o
.
backQueryData
=
a
.
sent
,
a
.
next
=
8
,
r
.
handleQuery
(
o
,
s
,
"header"
);
case
8
:
if
(
o
.
backHeaderData
=
a
.
sent
,
"POST"
!=
s
.
requestType
||
"form"
!=
s
.
frontBodyType
){
a
.
next
=
13
;
break
}
return
a
.
next
=
12
,
r
.
handleQuery
(
o
,
s
,
"body"
);
case
12
:
o
.
backBodyFormData
=
a
.
sent
;
case
13
:
if
(
"POST"
!=
s
.
requestType
||
"json"
!=
s
.
frontBodyType
){
a
.
next
=
17
;
break
}
return
a
.
next
=
16
,
r
.
handleQuery
(
o
,
s
,
"body"
);
case
16
:
o
.
backBodyJsonData
=
a
.
sent
;
case
17
:
return
a
.
next
=
19
,
r
.
handleConst
(
o
,
s
);
case
19
:
o
.
constData
=
a
.
sent
,
r
.
$store
.
dispatch
(
"saveBackInfo"
,
o
);
case
21
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleResultData
:
function
(
e
){
var
t
=
JSON
.
parse
(
c
()(
e
)),
a
=
{
resultParams
:
t
.
resultParams
,
sucReturn
:
t
.
sucReturn
,
errReturn
:
t
.
errReturn
,
errCode
:
t
.
errCode
,
sceneCode
:
t
.
sceneCode
};
this
.
$store
.
dispatch
(
"saveResultInfo"
,
a
)},
getData
:
function
(){
var
e
=
this
,
t
=
{
interfaceId
:
e
.
$route
.
query
.
interfaceId
,
interfaceVersionId
:
e
.
$route
.
query
.
interfaceVersionId
};
Object
(
b
.
a
)(
"/gateway-manage/get-api"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
a
.
result
.
frontParams
=
JSON
.
parse
(
a
.
result
.
endParams
),
a
.
result
.
endParams
=
JSON
.
parse
(
a
.
result
.
endParams
),
a
.
result
.
errCode
=
JSON
.
parse
(
a
.
result
.
errCode
),
a
.
result
.
resultParams
=
JSON
.
parse
(
a
.
result
.
resultParams
),
e
.
apiInfoData
.
interfaceId
=
a
.
result
.
interfaceId
,
e
.
apiInfoData
.
interfaceVersionId
=
a
.
result
.
interfaceVersionId
,
e
.
apiInfoData
.
interfaceName
=
a
.
result
.
interfaceName
,
e
.
apiInfoData
.
target
=
String
(
a
.
result
.
target
),
e
.
apiInfoData
.
optType
=
a
.
result
.
optType
,
e
.
apiInfoData
.
interfaceUrl
=
a
.
result
.
interfaceUrl
,
e
.
apiInfoData
.
interfaceDescribe
=
a
.
result
.
interfaceDescribe
,
e
.
handleFrontData
(
a
.
result
),
e
.
handleBackData
(
a
.
result
),
e
.
handleResultData
(
a
.
result
),
!
1
;
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
$route
.
query
.
interfaceId
&&!
o
()(
this
.
$store
.
state
.
baseInfo
).
length
&&
this
.
getData
(),
o
()(
this
.
$store
.
state
.
baseInfo
).
length
&&
(
this
.
apiInfoData
=
this
.
$store
.
state
.
baseInfo
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"baseForm"
,
attrs
:{
"label-width"
:
"104px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"API名称:"
,
prop
:
"interfaceName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
interfaceName
,
holder
:
"请输入API名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API类型:"
,
prop
:
"target"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
apiInfoData
.
target
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"target"
,
t
)},
expression
:
"apiInfoData.target"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"公开"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"私有"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"访问类型:"
,
prop
:
"optType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
optType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"optType"
,
t
)},
expression
:
"apiInfoData.optType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"list"
,
value
:
"list"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"delete"
,
value
:
"delete"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"update"
,
value
:
"update"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"get"
,
value
:
"get"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"search"
,
value
:
"search"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
,
prop
:
"interfaceUrl"
}},[
a
(
"el-input"
,{
staticClass
:
"w-329"
,
on
:{
blur
:
e
.
blurInterfaceUrl
},
model
:{
value
:
e
.
apiInfoData
.
interfaceUrl
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceUrl"
,
t
)},
expression
:
"apiInfoData.interfaceUrl"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"描述:"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
apiInfoData
.
interfaceDescribe
,
holder
:
""
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceDescribe"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"baseForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
m
,
v
,
!
1
,
function
(
e
){
a
(
"Sw3L"
)},
"data-v-572713f2"
,
null
).
exports
,
D
=
a
(
"Gu7T"
),
k
=
a
.
n
(
D
),
g
=
{
name
:
"header-param"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
frontOriginType
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
trData
:{
type
:
"object"
,
properties
:{
name
:{
frontOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"name"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
}}},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
){
this
.
$delete
(
this
.
itemData
.
properties
,
t
)},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
itemData
.
properties
,
"field"
+
e
,{
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
})}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
C
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
check
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"check"
,
a
)},
expression
:
"itemValue.check"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"示例"
},
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"描述"
},
model
:{
value
:
t
.
description
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"description"
,
a
)},
expression
:
"itemValue.description"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
,
r
,
s
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])])]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加行"
)])])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"必选"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"默认值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_6 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"描述"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])])}]};
var
x
=
a
(
"VU/8"
)(
g
,
C
,
!
1
,
function
(
e
){
a
(
"jcVe"
)},
"data-v-4636c60a"
,
null
).
exports
,
w
=
{
name
:
"body-row"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
frontOriginType
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
trData
:{},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
,
r
){
this
.
handleDelData
(
this
.
itemData
,
e
,
t
)},
handleDelData
:
function
(
e
,
t
,
a
){
this
.
handleObjData
(
e
,
t
,
a
)},
handleObjData
:
function
(
e
,
t
,
a
){
for
(
var
r
in
e
)
e
[
r
]
==
t
&&
this
.
$delete
(
e
.
properties
,
a
)},
changeType
:
function
(
e
,
t
,
a
,
r
){
"string"
!=
e
&&
"boolean"
!=
e
&&
"number"
!=
e
&&
"object"
!=
e
||
(
t
.
properties
=
{},
t
.
hasOwnProperty
(
"items"
)
&&
this
.
$delete
(
t
,
"items"
)),
"array"
==
e
&&
this
.
$set
(
t
,
"items"
,{
parentKey
:
a
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
()},
handleAdd
:
function
(
e
,
t
,
a
,
r
){
var
s
=
this
.
keyLength
++
;
if
(
"array"
==
e
.
type
)
return
this
.
$set
(
e
.
items
.
properties
,
"field"
+
s
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
s
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
(),
!
1
;
this
.
$set
(
e
.
properties
,
"field"
+
s
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
frontOriginType
:
this
.
frontOriginType
,
backendOriginType
:
this
.
frontOriginType
,
type
:
"string"
,
currentKey
:
"field"
+
s
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}),
this
.
$forceUpdate
()}},
watch
:{
itemData
:
function
(
e
,
t
){
e
&&
(
this
.
trData
=
JSON
.
parse
(
c
()(
e
)))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
disabled
:
2
==
t
.
level
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
on
:{
change
:
function
(
a
){
e
.
changeType
(
t
.
type
,
t
,
t
.
currentKey
,
t
.
level
)}},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"object"
,
value
:
"object"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"array"
,
value
:
"array"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
check
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"check"
,
a
)},
expression
:
"itemValue.check"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"示例"
},
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"描述"
},
model
:{
value
:
t
.
description
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"description"
,
a
)},
expression
:
"itemValue.description"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
"array"
==
t
.
type
||
"object"
==
t
.
type
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleAdd
(
t
,
t
.
currentKey
,
s
,
t
.
level
)}}},[
e
.
_v
(
"添加子属性"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
!=
t
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
parentKey
,
t
.
currentKey
,
s
,
t
.
level
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()],
1
)])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"body-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
frontOriginType
:
e
.
frontOriginType
,
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"body-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
frontOriginType
:
e
.
frontOriginType
,
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
T
=
a
(
"VU/8"
)(
w
,
I
,
!
1
,
function
(
e
){
a
(
"POU2"
)},
"data-v-3aff30dc"
,
null
).
exports
,
O
=
a
(
"jvWE"
),
$
=
{
name
:
"create-front"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
headerParam
:
x
,
bodyParam
:
T
},
data
:
function
(){
return
{
apiInfoData
:{
protocol
:
"http"
,
requestType
:
"GET"
,
frontBodyType
:
"json"
,
frontParams
:{},
headerData
:{},
queryData
:{},
bodyJsonData
:{},
bodyFormData
:{}},
headerData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
queryData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
bodyJsonData
:{
type
:
"object"
,
level
:
1
,
properties
:{
root
:{
level
:
2
,
currentKey
:
"root"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]},
bodyFormData
:{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
rules
:{
requestType
:[{
required
:
!
0
,
message
:
"请选择请求方法"
,
trigger
:
"blur"
}]}}},
methods
:{
refreshData
:
function
(
e
){
this
.
frontData
=
e
},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handleData
()})},
handleData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
n
,
l
,
c
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
r
=
[].
concat
(
k
()(
o
()(
a
.
queryData
.
properties
)),
k
()(
o
()(
a
.
headerData
.
properties
))),
"POST"
==
a
.
apiInfoData
.
requestType
&&
"form"
==
a
.
apiInfoData
.
frontBodyType
&&
(
r
=
[].
concat
(
k
()(
r
),
k
()(
o
()(
a
.
bodyFormData
.
properties
)))),
t
.
next
=
5
,
Object
(
O
.
b
)(
r
);
case
5
:
if
(
!
t
.
sent
){
t
.
next
=
9
;
break
}
return
y
.
a
.
showmsg
(
"参数名重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
9
:
if
(
"POST"
==
a
.
apiInfoData
.
requestType
&&
"json"
==
a
.
apiInfoData
.
frontBodyType
){
if
(
o
()(
a
.
bodyJsonData
.
properties
.
root
.
properties
).
length
)
for
(
s
in
a
.
bodyJsonData
.
properties
.
root
.
required
=
[],
a
.
bodyJsonData
.
properties
.
root
.
properties
)
a
.
bodyJsonData
.
properties
.
root
.
properties
[
s
].
check
&&
a
.
bodyJsonData
.
properties
.
root
.
required
.
push
(
s
);
a
.
apiInfoData
.
bodyJsonData
=
a
.
bodyJsonData
}
else
a
.
apiInfoData
.
bodyJsonData
=
{};
if
(
"POST"
==
a
.
apiInfoData
.
requestType
&&
"form"
==
a
.
apiInfoData
.
frontBodyType
){
if
(
o
()(
a
.
bodyFormData
.
properties
).
length
)
for
(
n
in
a
.
bodyFormData
.
required
=
[],
a
.
bodyFormData
.
properties
)
a
.
bodyFormData
.
properties
[
n
].
check
&&
a
.
bodyFormData
.
required
.
push
(
n
);
a
.
apiInfoData
.
bodyFormData
=
a
.
bodyFormData
}
else
a
.
apiInfoData
.
bodyFormData
=
{};
if
(
o
()(
a
.
headerData
.
properties
).
length
)
for
(
l
in
a
.
headerData
.
required
=
[],
a
.
headerData
.
properties
)
a
.
headerData
.
properties
[
l
].
check
&&
a
.
headerData
.
required
.
push
(
l
);
if
(
o
()(
a
.
queryData
.
properties
).
length
)
for
(
c
in
a
.
queryData
.
required
=
[],
a
.
queryData
.
properties
)
a
.
queryData
.
properties
[
c
].
check
&&
a
.
queryData
.
required
.
push
(
c
);
a
.
apiInfoData
.
headerData
=
a
.
headerData
,
a
.
apiInfoData
.
queryData
=
a
.
queryData
,
a
.
$store
.
dispatch
(
"saveFrontInfo"
,
a
.
apiInfoData
),
a
.
$emit
(
"submitNext"
,
a
.
apiInfoData
);
case
17
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
frontInfo
)),
this
.
headerData
=
this
.
apiInfoData
.
headerData
,
this
.
queryData
=
this
.
apiInfoData
.
queryData
;
this
.
bodyJsonData
=
o
()(
this
.
apiInfoData
.
bodyJsonData
).
length
?
this
.
apiInfoData
.
bodyJsonData
:{
type
:
"object"
,
level
:
1
,
properties
:{
root
:{
level
:
2
,
currentKey
:
"root"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"object"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]},
this
.
bodyFormData
=
o
()(
this
.
apiInfoData
.
bodyFormData
).
length
?
this
.
apiInfoData
.
bodyFormData
:{
type
:
"object"
,
level
:
1
,
properties
:{
form
:{
level
:
2
,
currentKey
:
"form"
,
frontOriginType
:
"body"
,
backendOriginType
:
"body"
,
type
:
"string"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
,
properties
:{}}},
required
:[]}}},
mounted
:
function
(){
o
()(
this
.
$store
.
state
.
frontInfo
).
length
&&
this
.
handleStoreData
()}},
j
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"base-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"baseForm"
,
attrs
:{
"label-width"
:
"104px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"协议:"
,
prop
:
"protocol"
}},[
e
.
_v
(
e
.
_s
(
e
.
apiInfoData
.
protocol
))]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求方法:"
,
prop
:
"requestType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
requestType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"requestType"
,
t
)},
expression
:
"apiInfoData.requestType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"GET"
,
value
:
"GET"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"POST"
,
value
:
"POST"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"color-303133 font-w-700"
,
attrs
:{
label
:
"参数配置"
}}),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"header"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontHeaderTable"
,
attrs
:{
itemData
:
e
.
headerData
,
frontOriginType
:
"header"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"query"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontQueryTable"
,
attrs
:{
itemData
:
e
.
queryData
,
frontOriginType
:
"query"
}})],
1
),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"参数位置:"
}},[
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"body"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
a
(
"el-radio"
,{
attrs
:{
label
:
"json"
},
model
:{
value
:
e
.
apiInfoData
.
frontBodyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"frontBodyType"
,
t
)},
expression
:
"apiInfoData.frontBodyType"
}},[
e
.
_v
(
"json"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"form"
},
model
:{
value
:
e
.
apiInfoData
.
frontBodyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"frontBodyType"
,
t
)},
expression
:
"apiInfoData.frontBodyType"
}},[
e
.
_v
(
"form"
)])],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
&&
"json"
==
e
.
apiInfoData
.
frontBodyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"div"
,{
staticClass
:
"body-param-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"必选"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"默认值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_6 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"描述"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"body-param"
,{
ref
:
"frontBodyJsonTable"
,
attrs
:{
itemData
:
e
.
bodyJsonData
,
frontOriginType
:
"body"
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
"POST"
==
e
.
apiInfoData
.
requestType
&&
"form"
==
e
.
apiInfoData
.
frontBodyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"header-param"
,{
ref
:
"frontBodyFormTable"
,
attrs
:{
itemData
:
e
.
bodyFormData
,
frontOriginType
:
"body"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"baseForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
F
=
a
(
"VU/8"
)(
$
,
j
,
!
1
,
function
(
e
){
a
(
"Vkns"
)},
"data-v-f54f28ca"
,
null
).
exports
,
K
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{}}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
e
}},
mounted
:
function
(){
this
.
trData
=
this
.
itemData
}},
q
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
t
.
type
||
"array"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
r
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
frontOriginType
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
type
))])])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"back-table-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"back-table-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
K
,
q
,
!
1
,
function
(
e
){
a
(
"9Yxt"
)},
"data-v-ed85a484"
,
null
).
exports
,
B
=
{
name
:
"back-table-row"
,
props
:{
itemData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
interfaceType
:{
type
:
String
,
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{}}},
methods
:{
blurKey
:
function
(
e
,
t
){},
changeCheck
:
function
(
e
,
t
){
var
a
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
r
,
s
,
n
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
r
=
a
,
"object"
!=
e
.
type
||!
o
()(
e
.
properties
).
length
){
t
.
next
=
11
;
break
}
t
.
t0
=
i
.
a
.
keys
(
e
.
properties
);
case
3
:
if
((
t
.
t1
=
t
.
t0
()).
done
){
t
.
next
=
11
;
break
}
if
(
s
=
t
.
t1
.
value
,
e
.
properties
[
s
].
isRootKey
=!
0
,
"object"
!=
e
.
properties
[
s
].
type
||!
o
()(
e
[
s
].
properties
).
length
){
t
.
next
=
9
;
break
}
return
t
.
next
=
9
,
r
.
checkArrObjData
(
e
[
s
].
properties
);
case
9
:
t
.
next
=
3
;
break
;
case
11
:
if
(
"array"
!=
e
.
type
||!
o
()(
e
.
items
.
properties
).
length
){
t
.
next
=
21
;
break
}
t
.
t2
=
i
.
a
.
keys
(
e
.
items
.
properties
);
case
13
:
if
((
t
.
t3
=
t
.
t2
()).
done
){
t
.
next
=
21
;
break
}
if
(
n
=
t
.
t3
.
value
,
e
.
items
.
properties
[
n
].
isRootKey
=!
0
,
"array"
!=
e
.
properties
[
n
].
type
||!
o
()(
e
[
n
].
items
.
properties
).
length
){
t
.
next
=
19
;
break
}
return
t
.
next
=
19
,
r
.
checkArrObjData
(
e
[
n
].
items
.
properties
);
case
19
:
t
.
next
=
13
;
break
;
case
21
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
checkArrObjData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
s
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
r
=
t
,
a
.
t0
=
i
.
a
.
keys
(
e
);
case
2
:
if
((
a
.
t1
=
a
.
t0
()).
done
){
a
.
next
=
15
;
break
}
if
(
s
=
a
.
t1
.
value
,
e
[
s
].
isRootKey
=!
0
,
"object"
!=
e
[
s
].
type
||!
o
()(
e
[
s
].
properties
).
length
){
a
.
next
=
9
;
break
}
return
e
[
s
].
isRootKey
=!
0
,
a
.
next
=
9
,
r
.
checkArrObjData
(
e
[
s
].
properties
);
case
9
:
if
(
"array"
!=
e
[
s
].
type
||!
o
()(
e
[
s
].
items
.
properties
).
length
){
a
.
next
=
13
;
break
}
return
e
[
s
].
isRootKey
=!
0
,
a
.
next
=
13
,
r
.
checkArrObjData
(
e
[
s
].
items
.
properties
);
case
13
:
a
.
next
=
2
;
break
;
case
15
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
J
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
t
.
constFlag
?
e
.
_e
():
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
"object"
==
t
.
type
||
"array"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"i"
,{
staticClass
:
"el-icon-minus"
})]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
e
.
itemData
.
isRootKey
},
on
:{
change
:
function
(
a
){
e
.
changeCheck
(
t
,
r
)}},
model
:{
value
:
t
.
isRootKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"isRootKey"
,
a
)},
expression
:
"itemValue.isRootKey"
}})],
1
)]),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入参数名"
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
rootKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"rootKey"
,
a
)},
expression
:
"itemValue.rootKey"
}})],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数位置"
},
model
:{
value
:
t
.
backendOriginType
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"backendOriginType"
,
a
)},
expression
:
"itemValue.backendOriginType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"header"
,
value
:
"header"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"query"
,
value
:
"query"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"body"
,
value
:
"body"
}})],
1
)],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
e
.
_s
(
t
.
type
))])]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入参数值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
"1"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入包路径"
},
model
:{
value
:
t
.
objectClass
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"objectClass"
,
a
)},
expression
:
"itemValue.objectClass"
}})],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_4"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
staticClass
:
"w-110"
,
attrs
:{
placeholder
:
"请输入排序"
},
model
:{
value
:
t
.
sort
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"sort"
,
a
)},
expression
:
"itemValue.sort"
}})],
1
)]):
e
.
_e
()])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
?
a
(
"back-table-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
interfaceType
:
e
.
interfaceType
,
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
?
a
(
"back-table-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row child-row"
,
attrs
:{
interfaceType
:
e
.
interfaceType
,
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
V
=
a
(
"VU/8"
)(
B
,
J
,
!
1
,
function
(
e
){
a
(
"KiTl"
)},
"data-v-1dd46878"
,
null
).
exports
,
P
=
{
name
:
"back-constant"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}},
interfaceType
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"0"
}}},
data
:
function
(){
return
{
trData
:{
type
:
"object"
,
properties
:{
name
:{
frontOriginType
:
"header"
,
backendOriginType
:
"header"
,
type
:
"string"
,
constFlag
:
!
0
,
currentKey
:
"name"
,
isBackendField
:
0
,
defaultVal
:
"val"
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
}}},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
handleDel
:
function
(
e
,
t
,
a
){
this
.
$delete
(
this
.
itemData
.
properties
,
t
)},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
itemData
.
properties
,
"field"
+
e
,{
frontOriginType
:
"header"
,
backendOriginType
:
"header"
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
constFlag
:
!
0
,
isBackendField
:
0
,
defaultVal
:
""
,
isRootKey
:
0
,
rootKey
:
""
,
objectClass
:
""
,
description
:
"描述"
,
example
:
"示例"
,
check
:
!
0
})}},
watch
:{
itemData
:
function
(
e
,
t
){
this
.
trData
=
JSON
.
parse
(
c
()(
e
))},
interfaceType
:
function
(
e
,
t
){
this
.
backType
=
e
}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
R
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
_m
(
1
),
e
.
_v
(
" "
),
e
.
_m
(
2
),
e
.
_v
(
" "
),
e
.
_m
(
3
)])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
t
.
constFlag
?
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入参数名"
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
"0"
==
e
.
interfaceType
?
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数位置"
},
model
:{
value
:
t
.
backendOriginType
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"backendOriginType"
,
a
)},
expression
:
"itemValue.backendOriginType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"header"
,
value
:
"header"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"query"
,
value
:
"query"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"body"
,
value
:
"body"
}})],
1
)],
1
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"integer"
,
value
:
"integer"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"默认值"
},
model
:{
value
:
t
.
defaultVal
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"defaultVal"
,
a
)},
expression
:
"itemValue.defaultVal"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
,
r
,
s
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])]):
e
.
_e
()]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加常量参数"
)])])])},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数名"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数类型"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"参数值"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
t
(
"div"
,{
staticClass
:
"cell"
},[
this
.
_v
(
"操作"
)])])}]};
var
N
=
a
(
"VU/8"
)(
P
,
R
,
!
1
,
function
(
e
){
a
(
"e1qm"
)},
"data-v-512e4ab0"
,
null
).
exports
,
E
=
{
name
:
"create-backend"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
backTableLeft
:
S
,
backConstant
:
N
,
backTableRight
:
V
},
data
:
function
(){
var
e
=
this
;
return
{
apiInfoData
:{
interfaceType
:
"0"
,
version
:
""
,
backendRequestType
:
"GET"
,
backendHttpPath
:
""
,
dubboInterface
:
""
,
dubboMethod
:
""
,
dubboVersion
:
""
,
proxyCode
:
""
,
timeout
:
2
e4
},
backHeaderData
:{},
backQueryData
:{},
backBodyJsonData
:{},
backBodyFormData
:{},
rules
:{
version
:[{
required
:
!
0
,
message
:
"请输入API版本号"
,
trigger
:
"blur"
}],
backendRequestType
:[{
required
:
!
0
,
message
:
"请选择请求类型"
,
trigger
:
"blur"
}],
backendHttpPath
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"0"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入请求路径"
)):
r
()},
trigger
:
"blur"
}],
timeout
:[{
required
:
!
0
,
message
:
"请输入超时时长"
,
trigger
:
"blur"
}],
dubboInterface
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入dubbo接口名称"
)):
r
()},
trigger
:
"blur"
}],
dubboMethod
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入dubbo请求方法"
)):
r
()},
trigger
:
"blur"
}],
dubboVersion
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请输入请求版本号"
)):
r
()},
trigger
:
"blur"
}],
proxyCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
""
===
a
&&
"1"
==
e
.
apiInfoData
.
interfaceType
?
r
(
new
Error
(
"请选择注册中心地址"
)):
r
()},
trigger
:
"blur"
}]},
envSetOptions
:[],
constData
:{
type
:
"object"
,
level
:
1
,
properties
:{}}}},
methods
:{
changeType
:
function
(
e
){
var
t
=
this
;
t
.
copyObj
=
JSON
.
parse
(
c
()(
t
.
apiInfoData
)),
t
.
getEnvSetData
(),
t
.
$nextTick
(
function
(){
t
.
$refs
.
backForm
.
resetFields
(),
t
.
apiInfoData
=
{
interfaceType
:
e
,
version
:
t
.
copyObj
.
version
,
backendRequestType
:
t
.
copyObj
.
backendRequestType
,
backendHttpPath
:
t
.
copyObj
.
backendHttpPath
,
dubboInterface
:
t
.
copyObj
.
dubboInterface
,
dubboMethod
:
t
.
copyObj
.
dubboMethod
,
dubboVersion
:
t
.
copyObj
.
dubboVersion
,
proxyCode
:
t
.
copyObj
.
proxyCode
,
timeout
:
t
.
copyObj
.
timeout
}})},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handlebackData
()})},
handlebackData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
n
,
l
,
c
,
p
,
u
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
r
=
[].
concat
(
k
()(
o
()(
a
.
constData
.
properties
))),
t
.
next
=
4
,
Object
(
O
.
b
)(
r
);
case
4
:
if
(
!
t
.
sent
){
t
.
next
=
8
;
break
}
return
y
.
a
.
showmsg
(
"参数名重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
8
:
if
(
s
=!
0
,
1
!=
a
.
apiInfoData
.
interfaceType
||!
o
()(
a
.
backHeaderData
).
length
||!
o
()(
a
.
backHeaderData
.
properties
).
length
){
t
.
next
=
18
;
break
}
t
.
t0
=
i
.
a
.
keys
(
a
.
backHeaderData
.
properties
);
case
11
:
if
((
t
.
t1
=
t
.
t0
()).
done
){
t
.
next
=
18
;
break
}
if
(
n
=
t
.
t1
.
value
,
!
a
.
backHeaderData
.
properties
[
n
].
isRootKey
||
a
.
backHeaderData
.
properties
[
n
].
objectClass
){
t
.
next
=
16
;
break
}
return
s
=!
1
,
t
.
abrupt
(
"break"
,
18
);
case
16
:
t
.
next
=
11
;
break
;
case
18
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
o
()(
a
.
backQueryData
).
length
||!
o
()(
a
.
backQueryData
.
properties
).
length
){
t
.
next
=
27
;
break
}
t
.
t2
=
i
.
a
.
keys
(
a
.
backQueryData
.
properties
);
case
20
:
if
((
t
.
t3
=
t
.
t2
()).
done
){
t
.
next
=
27
;
break
}
if
(
l
=
t
.
t3
.
value
,
!
a
.
backQueryData
.
properties
[
l
].
isRootKey
||
a
.
backQueryData
.
properties
[
l
].
objectClass
){
t
.
next
=
25
;
break
}
return
s
=!
1
,
t
.
abrupt
(
"break"
,
27
);
case
25
:
t
.
next
=
20
;
break
;
case
27
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
o
()(
a
.
backBodyFormData
).
length
||!
o
()(
a
.
backBodyFormData
.
properties
).
length
){
t
.
next
=
36
;
break
}
t
.
t4
=
i
.
a
.
keys
(
a
.
backBodyFormData
.
properties
);
case
29
:
if
((
t
.
t5
=
t
.
t4
()).
done
){
t
.
next
=
36
;
break
}
if
(
c
=
t
.
t5
.
value
,
!
a
.
backBodyFormData
.
properties
[
c
].
isRootKey
||
a
.
backBodyFormData
.
properties
[
c
].
objectClass
){
t
.
next
=
34
;
break
}
return
s
=!
1
,
t
.
abrupt
(
"break"
,
36
);
case
34
:
t
.
next
=
29
;
break
;
case
36
:
if
(
1
!=
a
.
apiInfoData
.
interfaceType
||!
o
()(
a
.
backBodyJsonData
).
length
||!
o
()(
a
.
backBodyJsonData
.
properties
).
length
){
t
.
next
=
54
;
break
}
t
.
t6
=
i
.
a
.
keys
(
a
.
backBodyJsonData
.
properties
);
case
38
:
if
((
t
.
t7
=
t
.
t6
()).
done
){
t
.
next
=
54
;
break
}
if
(
p
=
t
.
t7
.
value
,
!
a
.
backBodyJsonData
.
properties
[
p
].
isRootKey
||
a
.
backBodyJsonData
.
properties
[
p
].
objectClass
){
t
.
next
=
43
;
break
}
return
s
=!
1
,
t
.
abrupt
(
"break"
,
54
);
case
43
:
if
(
!
o
()(
a
.
backBodyJsonData
.
properties
[
p
].
properties
).
length
){
t
.
next
=
52
;
break
}
t
.
t8
=
i
.
a
.
keys
(
a
.
backBodyJsonData
.
properties
[
p
].
properties
);
case
45
:
if
((
t
.
t9
=
t
.
t8
()).
done
){
t
.
next
=
52
;
break
}
if
(
u
=
t
.
t9
.
value
,
!
a
.
backBodyJsonData
.
properties
[
p
].
properties
[
u
].
isRootKey
||
a
.
backBodyJsonData
.
properties
[
p
].
properties
[
u
].
objectClass
){
t
.
next
=
50
;
break
}
return
s
=!
1
,
t
.
abrupt
(
"break"
,
52
);
case
50
:
t
.
next
=
45
;
break
;
case
52
:
t
.
next
=
38
;
break
;
case
54
:
if
(
s
){
t
.
next
=
57
;
break
}
return
y
.
a
.
showmsg
(
"请完善参数"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
57
:
a
.
apiInfoData
.
backHeaderData
=
a
.
backHeaderData
,
a
.
apiInfoData
.
backQueryData
=
a
.
backQueryData
,
a
.
apiInfoData
.
backBodyJsonData
=
a
.
backBodyJsonData
,
a
.
apiInfoData
.
backBodyFormData
=
a
.
backBodyFormData
,
a
.
apiInfoData
.
constData
=
a
.
constData
,
a
.
$emit
(
"submitNext"
,
a
.
apiInfoData
),
a
.
$store
.
dispatch
(
"saveBackInfo"
,
a
.
apiInfoData
);
case
64
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
getEnvSetData
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
searchValue
,
pageNum
:
e
.
currentPage
,
pageSize
:
100
,
proxyType
:
e
.
apiInfoData
.
interfaceType
||
"http"
};
Object
(
b
.
b
)(
"/gateway-manage/page-proxy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
"0000"
==
a
.
code
)
return
e
.
envSetOptions
=
a
.
result
.
result
||
[],
void
(
e
.
totalCount
=
a
.
result
.
totalCount
);
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleFrontData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
n
,
l
,
p
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
a
=
e
,
r
=
JSON
.
parse
(
c
()(
a
.
$store
.
state
.
frontInfo
)),
o
()(
r
.
headerData
).
length
){
for
(
s
in
r
.
headerData
.
properties
)
r
.
headerData
.
properties
[
s
].
isRootKey
=!
0
,
r
.
headerData
.
properties
[
s
].
rootKey
=
r
.
headerData
.
properties
[
s
].
rootKey
?
r
.
headerData
.
properties
[
s
].
rootKey
:
s
,
r
.
headerData
.
properties
[
s
].
backendOriginType
=
r
.
headerData
.
properties
[
s
].
backendOriginType
,
r
.
headerData
.
properties
[
s
].
isBackendField
=
1
;
a
.
backHeaderData
=
JSON
.
parse
(
c
()(
r
.
headerData
)),
a
.
frontHeaderData
=
JSON
.
parse
(
c
()(
r
.
headerData
))}
if
(
o
()(
r
.
queryData
).
length
){
for
(
n
in
r
.
queryData
.
properties
)
r
.
queryData
.
properties
[
n
].
isRootKey
=!
0
,
r
.
queryData
.
properties
[
n
].
rootKey
=
r
.
queryData
.
properties
[
n
].
rootKey
?
r
.
queryData
.
properties
[
n
].
rootKey
:
n
,
r
.
queryData
.
properties
[
n
].
backendOriginType
=
r
.
queryData
.
properties
[
n
].
backendOriginType
,
r
.
queryData
.
properties
[
n
].
isBackendField
=
1
;
a
.
backQueryData
=
JSON
.
parse
(
c
()(
r
.
queryData
)),
a
.
frontQueryData
=
JSON
.
parse
(
c
()(
r
.
queryData
))}
if
(
o
()(
r
.
bodyFormData
).
length
){
for
(
l
in
r
.
bodyFormData
.
properties
)
r
.
bodyFormData
.
properties
[
l
].
isRootKey
=!
0
,
r
.
bodyFormData
.
properties
[
l
].
rootKey
=
r
.
bodyFormData
.
properties
[
l
].
rootKey
?
r
.
bodyFormData
.
properties
[
l
].
rootKey
:
l
,
r
.
bodyFormData
.
properties
[
l
].
backendOriginType
=
r
.
bodyFormData
.
properties
[
l
].
backendOriginType
,
r
.
bodyFormData
.
properties
[
l
].
isBackendField
=
1
;
a
.
backBodyFormData
=
JSON
.
parse
(
c
()(
r
.
bodyFormData
)),
a
.
frontBodyFormData
=
JSON
.
parse
(
c
()(
r
.
bodyFormData
))}
if
(
!
o
()(
r
.
bodyJsonData
).
length
){
t
.
next
=
23
;
break
}
t
.
t0
=
i
.
a
.
keys
(
r
.
bodyJsonData
.
properties
);
case
7
:
if
((
t
.
t1
=
t
.
t0
()).
done
){
t
.
next
=
21
;
break
}
if
(
p
=
t
.
t1
.
value
,
r
.
bodyJsonData
.
properties
[
p
].
isRootKey
=!
0
,
r
.
bodyJsonData
.
properties
[
p
].
rootKey
=
r
.
bodyJsonData
.
properties
[
p
].
rootKey
?
r
.
bodyJsonData
.
properties
[
p
].
rootKey
:
p
,
r
.
bodyJsonData
.
properties
[
p
].
backendOriginType
=
r
.
bodyJsonData
.
properties
[
p
].
backendOriginType
,
r
.
bodyJsonData
.
properties
[
p
].
isBackendField
=
1
,
"array"
!=
r
.
bodyJsonData
.
properties
[
p
].
type
||!
o
()(
r
.
bodyJsonData
.
properties
[
p
].
items
.
properties
).
length
){
t
.
next
=
16
;
break
}
return
t
.
next
=
16
,
a
.
handleArrObjData
(
r
.
bodyJsonData
.
properties
[
p
].
items
.
properties
);
case
16
:
if
(
"object"
!=
r
.
bodyJsonData
.
properties
[
p
].
type
||!
o
()(
r
.
bodyJsonData
.
properties
[
p
].
properties
).
length
){
t
.
next
=
19
;
break
}
return
t
.
next
=
19
,
a
.
handleArrObjData
(
r
.
bodyJsonData
.
properties
[
p
].
properties
);
case
19
:
t
.
next
=
7
;
break
;
case
21
:
a
.
backBodyJsonData
=
JSON
.
parse
(
c
()(
r
.
bodyJsonData
)),
a
.
frontBodyJsonData
=
JSON
.
parse
(
c
()(
r
.
bodyJsonData
));
case
23
:
a
.
$forceUpdate
();
case
24
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleArrObjData
:
function
(
e
){
var
t
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
,
s
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
r
=
t
,
a
.
t0
=
i
.
a
.
keys
(
e
);
case
2
:
if
((
a
.
t1
=
a
.
t0
()).
done
){
a
.
next
=
17
;
break
}
if
(
s
=
a
.
t1
.
value
,
e
[
s
].
isRootKey
=!
1
,
e
[
s
].
rootKey
=
e
[
s
].
rootKey
?
e
[
s
].
rootKey
:
s
,
e
[
s
].
isBackendField
=
1
,
"array"
!=
e
[
s
].
type
||!
o
()(
e
[
s
].
items
.
properties
).
length
){
a
.
next
=
11
;
break
}
return
e
[
s
].
isRootKey
=!
0
,
a
.
next
=
11
,
r
.
handleArrObjData
(
e
[
s
].
items
.
properties
);
case
11
:
if
(
"object"
!=
e
[
s
].
type
||!
o
()(
e
[
s
].
properties
).
length
){
a
.
next
=
15
;
break
}
return
e
[
s
].
isRootKey
=!
0
,
a
.
next
=
15
,
r
.
handleArrObjData
(
e
[
s
].
properties
);
case
15
:
a
.
next
=
2
;
break
;
case
17
:
return
a
.
abrupt
(
"return"
,
e
);
case
18
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
backInfo
)),
this
.
constData
=
this
.
apiInfoData
.
constData
}},
mounted
:
function
(){
this
.
getEnvSetData
(),
this
.
handleFrontData
(),
o
()(
this
.
$store
.
state
.
backInfo
).
length
&&
this
.
handleStoreData
()}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"back-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"backForm"
,
attrs
:{
"label-width"
:
"129px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"后端服务:"
,
prop
:
"interfaceType"
}},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeType
},
model
:{
value
:
e
.
apiInfoData
.
interfaceType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"interfaceType"
,
t
)},
expression
:
"apiInfoData.interfaceType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"http"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"dubbo"
)])],
1
)],
1
),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求类型:"
,
prop
:
"backendRequestType"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
backendRequestType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"backendRequestType"
,
t
)},
expression
:
"apiInfoData.backendRequestType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"GET"
,
value
:
"GET"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"POST"
,
value
:
"POST"
}})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"API版本号"
,
prop
:
"version"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
version
,
holder
:
"请输入API版本号"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"version"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo接口名称:"
,
prop
:
"dubboInterface"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboInterface
,
holder
:
"请输入dubbo接口名称"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboInterface"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"dubbo请求方法:"
,
prop
:
"dubboMethod"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboMethod
,
holder
:
"请输入dubbo请求方法"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboMethod"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求路径:"
,
prop
:
"backendHttpPath"
}},[
a
(
"el-input"
,{
staticClass
:
"w-329"
,
model
:{
value
:
e
.
apiInfoData
.
backendHttpPath
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"backendHttpPath"
,
t
)},
expression
:
"apiInfoData.backendHttpPath"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
apiInfoData
.
interfaceType
?
"注册中心地址:"
:
"配置code"
,
prop
:
"proxyCode"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
apiInfoData
.
proxyCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"proxyCode"
,
t
)},
expression
:
"apiInfoData.proxyCode"
}},
e
.
_l
(
e
.
envSetOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
proxyCode
,
attrs
:{
label
:
e
.
proxyName
,
value
:
e
.
proxyCode
}})}))],
1
),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"请求版本号"
,
prop
:
"dubboVersion"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
329
,
inputValue
:
e
.
apiInfoData
.
dubboVersion
,
holder
:
"请输入请求版本号"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"dubboVersion"
,
t
)}}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"超时时长:"
,
prop
:
"timeout"
}},[
a
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
1
e9
},
model
:{
value
:
e
.
apiInfoData
.
timeout
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"timeout"
,
t
)},
expression
:
"apiInfoData.timeout"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"color-303133 font-w-700"
,
attrs
:{
label
:
"参数配置"
}},[
a
(
"div"
,{
staticClass
:
"back-data-wrap font-0"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"30%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
})]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none back-table-left"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
backHeaderData
.
properties
&&
Object
.
keys
(
e
.
backHeaderData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontHeaderData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backQueryData
.
properties
&&
Object
.
keys
(
e
.
backQueryData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontQueryData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyJsonData
.
properties
&&
Object
.
keys
(
e
.
backBodyJsonData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontBodyJsonData
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyFormData
.
properties
&&
Object
.
keys
(
e
.
backBodyFormData
.
properties
).
length
?
a
(
"back-table-left"
,{
attrs
:{
itemData
:
e
.
frontBodyFormData
}}):
e
.
_e
()],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top"
,
staticStyle
:{
width
:
"70%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
staticStyle
:{
width
:
"36px"
},
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
})]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"是否后端参数"
)])]),
e
.
_v
(
" "
),
"0"
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名映射"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数位置"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_3 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数值"
)])]),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"包路径"
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
apiInfoData
.
interfaceType
?
a
(
"th"
,{
staticClass
:
"el-table_1_column_4 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"排序"
)])]):
e
.
_e
()])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
e
.
backHeaderData
.
properties
&&
Object
.
keys
(
e
.
backHeaderData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backHeaderData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backQueryData
.
properties
&&
Object
.
keys
(
e
.
backQueryData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backQueryData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyJsonData
.
properties
&&
Object
.
keys
(
e
.
backBodyJsonData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backBodyJsonData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
backBodyFormData
.
properties
&&
Object
.
keys
(
e
.
backBodyFormData
.
properties
).
length
?
a
(
"back-table-right"
,{
attrs
:{
itemData
:
e
.
backBodyFormData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}}):
e
.
_e
()],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"constant-wrap"
},[
a
(
"back-constant"
,{
attrs
:{
itemData
:
e
.
constData
,
interfaceType
:
e
.
apiInfoData
.
interfaceType
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"backForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
A
=
a
(
"VU/8"
)(
E
,
L
,
!
1
,
function
(
e
){
a
(
"ZD2h"
)},
"data-v-7dae781a"
,
null
).
exports
,
Q
=
a
(
"woOf"
),
H
=
a
.
n
(
Q
),
U
=
{
name
:
"body-row"
,
props
:{
itemData
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
trData
:{},
keyLength
:
1
}},
methods
:{
blurKey
:
function
(
e
,
t
){
e
.
currentKey
!=
t
&&
(
this
.
$set
(
this
.
itemData
.
properties
,
e
.
currentKey
,
e
),
this
.
$delete
(
this
.
itemData
.
properties
,
t
))},
updateKey
:
function
(
e
){
for
(
var
t
in
e
)
t
!=
e
[
t
].
currentKey
&&
(
e
[
t
].
pkey
=
e
[
e
[
t
].
currentKey
]
=
e
[
t
],
this
.
$delete
(
e
,
t
)),
e
[
t
]
&&
"object"
==
e
[
t
].
type
&&
o
()(
e
[
t
].
properties
).
length
&&
this
.
updateKey
(
e
[
t
].
properties
),
e
[
t
]
&&
"array"
==
e
[
t
].
type
&&
o
()(
e
[
t
].
items
.
properties
).
length
&&
this
.
updateKey
(
e
[
t
].
items
.
properties
)},
handleDel
:
function
(
e
,
t
,
a
,
r
){
var
s
=
this
;
return
u
()(
i
.
a
.
mark
(
function
a
(){
var
r
;
return
i
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
r
=
s
,
a
.
next
=
3
,
r
.
updateKey
(
r
.
itemData
.
properties
);
case
3
:
if
(
e
){
a
.
next
=
6
;
break
}
return
r
.
$delete
(
r
.
itemData
.
properties
,
t
),
a
.
abrupt
(
"return"
,
!
1
);
case
6
:
r
.
handleDelData
(
r
.
itemData
,
e
,
t
);
case
7
:
case
"end"
:
return
a
.
stop
()}},
a
,
s
)}))()},
handleDelData
:
function
(
e
,
t
,
a
){
this
.
handleObjData
(
e
,
t
,
a
)},
handleObjData
:
function
(
e
,
t
,
a
){
for
(
var
r
in
e
)
e
[
r
]
==
t
&&
this
.
$delete
(
e
.
properties
,
a
)},
changeType
:
function
(
e
,
t
,
a
,
r
){
"string"
!=
e
&&
"boolean"
!=
e
&&
"number"
!=
e
&&
"object"
!=
e
||
(
t
.
properties
=
{},
t
.
hasOwnProperty
(
"items"
)
&&
this
.
$delete
(
t
,
"items"
)),
"array"
==
e
&&
this
.
$set
(
t
,
"items"
,{
parentKey
:
a
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
()},
handleAdd
:
function
(
e
,
t
,
a
,
r
){
var
s
=
this
.
keyLength
++
;
if
(
"array"
==
e
.
type
)
return
this
.
$set
(
e
.
items
.
properties
,
"field"
+
s
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
currentKey
:
"field"
+
s
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
(),
!
1
;
this
.
$set
(
e
.
properties
,
"field"
+
s
,{
parentKey
:
t
,
level
:
parseInt
(
r
)
+
1
,
type
:
"string"
,
currentKey
:
"field"
+
s
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}),
this
.
$forceUpdate
()}},
watch
:{
itemData
:
function
(
e
,
t
){
e
&&
(
this
.
trData
=
JSON
.
parse
(
c
()(
e
)))}},
mounted
:
function
(){
this
.
trData
=
JSON
.
parse
(
c
()(
this
.
itemData
))}},
M
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
e
.
_l
(
e
.
itemData
.
properties
,
function
(
t
,
r
,
s
){
return
[
a
(
"table"
,{
key
:
s
+
r
+
121
,
staticClass
:
"el-table__body"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"tbody"
,[
a
(
"tr"
,{
staticClass
:
"el-table__row"
},[
a
(
"td"
,{
staticClass
:
"el-table_1_column_1"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
disabled
:
"array"
==
t
.
type
||
"object"
==
t
.
type
},
on
:{
blur
:
function
(
a
){
e
.
blurKey
(
t
,
r
)}},
model
:{
value
:
t
.
currentKey
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"currentKey"
,
a
)},
expression
:
"itemValue.currentKey"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_2"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择参数类型"
},
on
:{
change
:
function
(
a
){
e
.
changeType
(
t
.
type
,
t
,
t
.
currentKey
,
t
.
level
)}},
model
:{
value
:
t
.
type
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"type"
,
a
)},
expression
:
"itemValue.type"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"string"
,
value
:
"string"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"number"
,
value
:
"number"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"boolean"
,
value
:
"boolean"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"object"
,
value
:
"object"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"array"
,
value
:
"array"
}})],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
model
:{
value
:
t
.
example
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"example"
,
a
)},
expression
:
"itemValue.example"
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"td"
,{
staticClass
:
"el-table_1_column_3"
,
attrs
:{
rowspan
:
"1"
,
colspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
"array"
==
t
.
type
||
"object"
==
t
.
type
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleAdd
(
t
,
t
.
currentKey
,
s
,
t
.
level
)}}},[
e
.
_v
(
"添加子属性"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
parentKey
,
t
.
currentKey
,
s
,
t
.
level
)}}},[
e
.
_v
(
"删除"
)])],
1
)])])])]),
e
.
_v
(
" "
),
"array"
==
t
.
type
&&
Object
.
keys
(
t
.
items
.
properties
).
length
?
a
(
"body-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
.
items
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"object"
==
t
.
type
&&
Object
.
keys
(
t
.
properties
).
length
?
a
(
"body-row"
,{
key
:
s
+
"122"
+
r
,
staticClass
:
"el-table__row"
,
staticStyle
:{
"padding-left"
:
"10px"
},
attrs
:{
itemData
:
t
}}):
e
.
_e
()]})],
2
)},
staticRenderFns
:[]};
var
G
=
a
(
"VU/8"
)(
U
,
M
,
!
1
,
function
(
e
){
a
(
"1kTN"
)},
"data-v-0344bb74"
,
null
).
exports
,
z
=
{
name
:
"create-front"
,
components
:{
limitTextarea
:
d
.
a
,
limitInput
:
f
.
a
,
headerParam
:
x
,
resultTable
:
G
},
data
:
function
(){
return
{
apiInfoData
:{
resultParams
:{},
sucReturn
:
""
,
errReturn
:
""
,
errCode
:[],
sceneCode
:
""
},
errOptions
:[],
resultParams
:{
type
:
"object"
,
level
:
1
,
properties
:{
root
:{
level
:
2
,
currentKey
:
"root"
,
type
:
"object"
,
defaultVal
:
"val"
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}}}},
rules
:{
sucReturn
:[{
required
:
!
0
,
message
:
"请输入成功返回示例"
,
trigger
:
"blur"
}],
errReturn
:[{
required
:
!
0
,
message
:
"请输入失败返回示例"
,
trigger
:
"blur"
}]},
keyLength
:
1
}},
methods
:{
remoteMethod
:
function
(
e
){
""
!==
e
?
this
.
getErrcodeData
(
e
):
this
.
errOptions
=
[]},
changeErr
:
function
(
e
,
t
,
a
){
e
&&
this
.
errOptions
.
forEach
(
function
(
t
){
e
==
t
.
errorCode
&&
(
a
.
error_info
=
t
.
errorInfo
)})},
toAddItem
:
function
(){
var
e
=
this
.
keyLength
++
;
this
.
$set
(
this
.
resultParams
.
properties
,
"field"
+
e
,{
level
:
2
,
parentKey
:
""
,
type
:
"string"
,
currentKey
:
"field"
+
e
,
defaultVal
:
""
,
description
:
"描述"
,
example
:
"示例"
,
properties
:{}})},
delErrorCode
:
function
(
e
){
this
.
apiInfoData
.
errCode
.
splice
(
e
,
1
)},
addErrCodeItem
:
function
(){
this
.
apiInfoData
.
errCode
.
push
({
error_code
:
""
,
error_info
:
""
,
orig_error_code
:
""
})},
submitback
:
function
(){
this
.
$emit
(
"submitBack"
)},
submitForm
:
Object
(
O
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
handleFrontBackData
()})},
500
),
handleFrontData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
n
,
l
,
p
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
((
a
=
e
).
apiInfoData
.
errCode
.
length
){
t
.
next
=
4
;
break
}
return
y
.
a
.
showmsg
(
"请完善错误码"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
return
r
=
[].
concat
(
k
()(
a
.
apiInfoData
.
errCode
.
map
(
function
(
e
){
return
e
.
error_code
}))),
t
.
next
=
7
,
Object
(
O
.
b
)(
r
);
case
7
:
if
(
!
t
.
sent
){
t
.
next
=
11
;
break
}
return
y
.
a
.
showmsg
(
"原始错误码重复"
,
"warning"
),
t
.
abrupt
(
"return"
,
!
1
);
case
11
:
if
(
s
=
{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
n
=
JSON
.
parse
(
c
()(
a
.
$store
.
state
.
frontInfo
)),
s
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
),
"POST"
==
n
.
requestType
&&
"json"
==
n
.
frontBodyType
){
if
(
o
()(
n
.
bodyJsonData
.
properties
.
root
.
properties
).
length
)
for
(
l
in
n
.
bodyJsonData
.
properties
.
root
.
required
=
[],
n
.
bodyJsonData
.
properties
.
root
.
properties
)
n
.
bodyJsonData
.
properties
.
root
.
properties
[
l
].
check
&&
n
.
bodyJsonData
.
properties
.
root
.
required
.
push
(
l
);
s
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
,
n
.
bodyJsonData
.
properties
)}
if
(
"POST"
==
n
.
requestType
&&
"form"
==
n
.
frontBodyType
&&
(
s
.
properties
=
H
()(
n
.
queryData
.
properties
,
n
.
headerData
.
properties
,
n
.
bodyFormData
.
properties
)),
o
()(
s
.
properties
).
length
)
for
(
p
in
s
.
required
=
[],
s
.
properties
)
s
.
properties
[
p
].
check
&&
s
.
required
.
push
(
p
);
return
t
.
abrupt
(
"return"
,
s
);
case
18
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
handleBackData
:
function
(){
var
e
=
{
type
:
"object"
,
level
:
1
,
properties
:{},
required
:[]},
t
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
backInfo
)),
a
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
frontInfo
));
if
(
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
constData
.
properties
),
"POST"
==
a
.
requestType
&&
"json"
==
a
.
frontBodyType
){
if
(
o
()(
t
.
backBodyJsonData
.
properties
.
root
.
properties
).
length
)
for
(
var
r
in
t
.
backBodyJsonData
.
properties
.
root
.
required
=
[],
t
.
backBodyJsonData
.
properties
.
root
.
properties
)
t
.
backBodyJsonData
.
properties
.
root
.
properties
[
r
].
check
&&
t
.
backBodyJsonData
.
properties
.
root
.
required
.
push
(
r
);
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
backBodyJsonData
.
properties
,
t
.
constData
.
properties
)}
if
(
"POST"
==
a
.
requestType
&&
"form"
==
a
.
frontBodyType
&&
(
e
.
properties
=
H
()(
t
.
backQueryData
.
properties
,
t
.
backHeaderData
.
properties
,
t
.
backBodyFormData
.
properties
,
t
.
constData
.
properties
)),
o
()(
e
.
properties
).
length
)
for
(
var
s
in
e
.
required
=
[],
e
.
properties
)
e
.
properties
[
s
].
check
&&
e
.
required
.
push
(
s
);
return
e
},
handleFrontBackData
:
function
(){
var
e
=
this
;
return
u
()(
i
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
;
return
i
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
e
,
t
.
next
=
3
,
a
.
handleFrontData
();
case
3
:
if
(
r
=
t
.
sent
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
t
.
next
=
8
,
a
.
handleBackData
();
case
8
:
return
s
=
t
.
sent
,
t
.
next
=
11
,
a
.
toPostApi
(
r
,
s
);
case
11
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
toPostApi
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
interfaceName
:
a
.
$store
.
state
.
baseInfo
.
interfaceName
,
interfaceGroupId
:
a
.
$route
.
query
.
interfaceGroupId
,
interfaceUrl
:
a
.
$store
.
state
.
baseInfo
.
interfaceUrl
,
interfaceDescribe
:
a
.
$store
.
state
.
baseInfo
.
interfaceDescribe
,
projectId
:
a
.
$route
.
query
.
projectId
,
target
:
a
.
$store
.
state
.
baseInfo
.
target
,
optType
:
a
.
$store
.
state
.
baseInfo
.
optType
,
protocol
:
a
.
$store
.
state
.
frontInfo
.
protocol
,
requestType
:
a
.
$store
.
state
.
frontInfo
.
requestType
,
frontBodyType
:
a
.
$store
.
state
.
frontInfo
.
frontBodyType
,
frontParams
:
c
()(
e
),
interfaceType
:
a
.
$store
.
state
.
backInfo
.
interfaceType
,
version
:
a
.
$store
.
state
.
backInfo
.
version
,
backendRequestType
:
a
.
$store
.
state
.
backInfo
.
backendRequestType
,
backendHttpPath
:
a
.
$store
.
state
.
backInfo
.
backendHttpPath
,
dubboInterface
:
a
.
$store
.
state
.
backInfo
.
dubboInterface
,
dubboMethod
:
a
.
$store
.
state
.
backInfo
.
dubboMethod
,
dubboVersion
:
a
.
$store
.
state
.
backInfo
.
dubboVersion
,
proxyCode
:
a
.
$store
.
state
.
backInfo
.
proxyCode
,
timeout
:
a
.
$store
.
state
.
backInfo
.
timeout
,
endParams
:
c
()(
t
),
resultParams
:
c
()(
a
.
resultParams
),
sucReturn
:
a
.
apiInfoData
.
sucReturn
,
errReturn
:
a
.
apiInfoData
.
errReturn
,
errCode
:
c
()(
a
.
apiInfoData
.
errCode
),
sceneCode
:
a
.
apiInfoData
.
sceneCode
,
interfaceId
:
a
.
$store
.
state
.
baseInfo
.
interfaceId
,
interfaceVersionId
:
a
.
$store
.
state
.
baseInfo
.
interfaceVersionId
};
Object
(
b
.
b
)(
a
.
$store
.
state
.
baseInfo
.
interfaceId
?
"/gateway-manage/update-api"
:
"/gateway-manage/create-api"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
"0000"
==
t
.
code
)
return
y
.
a
.
showmsg
(
"保存成功"
,
"success"
),
a
.
$store
.
dispatch
(
"clearApiData"
),
void
a
.
$router
.
push
(
"/apiListManage?interfaceId="
+
t
.
result
.
interfaceId
+
"&interfaceName="
+
t
.
result
.
interfaceName
);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getErrcodeData
:
function
(
e
){
var
t
=
this
,
a
=
{
pageNum
:
1
,
pageSize
:
100
,
search
:
e
};
Object
(
b
.
b
)(
"/gateway-manage/page-error-setting"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
"0000"
!=
a
.
code
?
h
.
a
.
errorMsg
(
a
):
t
.
errOptions
=
a
.
result
.
result
||
[]}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleStoreData
:
function
(){
this
.
apiInfoData
=
JSON
.
parse
(
c
()(
this
.
$store
.
state
.
resultInfo
)),
this
.
resultParams
=
this
.
apiInfoData
.
resultParams
}},
mounted
:
function
(){
this
.
getErrcodeData
(),
this
.
$route
.
query
.
interfaceId
&&
this
.
handleStoreData
()}},
W
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"result-info-show border-box"
},[
a
(
"el-form"
,{
ref
:
"resultForm"
,
attrs
:{
"label-width"
:
"114px"
,
model
:
e
.
apiInfoData
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"返回类型:"
}},[
e
.
_v
(
"json"
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"返回参数:"
}},[
a
(
"div"
,{
staticClass
:
"body-param-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
}},[
a
(
"div"
,{
staticClass
:
"el-table__header-wrapper"
},[
a
(
"table"
,{
staticClass
:
"el-table__header"
,
staticStyle
:{
width
:
"100%"
,
"table-layout"
:
"fixed"
},
attrs
:{
cellspacing
:
"0"
,
cellpadding
:
"0"
,
border
:
"0"
}},[
a
(
"thead"
,{
staticClass
:
"has-gutter"
},[
a
(
"tr"
,{},[
a
(
"th"
,{
staticClass
:
"el-table_1_column_1 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数名"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_2 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"参数类型"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_5 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"示例值"
)])]),
e
.
_v
(
" "
),
a
(
"th"
,{
staticClass
:
"el-table_1_column_7 is-leaf"
,
attrs
:{
colspan
:
"1"
,
rowspan
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"cell"
},[
e
.
_v
(
"操作"
)])])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-table__body-wrapper is-scrolling-none"
},[
a
(
"div"
,{
staticClass
:
"table-content"
},[
a
(
"result-table"
,{
ref
:
"resultBodyTable"
,
attrs
:{
itemData
:
e
.
resultParams
},
on
:{
refreshData
:
e
.
refreshData
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line text-center"
,
on
:{
click
:
e
.
toAddItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加行"
)])])],
1
)])])])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"错误码映射:"
,
prop
:
"errCode"
}},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
apiInfoData
.
errCode
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"原始错误码"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入原始错误码"
},
model
:{
value
:
t
.
row
.
orig_error_code
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"orig_error_code"
,
a
)},
expression
:
"scope.row.orig_error_code"
}})],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误码映射"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择映射错误码"
},
on
:{
change
:
function
(
a
){
e
.
changeErr
(
a
,
t
.
$index
,
t
.
row
)}},
model
:{
value
:
t
.
row
.
error_code
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"error_code"
,
a
)},
expression
:
"scope.row.error_code"
}},
e
.
_l
(
e
.
errOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
errorCode
,
attrs
:{
label
:
e
.
errorCode
,
value
:
e
.
errorCode
}})}))],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误信息"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入错误信息"
},
model
:{
value
:
t
.
row
.
error_info
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"error_info"
,
a
)},
expression
:
"scope.row.error_info"
}})],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"cell"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
delErrorCode
(
t
.
$index
)}}},[
e
.
_v
(
"删除"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"add-line add-err-line text-center"
,
on
:{
click
:
e
.
addErrCodeItem
}},[
a
(
"i"
,{
staticClass
:
"el-icon-circle-plus-outline color-5584FF"
}),
a
(
"span"
,{
staticClass
:
"color-5584FF font-14 p-l-4"
},[
e
.
_v
(
"添加错误码配置"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"成功返回示例:"
,
prop
:
"sucReturn"
}},[
a
(
"el-input"
,{
staticClass
:
"w-389"
,
attrs
:{
type
:
"textarea"
,
rows
:
3
,
placeholder
:
"请输入内容"
},
model
:{
value
:
e
.
apiInfoData
.
sucReturn
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"sucReturn"
,
t
)},
expression
:
"apiInfoData.sucReturn"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"失败返回示例:"
,
prop
:
"errReturn"
}},[
a
(
"el-input"
,{
staticClass
:
"w-389"
,
attrs
:{
type
:
"textarea"
,
rows
:
3
,
placeholder
:
"请输入内容"
},
model
:{
value
:
e
.
apiInfoData
.
errReturn
,
callback
:
function
(
t
){
e
.
$set
(
e
.
apiInfoData
,
"errReturn"
,
t
)},
expression
:
"apiInfoData.errReturn"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitback
}},[
e
.
_v
(
"上一步"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"resultForm"
)}}},[
e
.
_v
(
"完 成"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
Y
=
a
(
"VU/8"
)(
z
,
W
,
!
1
,
function
(
e
){
a
(
"45te"
)},
"data-v-fbb40e3e"
,
null
).
exports
,
X
=
{
name
:
"createApi"
,
components
:{
navBread
:
r
.
a
,
createBase
:
_
,
createFront
:
F
,
createBackend
:
A
,
createResult
:
Y
},
data
:
function
(){
return
{
navPath
:[{
name
:
"API管理"
,
path
:
"/apiProgram"
},{
name
:
"API列表"
,
path
:
"/apiList"
},{
name
:
this
.
$route
.
query
.
interfaceId
?
"编辑API"
:
"创建API"
,
path
:
""
}],
activeStep
:
1
,
stepData
:[{
stepName
:
"基础信息"
},{
stepName
:
"前端配置"
},{
stepName
:
"后端配置"
},{
stepName
:
"定义返回"
}],
projectId
:
this
.
$route
.
query
.
projectId
,
interfaceGroupId
:
this
.
$route
.
query
.
interfaceGroupId
}},
methods
:{
submitNext
:
function
(){
this
.
activeStep
++
},
submitBack
:
function
(){
this
.
activeStep
--
}},
watch
:{
$route
:{
handler
:
function
(
e
,
t
){},
deep
:
!
0
}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
22
)},
beforeDestroy
:
function
(){
this
.
$store
.
dispatch
(
"clearApiData"
)}},
Z
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"api-body-content border-box"
},[
a
(
"div"
,{
staticClass
:
"common-nav"
},[
a
(
"nav-bread"
,{
attrs
:{
navPath
:
e
.
navPath
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-body-main common-body-main border-box"
,
staticStyle
:{
height
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"api-main-content border-box"
},[
a
(
"div"
,{
staticClass
:
"create-api-body"
},[
a
(
"div"
,{
staticClass
:
"create-api-step font-0"
},
e
.
_l
(
e
.
stepData
,
function
(
t
,
r
){
return
a
(
"div"
,{
key
:
r
+
t
.
stepName
,
class
:[
"api-step-cell inline-block border-box"
,
r
+
1
==
e
.
activeStep
?
"active-step"
:
""
],
style
:{
width
:
100
/
e
.
stepData
.
length
+
"%"
,
"max-width"
:
100
/
e
.
stepData
.
length
+
"%"
}},[
a
(
"div"
,{
staticClass
:
"api-step-cell_inner border-box"
},[
r
<
e
.
stepData
.
length
-
1
?
a
(
"div"
,{
staticClass
:
"api-step-cell_line"
}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-step-cell_title"
},[
a
(
"div"
,{
staticClass
:
"el-step__icon is-text inline-block"
},[
a
(
"div"
,{
staticClass
:
"el-step__icon-inner font-14"
},[
e
.
_v
(
e
.
_s
(
r
+
1
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"api-step-cell_txt p-lr-10 bg-fff inline-block font-16"
},[
e
.
_v
(
e
.
_s
(
t
.
stepName
))])])])])})),
e
.
_v
(
" "
),
"1"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-base"
},[
a
(
"create-base"
,{
on
:{
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"2"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-front"
},[
a
(
"create-front"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"3"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-back"
},[
a
(
"create-backend"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"4"
==
e
.
activeStep
?
a
(
"div"
,{
staticClass
:
"create-api-result"
},[
a
(
"create-result"
,{
on
:{
submitBack
:
e
.
submitBack
,
submitNext
:
e
.
submitNext
}})],
1
):
e
.
_e
()])])])])},
staticRenderFns
:[]};
var
ee
=
a
(
"VU/8"
)(
X
,
Z
,
!
1
,
function
(
e
){
a
(
"jQHk"
)},
"data-v-3c0886b8"
,
null
);
t
.
default
=
ee
.
exports
},
ZD2h
:
function
(
e
,
t
){},
"c/Tr"
:
function
(
e
,
t
,
a
){
e
.
exports
=
{
default
:
a
(
"5zde"
),
__esModule
:
!
0
}},
e1qm
:
function
(
e
,
t
){},
exGp
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
r
,
s
=
a
(
"//Fk"
),
o
=
(
r
=
s
)
&&
r
.
__esModule
?
r
:{
default
:
r
};
t
.
default
=
function
(
e
){
return
function
(){
var
t
=
e
.
apply
(
this
,
arguments
);
return
new
o
.
default
(
function
(
e
,
a
){
return
function
r
(
s
,
n
){
try
{
var
i
=
t
[
s
](
n
),
l
=
i
.
value
}
catch
(
e
){
return
void
a
(
e
)}
if
(
!
i
.
done
)
return
o
.
default
.
resolve
(
l
).
then
(
function
(
e
){
r
(
"next"
,
e
)},
function
(
e
){
r
(
"throw"
,
e
)});
e
(
l
)}(
"next"
)})}}},
fBQ2
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"evD5"
),
s
=
a
(
"X8DO"
);
e
.
exports
=
function
(
e
,
t
,
a
){
t
in
e
?
r
.
f
(
e
,
t
,
s
(
0
,
a
)):
e
[
t
]
=
a
}},
jQHk
:
function
(
e
,
t
){},
jcVe
:
function
(
e
,
t
){},
jyFz
:
function
(
e
,
t
,
a
){
var
r
=
function
(){
return
this
}()
||
Function
(
"return this"
)(),
s
=
r
.
regeneratorRuntime
&&
Object
.
getOwnPropertyNames
(
r
).
indexOf
(
"regeneratorRuntime"
)
>=
0
,
o
=
s
&&
r
.
regeneratorRuntime
;
if
(
r
.
regeneratorRuntime
=
void
0
,
e
.
exports
=
a
(
"SldL"
),
s
)
r
.
regeneratorRuntime
=
o
;
else
try
{
delete
r
.
regeneratorRuntime
}
catch
(
e
){
r
.
regeneratorRuntime
=
void
0
}},
qyJz
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"+ZMJ"
),
s
=
a
(
"kM2E"
),
o
=
a
(
"sB3e"
),
n
=
a
(
"msXi"
),
i
=
a
(
"Mhyx"
),
l
=
a
(
"QRG4"
),
c
=
a
(
"fBQ2"
),
p
=
a
(
"3fs2"
);
s
(
s
.
S
+
s
.
F
*!
a
(
"dY0y"
)(
function
(
e
){
Array
.
from
(
e
)}),
"Array"
,{
from
:
function
(
e
){
var
t
,
a
,
s
,
u
,
d
=
o
(
e
),
f
=
"function"
==
typeof
this
?
this
:
Array
,
b
=
arguments
.
length
,
y
=
b
>
1
?
arguments
[
1
]:
void
0
,
h
=
void
0
!==
y
,
m
=
0
,
v
=
p
(
d
);
if
(
h
&&
(
y
=
r
(
y
,
b
>
2
?
arguments
[
2
]:
void
0
,
2
)),
void
0
==
v
||
f
==
Array
&&
i
(
v
))
for
(
a
=
new
f
(
t
=
l
(
d
.
length
));
t
>
m
;
m
++
)
c
(
a
,
m
,
h
?
y
(
d
[
m
],
m
):
d
[
m
]);
else
for
(
u
=
v
.
call
(
d
),
a
=
new
f
;
!
(
s
=
u
.
next
()).
done
;
m
++
)
c
(
a
,
m
,
h
?
n
(
u
,
y
,[
s
.
value
,
m
],
!
0
):
s
.
value
);
return
a
.
length
=
m
,
a
}})}});
\ No newline at end of file
dist/static/js/app.
f1acc3ac0ff23ced6285
.js
→
dist/static/js/app.
6fffa4d913c25914075b
.js
View file @
7308a157
webpackJsonp
([
20
],{
"/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
s
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
t
(
"lRwf"
),
p
=
t
.
n
(
c
),
g
=
t
(
"pRNm"
),
f
=
t
.
n
(
g
),
m
=
t
(
"5tgt"
),
l
=
t
.
n
(
m
);
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
:
"/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
:
"/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"
),
w
=
t
.
n
(
M
),
k
=
t
(
"mtWM"
),
D
=
t
.
n
(
k
),
R
=
t
(
"bOdI"
),
A
=
t
.
n
(
R
),
P
=
t
(
"mvHQ"
),
b
=
t
.
n
(
P
),
H
=
t
(
"SJI6"
),
E
=
t
.
n
(
H
);
p
.
a
.
use
(
E
.
a
);
var
L
=
new
E
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{}},
mutations
:(
d
=
{},
A
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
A
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
A
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
A
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
A
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
b
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
A
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
A
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
A
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
A
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
A
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
A
()(
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
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
j
=
(
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
){
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
){
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
){
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
(
w
.
a
,
D
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
j
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
j
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
L
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
13
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
8
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
4
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
11
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
9
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
15
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
7
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
12
],
"./index/index.vue"
:[
"JXTs"
,
0
,
6
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
17
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
16
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
18
],
"./login/index.vue"
:[
"T+/8"
,
0
,
5
]};
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
]);
webpackJsonp
([
20
],{
"/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
s
=
t
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
u
,
!
1
,
function
(
e
){
t
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
t
(
"lRwf"
),
p
=
t
.
n
(
c
),
f
=
t
(
"pRNm"
),
g
=
t
.
n
(
f
),
m
=
t
(
"5tgt"
),
l
=
t
.
n
(
m
);
p
.
a
.
use
(
g
.
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
:
"/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
:
"/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
g
.
a
({
routes
:
h
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
I
=
t
(
"zL8q"
),
S
=
t
.
n
(
I
),
M
=
t
(
"Rf8U"
),
w
=
t
.
n
(
M
),
k
=
t
(
"mtWM"
),
D
=
t
.
n
(
k
),
R
=
t
(
"bOdI"
),
A
=
t
.
n
(
R
),
P
=
t
(
"mvHQ"
),
b
=
t
.
n
(
P
),
H
=
t
(
"SJI6"
),
E
=
t
.
n
(
H
);
p
.
a
.
use
(
E
.
a
);
var
L
=
new
E
.
a
.
Store
({
state
:{
userInfo
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
baseInfo
:{},
frontInfo
:{},
backInfo
:{},
resultInfo
:{}},
mutations
:(
d
=
{},
A
()(
d
,
"login"
,
function
(
e
,
n
){
sessionStorage
.
token
=
n
,
e
.
token
=
n
}),
A
()(
d
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
A
()(
d
,
"title"
,
function
(
e
,
n
){
e
.
title
=
n
}),
A
()(
d
,
"show"
,
function
(
e
,
n
){
e
.
show
=
n
}),
A
()(
d
,
"saveUser"
,
function
(
e
,
n
){
localStorage
.
removeItem
(
"userInfo"
),
localStorage
.
setItem
(
"userInfo"
,
b
()(
n
)),
e
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))}),
A
()(
d
,
"clearUser"
,
function
(
e
){
e
.
userInfo
=
{},
localStorage
.
getItem
(
"userInfo"
)
&&
localStorage
.
removeItem
(
"userInfo"
)}),
A
()(
d
,
"saveBase"
,
function
(
e
,
n
){
e
.
baseInfo
=
n
}),
A
()(
d
,
"saveFront"
,
function
(
e
,
n
){
e
.
frontInfo
=
n
}),
A
()(
d
,
"saveBack"
,
function
(
e
,
n
){
e
.
backInfo
=
n
}),
A
()(
d
,
"saveResult"
,
function
(
e
,
n
){
e
.
resultInfo
=
n
}),
A
()(
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
)},
clearApiData
:
function
(
e
,
n
){
e
.
commit
(
"clearData"
)}}}),
j
=
(
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
(
w
.
a
,
D
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
a
()(
j
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
j
[
e
])}),
new
Vue
({
el
:
"#app"
,
router
:
x
,
store
:
L
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
n
,
t
){
var
o
=
{
"./errorPage/403.vue"
:[
"6XGN"
,
13
],
"./errorPage/404.vue"
:[
"AejC"
,
14
],
"./errorPage/500.vue"
:[
"FskK"
,
10
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/apiList.vue"
:[
"tiLT"
,
0
,
8
],
"./index/apiListManage.vue"
:[
"dqHC"
,
0
,
4
],
"./index/apiListManageShow.vue"
:[
"r4m9"
,
0
,
3
],
"./index/apiProgram.vue"
:[
"kAqA"
,
0
,
11
],
"./index/apiProgramGroup.vue"
:[
"G8l+"
,
0
,
9
],
"./index/createApi.vue"
:[
"Yns/"
,
0
,
2
],
"./index/createEnvSet.vue"
:[
"vm6Q"
,
0
,
15
],
"./index/envManage.vue"
:[
"iGM1"
,
0
,
7
],
"./index/errorCode.vue"
:[
"SGyq"
,
0
,
12
],
"./index/index.vue"
:[
"JXTs"
,
0
,
6
],
"./index/overview.vue"
:[
"EBdF"
,
0
,
17
],
"./index/pluginManage.vue"
:[
"K0rJ"
,
0
,
16
],
"./index/releaseRecords.vue"
:[
"OEJD"
,
0
,
18
],
"./login/index.vue"
:[
"T+/8"
,
0
,
5
]};
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
\ No newline at end of file
dist/static/js/manifest.
a97a671a0bd49ff1e018
.js
→
dist/static/js/manifest.
1bad64526a7edeaffa2c
.js
View file @
7308a157
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
b
.
length
;)
b
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
a
.
nc
&&
c
.
setAttribute
(
"nonce"
,
a
.
nc
),
c
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"3fb6634d557a9813d379"
,
3
:
"8e100d29247c28c8b5c4"
,
4
:
"e147fece7b5af9883b95"
,
5
:
"8dade12caa32853912f4"
,
6
:
"7e47fc9750107d0d7600"
,
7
:
"6c3d409359dc37c88d9a"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"3d53e5aa355f2b62e040"
,
18
:
"da9b2eee0a0620668dc6"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
d
,
o
.
appendChild
(
c
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
o
,
c
){
for
(
var
f
,
d
,
i
,
u
=
0
,
b
=
[];
u
<
r
.
length
;
u
++
)
d
=
r
[
u
],
t
[
d
]
&&
b
.
push
(
t
[
d
][
0
]),
t
[
d
]
=
0
;
for
(
f
in
o
)
Object
.
prototype
.
hasOwnProperty
.
call
(
o
,
f
)
&&
(
e
[
f
]
=
o
[
f
]);
for
(
n
&&
n
(
r
,
o
,
c
);
b
.
length
;)
b
.
shift
()();
if
(
c
)
for
(
u
=
0
;
u
<
c
.
length
;
u
++
)
i
=
a
(
a
.
s
=
c
[
u
]);
return
i
};
var
r
=
{},
t
=
{
21
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
a
.
nc
&&
c
.
setAttribute
(
"nonce"
,
a
.
nc
),
c
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d2aeaa955782b02febee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"2363fee75c7a17191177"
,
3
:
"8e100d29247c28c8b5c4"
,
4
:
"e147fece7b5af9883b95"
,
5
:
"8dade12caa32853912f4"
,
6
:
"7e47fc9750107d0d7600"
,
7
:
"6c3d409359dc37c88d9a"
,
8
:
"6f4aba6d804414b554f1"
,
9
:
"1a44376fa612d3e18d19"
,
10
:
"638039a7b39908980436"
,
11
:
"65b3d46525bbb966f996"
,
12
:
"cb37adc4b9f63c81ace0"
,
13
:
"3f70345d9260ae04ca59"
,
14
:
"9825bb69e60b8030c230"
,
15
:
"2d238e050fe99b74287d"
,
16
:
"71781076180fa67766a9"
,
17
:
"3d53e5aa355f2b62e040"
,
18
:
"da9b2eee0a0620668dc6"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
d
,
o
.
appendChild
(
c
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"./"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/createApi/back-constant.vue
View file @
7308a157
...
@@ -110,6 +110,7 @@ export default {
...
@@ -110,6 +110,7 @@ export default {
isBackendField
:
0
,
//是否后端字段
isBackendField
:
0
,
//是否后端字段
defaultVal
:
'val'
,
//默认值
defaultVal
:
'val'
,
//默认值
isRootKey
:
0
,
//是否是后端参数字段
isRootKey
:
0
,
//是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
//后端参数字段
rootKey
:
''
,
//后端参数字段
objectClass
:
''
,
//如果是object 并且是dubbo
objectClass
:
''
,
//如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
@@ -154,6 +155,7 @@ export default {
...
@@ -154,6 +155,7 @@ export default {
isBackendField
:
0
,
//是否后端字段
isBackendField
:
0
,
//是否后端字段
defaultVal
:
''
,
//默认值
defaultVal
:
''
,
//默认值
isRootKey
:
0
,
//是否是后端参数字段
isRootKey
:
0
,
//是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
//后端参数字段
rootKey
:
''
,
//后端参数字段
objectClass
:
''
,
//如果是object 并且是dubbo
objectClass
:
''
,
//如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
...
src/components/createApi/back-table-right.vue
View file @
7308a157
...
@@ -13,7 +13,7 @@ import backTableRight from '@/components/createApi/back-table-right.vue';
...
@@ -13,7 +13,7 @@ import backTableRight from '@/components/createApi/back-table-right.vue';
<div
v-if=
"itemValue.type == 'object' || itemValue.type == 'array'"
class=
"cell"
><i
class=
"el-icon-minus"
></i></div>
<div
v-if=
"itemValue.type == 'object' || itemValue.type == 'array'"
class=
"cell"
><i
class=
"el-icon-minus"
></i></div>
</td>
</td>
<td
rowspan=
"1"
colspan=
"1"
class=
"el-table_1_column_1"
>
<td
rowspan=
"1"
colspan=
"1"
class=
"el-table_1_column_1"
>
<div
class=
"cell"
><el-checkbox
v-model=
"itemValue.isRootKey"
:disabled=
"itemData.isRootKey"
@
change=
"changeCheck(itemValue, itemName)"
></el-checkbox></div>
<div
class=
"cell"
><el-checkbox
v-model=
"itemValue.isRootKey"
:disabled=
"itemData.isRootKey
Flag
"
@
change=
"changeCheck(itemValue, itemName)"
></el-checkbox></div>
</td>
</td>
<td
v-if=
"interfaceType == '0'"
rowspan=
"1"
colspan=
"1"
class=
"el-table_1_column_1"
>
<td
v-if=
"interfaceType == '0'"
rowspan=
"1"
colspan=
"1"
class=
"el-table_1_column_1"
>
<div
class=
"cell"
>
<div
class=
"cell"
>
...
@@ -92,34 +92,40 @@ export default {
...
@@ -92,34 +92,40 @@ export default {
* 改变checkbox
* 改变checkbox
*/
*/
async
changeCheck
(
obj
,
key
)
{
async
changeCheck
(
obj
,
key
)
{
console
.
log
(
obj
,
key
);
const
that
=
this
;
const
that
=
this
;
if
(
obj
.
type
==
'object'
&&
Object
.
keys
(
obj
.
properties
).
length
)
{
if
(
obj
.
type
==
'object'
&&
Object
.
keys
(
obj
.
properties
).
length
)
{
obj
.
isRootKeyFlag
=
false
;
for
(
let
k
in
obj
.
properties
)
{
for
(
let
k
in
obj
.
properties
)
{
obj
.
properties
[
k
].
isRootKey
=
true
;
obj
.
properties
[
k
].
isRootKeyFlag
=
true
;
if
(
obj
.
properties
[
k
].
type
==
'object'
&&
Object
.
keys
(
obj
[
k
].
properties
).
length
)
{
that
.
$set
(
obj
.
properties
[
k
],
'isRootKeyFlag'
,
true
);
await
that
.
checkArrObjData
(
obj
[
k
].
properties
);
if
(
obj
.
properties
[
k
].
type
==
'object'
&&
Object
.
keys
(
obj
.
properties
[
k
].
properties
).
length
)
{
await
that
.
checkArrObjData
(
obj
.
properties
[
k
].
properties
);
}
}
}
}
}
}
if
(
obj
.
type
==
'array'
&&
Object
.
keys
(
obj
.
items
.
properties
).
length
)
{
if
(
obj
.
type
==
'array'
&&
Object
.
keys
(
obj
.
items
.
properties
).
length
)
{
for
(
let
k
in
obj
.
items
.
properties
)
{
obj
.
isRootKeyFlag
=
false
;
obj
.
items
.
properties
[
k
].
isRootKey
=
true
;
for
(
let
key
in
obj
.
items
.
properties
)
{
if
(
obj
.
properties
[
k
].
type
==
'array'
&&
Object
.
keys
(
obj
[
k
].
items
.
properties
).
length
)
{
obj
.
items
.
properties
[
key
].
isRootKeyFlag
=
true
;
await
that
.
checkArrObjData
(
obj
[
k
].
items
.
properties
);
if
(
obj
.
properties
[
key
].
type
==
'array'
&&
Object
.
keys
(
obj
.
items
.
properties
[
key
].
properties
).
length
)
{
await
that
.
checkArrObjData
(
obj
.
items
.
properties
[
key
].
properties
);
}
}
}
}
}
}
that
.
$forceUpdate
();
},
},
async
checkArrObjData
(
item
)
{
async
checkArrObjData
(
item
)
{
const
that
=
this
;
const
that
=
this
;
for
(
let
k
in
item
)
{
for
(
let
k
in
item
)
{
item
[
k
].
isRootKey
=
true
;
item
[
k
].
isRootKey
Flag
=
true
;
if
(
item
[
k
].
type
==
'object'
&&
Object
.
keys
(
item
[
k
].
properties
).
length
)
{
if
(
item
[
k
].
type
==
'object'
&&
Object
.
keys
(
item
[
k
].
properties
).
length
)
{
item
[
k
].
isRootKey
=
true
;
item
[
k
].
isRootKey
Flag
=
true
;
await
that
.
checkArrObjData
(
item
[
k
].
properties
);
await
that
.
checkArrObjData
(
item
[
k
].
properties
);
}
}
if
(
item
[
k
].
type
==
'array'
&&
Object
.
keys
(
item
[
k
].
items
.
properties
).
length
)
{
if
(
item
[
k
].
type
==
'array'
&&
Object
.
keys
(
item
[
k
].
items
.
properties
).
length
)
{
item
[
k
].
isRootKey
=
true
;
item
[
k
].
isRootKey
Flag
=
true
;
await
that
.
checkArrObjData
(
item
[
k
].
items
.
properties
);
await
that
.
checkArrObjData
(
item
[
k
].
items
.
properties
);
}
}
}
}
...
...
src/components/createApi/body-param.vue
View file @
7308a157
...
@@ -133,6 +133,7 @@ export default {
...
@@ -133,6 +133,7 @@ export default {
isBackendField
:
0
,
//是否后端字段
isBackendField
:
0
,
//是否后端字段
defaultVal
:
''
,
//默认值
defaultVal
:
''
,
//默认值
isRootKey
:
0
,
//是否是后端参数字段
isRootKey
:
0
,
//是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
//后端参数字段
rootKey
:
''
,
//后端参数字段
objectClass
:
''
,
//如果是object 并且是dubbo
objectClass
:
''
,
//如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
@@ -163,6 +164,7 @@ export default {
...
@@ -163,6 +164,7 @@ export default {
isBackendField
:
0
,
// 是否后端字段
isBackendField
:
0
,
// 是否后端字段
defaultVal
:
''
,
// 默认值
defaultVal
:
''
,
// 默认值
isRootKey
:
0
,
// 是否是后端参数字段
isRootKey
:
0
,
// 是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
// 后端参数字段
rootKey
:
''
,
// 后端参数字段
objectClass
:
''
,
// 如果是object 并且是dubbo
objectClass
:
''
,
// 如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
@@ -185,6 +187,7 @@ export default {
...
@@ -185,6 +187,7 @@ export default {
isBackendField
:
0
,
// 是否后端字段
isBackendField
:
0
,
// 是否后端字段
defaultVal
:
''
,
// 默认值
defaultVal
:
''
,
// 默认值
isRootKey
:
0
,
// 是否是后端参数字段
isRootKey
:
0
,
// 是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
// 后端参数字段
rootKey
:
''
,
// 后端参数字段
objectClass
:
''
,
// 如果是object 并且是dubbo
objectClass
:
''
,
// 如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
...
src/components/createApi/create-backend.vue
View file @
7308a157
...
@@ -367,11 +367,11 @@ export default {
...
@@ -367,11 +367,11 @@ export default {
async
handleFrontData
()
{
async
handleFrontData
()
{
const
that
=
this
;
const
that
=
this
;
let
frontInfo
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
let
frontInfo
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
//
console.log('header 数据:', frontInfo);
console
.
log
(
'header 数据:'
,
frontInfo
);
// header 数据
// header 数据
if
(
Object
.
keys
(
frontInfo
.
headerData
).
length
)
{
if
(
Object
.
keys
(
frontInfo
.
headerData
).
length
)
{
for
(
let
key
in
frontInfo
.
headerData
.
properties
)
{
for
(
let
key
in
frontInfo
.
headerData
.
properties
)
{
frontInfo
.
headerData
.
properties
[
key
][
'isRootKey'
]
=
true
;
// 是否是后端参数字段
frontInfo
.
headerData
.
properties
[
key
][
'isRootKey'
]
=
frontInfo
.
headerData
.
properties
[
key
][
'isRootKey'
]
!==
''
?
frontInfo
.
headerData
.
properties
[
key
][
'isRootKey'
]
:
true
;
// 是否是后端参数字段
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
headerData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
headerData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
headerData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
headerData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
headerData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
headerData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
frontInfo
.
headerData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
...
@@ -384,7 +384,7 @@ export default {
...
@@ -384,7 +384,7 @@ export default {
// query 数据
// query 数据
if
(
Object
.
keys
(
frontInfo
.
queryData
).
length
)
{
if
(
Object
.
keys
(
frontInfo
.
queryData
).
length
)
{
for
(
let
key
in
frontInfo
.
queryData
.
properties
)
{
for
(
let
key
in
frontInfo
.
queryData
.
properties
)
{
frontInfo
.
queryData
.
properties
[
key
][
'isRootKey'
]
=
true
;
// 是否是后端参数字段
frontInfo
.
queryData
.
properties
[
key
][
'isRootKey'
]
=
frontInfo
.
queryData
.
properties
[
key
][
'isRootKey'
]
!==
''
?
frontInfo
.
queryData
.
properties
[
key
][
'isRootKey'
]
:
true
;
// 是否是后端参数字段
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
queryData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
queryData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
queryData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
queryData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
queryData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
queryData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
frontInfo
.
queryData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
...
@@ -397,7 +397,7 @@ export default {
...
@@ -397,7 +397,7 @@ export default {
// body form 数据
// body form 数据
if
(
Object
.
keys
(
frontInfo
.
bodyFormData
).
length
)
{
if
(
Object
.
keys
(
frontInfo
.
bodyFormData
).
length
)
{
for
(
let
key
in
frontInfo
.
bodyFormData
.
properties
)
{
for
(
let
key
in
frontInfo
.
bodyFormData
.
properties
)
{
frontInfo
.
bodyFormData
.
properties
[
key
][
'isRootKey'
]
=
true
;
// 是否是后端参数字段
frontInfo
.
bodyFormData
.
properties
[
key
][
'isRootKey'
]
=
frontInfo
.
bodyFormData
.
properties
[
key
][
'isRootKey'
]
!==
''
?
frontInfo
.
bodyFormData
.
properties
[
key
][
'isRootKey'
]
:
true
;
// 是否是后端参数字段
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
bodyFormData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
bodyFormData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
bodyFormData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
bodyFormData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
bodyFormData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
bodyFormData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
frontInfo
.
bodyFormData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
...
@@ -410,7 +410,7 @@ export default {
...
@@ -410,7 +410,7 @@ export default {
// body json 数据
// body json 数据
if
(
Object
.
keys
(
frontInfo
.
bodyJsonData
).
length
)
{
if
(
Object
.
keys
(
frontInfo
.
bodyJsonData
).
length
)
{
for
(
let
key
in
frontInfo
.
bodyJsonData
.
properties
)
{
for
(
let
key
in
frontInfo
.
bodyJsonData
.
properties
)
{
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isRootKey'
]
=
true
;
// 是否是后端参数字段
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isRootKey'
]
=
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isRootKey'
]
!==
''
?
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isRootKey'
]
:
true
;
// 是否是后端参数字段
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
=
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
?
frontInfo
.
bodyJsonData
.
properties
[
key
][
'rootKey'
]
:
key
;
// 后端参数字段
frontInfo
.
bodyJsonData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
bodyJsonData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
bodyJsonData
.
properties
[
key
][
'backendOriginType'
]
=
frontInfo
.
bodyJsonData
.
properties
[
key
][
'backendOriginType'
];
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
frontInfo
.
bodyJsonData
.
properties
[
key
][
'isBackendField'
]
=
1
;
// 是否后端字段
...
@@ -434,15 +434,16 @@ export default {
...
@@ -434,15 +434,16 @@ export default {
async
handleArrObjData
(
item
)
{
async
handleArrObjData
(
item
)
{
const
that
=
this
;
const
that
=
this
;
for
(
let
childKey
in
item
)
{
for
(
let
childKey
in
item
)
{
item
[
childKey
][
'isRootKey'
]
=
false
;
// 是否是后端参数字段
item
[
childKey
][
'isRootKey'
]
=
item
[
childKey
][
'isRootKey'
]
!==
''
?
item
[
childKey
][
'isRootKey'
]
:
true
;
// 是否是后端参数字段
item
[
childKey
][
'isRootKeyFlag'
]
=
true
;
// 是否是后端参数字段
item
[
childKey
][
'rootKey'
]
=
item
[
childKey
][
'rootKey'
]
?
item
[
childKey
][
'rootKey'
]
:
childKey
;
item
[
childKey
][
'rootKey'
]
=
item
[
childKey
][
'rootKey'
]
?
item
[
childKey
][
'rootKey'
]
:
childKey
;
item
[
childKey
][
'isBackendField'
]
=
1
;
// 是否后端字段
item
[
childKey
][
'isBackendField'
]
=
1
;
// 是否后端字段
if
(
item
[
childKey
].
type
==
'array'
&&
Object
.
keys
(
item
[
childKey
].
items
.
properties
).
length
){
if
(
item
[
childKey
].
type
==
'array'
&&
Object
.
keys
(
item
[
childKey
].
items
.
properties
).
length
){
item
[
childKey
][
'isRootKey'
]
=
true
;
item
[
childKey
][
'isRootKey
Flag
'
]
=
true
;
await
that
.
handleArrObjData
(
item
[
childKey
].
items
.
properties
);
await
that
.
handleArrObjData
(
item
[
childKey
].
items
.
properties
);
}
}
if
(
item
[
childKey
].
type
==
'object'
&&
Object
.
keys
(
item
[
childKey
].
properties
).
length
)
{
if
(
item
[
childKey
].
type
==
'object'
&&
Object
.
keys
(
item
[
childKey
].
properties
).
length
)
{
item
[
childKey
][
'isRootKey'
]
=
true
;
item
[
childKey
][
'isRootKey
Flag
'
]
=
true
;
await
that
.
handleArrObjData
(
item
[
childKey
].
properties
);
await
that
.
handleArrObjData
(
item
[
childKey
].
properties
);
}
}
}
}
...
...
src/components/createApi/create-front.vue
View file @
7308a157
...
@@ -164,9 +164,9 @@ export default {
...
@@ -164,9 +164,9 @@ export default {
type
:
'object'
,
type
:
'object'
,
level
:
1
,
level
:
1
,
properties
:
{
properties
:
{
r
oot
:
{
bodyR
oot
:
{
level
:
2
,
level
:
2
,
currentKey
:
'
r
oot'
,
currentKey
:
'
bodyR
oot'
,
frontOriginType
:
'body'
,
//来源类型 query,body,header
frontOriginType
:
'body'
,
//来源类型 query,body,header
backendOriginType
:
'body'
,
backendOriginType
:
'body'
,
type
:
'object'
,
type
:
'object'
,
...
@@ -252,11 +252,11 @@ export default {
...
@@ -252,11 +252,11 @@ export default {
}
}
if
(
that
.
apiInfoData
.
requestType
==
'POST'
&&
that
.
apiInfoData
.
frontBodyType
==
'json'
)
{
if
(
that
.
apiInfoData
.
requestType
==
'POST'
&&
that
.
apiInfoData
.
frontBodyType
==
'json'
)
{
if
(
Object
.
keys
(
that
.
bodyJsonData
.
properties
.
r
oot
.
properties
).
length
)
{
if
(
Object
.
keys
(
that
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
).
length
)
{
that
.
bodyJsonData
.
properties
.
r
oot
.
required
=
[];
that
.
bodyJsonData
.
properties
.
bodyR
oot
.
required
=
[];
for
(
const
key
in
that
.
bodyJsonData
.
properties
.
r
oot
.
properties
)
{
for
(
const
key
in
that
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
)
{
if
(
that
.
bodyJsonData
.
properties
.
r
oot
.
properties
[
key
].
check
)
{
if
(
that
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
[
key
].
check
)
{
that
.
bodyJsonData
.
properties
.
r
oot
.
required
.
push
(
key
);
that
.
bodyJsonData
.
properties
.
bodyR
oot
.
required
.
push
(
key
);
}
}
}
}
}
}
...
@@ -308,9 +308,9 @@ export default {
...
@@ -308,9 +308,9 @@ export default {
type
:
'object'
,
type
:
'object'
,
level
:
1
,
level
:
1
,
properties
:
{
properties
:
{
r
oot
:
{
bodyR
oot
:
{
level
:
2
,
level
:
2
,
currentKey
:
'
r
oot'
,
currentKey
:
'
bodyR
oot'
,
frontOriginType
:
'body'
,
//来源类型 query,body,header
frontOriginType
:
'body'
,
//来源类型 query,body,header
backendOriginType
:
'body'
,
backendOriginType
:
'body'
,
type
:
'object'
,
type
:
'object'
,
...
@@ -331,9 +331,9 @@ export default {
...
@@ -331,9 +331,9 @@ export default {
type
:
'object'
,
type
:
'object'
,
level
:
1
,
level
:
1
,
properties
:
{
properties
:
{
f
orm
:
{
bodyF
orm
:
{
level
:
2
,
level
:
2
,
currentKey
:
'
f
orm'
,
currentKey
:
'
bodyF
orm'
,
frontOriginType
:
'body'
,
//来源类型 query,body,header
frontOriginType
:
'body'
,
//来源类型 query,body,header
backendOriginType
:
'body'
,
backendOriginType
:
'body'
,
type
:
'string'
,
type
:
'string'
,
...
...
src/components/createApi/create-result.vue
View file @
7308a157
...
@@ -239,11 +239,11 @@ export default {
...
@@ -239,11 +239,11 @@ export default {
let
front
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
let
front
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
obj
.
properties
=
Object
.
assign
(
front
.
queryData
.
properties
,
front
.
headerData
.
properties
);
obj
.
properties
=
Object
.
assign
(
front
.
queryData
.
properties
,
front
.
headerData
.
properties
);
if
(
front
.
requestType
==
'POST'
&&
front
.
frontBodyType
==
'json'
)
{
if
(
front
.
requestType
==
'POST'
&&
front
.
frontBodyType
==
'json'
)
{
if
(
Object
.
keys
(
front
.
bodyJsonData
.
properties
.
r
oot
.
properties
).
length
)
{
if
(
Object
.
keys
(
front
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
).
length
)
{
front
.
bodyJsonData
.
properties
.
r
oot
.
required
=
[];
front
.
bodyJsonData
.
properties
.
bodyR
oot
.
required
=
[];
for
(
const
key
in
front
.
bodyJsonData
.
properties
.
r
oot
.
properties
)
{
for
(
const
key
in
front
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
)
{
if
(
front
.
bodyJsonData
.
properties
.
r
oot
.
properties
[
key
].
check
)
{
if
(
front
.
bodyJsonData
.
properties
.
bodyR
oot
.
properties
[
key
].
check
)
{
front
.
bodyJsonData
.
properties
.
r
oot
.
required
.
push
(
key
);
front
.
bodyJsonData
.
properties
.
bodyR
oot
.
required
.
push
(
key
);
}
}
}
}
}
}
...
@@ -280,11 +280,11 @@ export default {
...
@@ -280,11 +280,11 @@ export default {
let
front
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
let
front
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
$store
.
state
.
frontInfo
));
obj
.
properties
=
Object
.
assign
(
back
.
backQueryData
.
properties
,
back
.
backHeaderData
.
properties
,
back
.
constData
.
properties
);
obj
.
properties
=
Object
.
assign
(
back
.
backQueryData
.
properties
,
back
.
backHeaderData
.
properties
,
back
.
constData
.
properties
);
if
(
front
.
requestType
==
'POST'
&&
front
.
frontBodyType
==
'json'
)
{
if
(
front
.
requestType
==
'POST'
&&
front
.
frontBodyType
==
'json'
)
{
if
(
Object
.
keys
(
back
.
backBodyJsonData
.
properties
.
r
oot
.
properties
).
length
)
{
if
(
Object
.
keys
(
back
.
backBodyJsonData
.
properties
.
bodyR
oot
.
properties
).
length
)
{
back
.
backBodyJsonData
.
properties
.
r
oot
.
required
=
[];
back
.
backBodyJsonData
.
properties
.
bodyR
oot
.
required
=
[];
for
(
const
key
in
back
.
backBodyJsonData
.
properties
.
r
oot
.
properties
)
{
for
(
const
key
in
back
.
backBodyJsonData
.
properties
.
bodyR
oot
.
properties
)
{
if
(
back
.
backBodyJsonData
.
properties
.
r
oot
.
properties
[
key
].
check
)
{
if
(
back
.
backBodyJsonData
.
properties
.
bodyR
oot
.
properties
[
key
].
check
)
{
back
.
backBodyJsonData
.
properties
.
r
oot
.
required
.
push
(
key
);
back
.
backBodyJsonData
.
properties
.
bodyR
oot
.
required
.
push
(
key
);
}
}
}
}
}
}
...
...
src/components/createApi/header-param.vue
View file @
7308a157
...
@@ -118,6 +118,7 @@ export default {
...
@@ -118,6 +118,7 @@ export default {
isBackendField
:
0
,
//是否后端字段
isBackendField
:
0
,
//是否后端字段
defaultVal
:
''
,
//默认值
defaultVal
:
''
,
//默认值
isRootKey
:
0
,
//是否是后端参数字段
isRootKey
:
0
,
//是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
//后端参数字段
rootKey
:
''
,
//后端参数字段
objectClass
:
''
,
//如果是object 并且是dubbo
objectClass
:
''
,
//如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
@@ -158,6 +159,7 @@ export default {
...
@@ -158,6 +159,7 @@ export default {
isBackendField
:
0
,
//是否后端字段
isBackendField
:
0
,
//是否后端字段
defaultVal
:
'val'
,
//默认值
defaultVal
:
'val'
,
//默认值
isRootKey
:
0
,
//是否是后端参数字段
isRootKey
:
0
,
//是否是后端参数字段
isRootKeyFlag
:
false
,
// 是否是后端参数字段 check
rootKey
:
''
,
//后端参数字段
rootKey
:
''
,
//后端参数字段
objectClass
:
''
,
//如果是object 并且是dubbo
objectClass
:
''
,
//如果是object 并且是dubbo
description
:
'描述'
,
description
:
'描述'
,
...
...
src/filters/index.js
View file @
7308a157
...
@@ -30,6 +30,9 @@ const dateFormat = function(timeSpan, format) {
...
@@ -30,6 +30,9 @@ const dateFormat = function(timeSpan, format) {
* @param timestamp
* @param timestamp
*/
*/
const
formatTimeStamp
=
function
(
data
)
{
const
formatTimeStamp
=
function
(
data
)
{
if
(
!
data
)
{
return
;
}
let
date
=
new
Date
(
data
);
let
date
=
new
Date
(
data
);
let
month
=
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
+
1
;
let
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
();
let
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
();
...
@@ -45,6 +48,9 @@ const formatTimeStamp = function(data) {
...
@@ -45,6 +48,9 @@ const formatTimeStamp = function(data) {
* @param timestamp
* @param timestamp
*/
*/
const
timeStampToYmd
=
function
(
data
)
{
const
timeStampToYmd
=
function
(
data
)
{
if
(
!
data
)
{
return
;
}
let
date
=
new
Date
(
data
);
let
date
=
new
Date
(
data
);
let
month
=
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
+
1
;
let
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
();
let
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
();
...
@@ -57,6 +63,9 @@ const timeStampToYmd = function(data) {
...
@@ -57,6 +63,9 @@ const timeStampToYmd = function(data) {
* @param timestamp
* @param timestamp
*/
*/
const
timeStampToHms
=
function
(
data
)
{
const
timeStampToHms
=
function
(
data
)
{
if
(
!
data
)
{
return
;
}
let
date
=
new
Date
(
data
);
let
date
=
new
Date
(
data
);
let
hours
=
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
();
let
hours
=
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
();
let
minutes
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
();
let
minutes
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
();
...
...
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