Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
0e8217bf
Commit
0e8217bf
authored
Sep 03, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务详情强化代码逻辑
parent
eeaaab24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
src/components/general/codes.vue
src/components/general/codes.vue
+10
-3
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+4
-2
No files found.
src/components/general/codes.vue
View file @
0e8217bf
...
@@ -45,9 +45,16 @@ export default {
...
@@ -45,9 +45,16 @@ export default {
this
.
getValue
();
this
.
getValue
();
}
}
if
(
this
.
datas
)
{
if
(
this
.
datas
)
{
this
.
aceEditor
.
setValue
(
let
obj
=
""
;
JSON
.
stringify
(
JSON
.
parse
(
this
.
datas
),
null
,
"
\t
"
)
console
.
log
(
typeof
JSON
.
parse
(
this
.
datas
));
);
try
{
if
(
typeof
JSON
.
parse
(
this
.
datas
)
==
"
object
"
)
{
obj
=
JSON
.
stringify
(
JSON
.
parse
(
this
.
datas
),
null
,
"
\t
"
);
}
}
catch
(
e
)
{
obj
=
this
.
datas
;
}
this
.
aceEditor
.
setValue
(
obj
);
}
}
},
},
watch
:
{},
watch
:
{},
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
0e8217bf
...
@@ -692,7 +692,7 @@ export default {
...
@@ -692,7 +692,7 @@ export default {
this
.
req_data
=
JSON
.
parse
(
this
.
req_data
=
JSON
.
parse
(
data
.
req_fields
||
data
.
req_query
||
"
[]
"
data
.
req_fields
||
data
.
req_query
||
"
[]
"
);
// 请求参数
);
// 请求参数
if
(
this
.
req_data
.
length
===
0
)
{
if
(
this
.
req_data
&&
this
.
req_data
.
length
===
0
)
{
this
.
$set
(
this
.
servicead_arr
[
1
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
1
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
1
],
"
info
"
,
"
无请求参数
"
);
this
.
$set
(
this
.
servicead_arr
[
1
],
"
info
"
,
"
无请求参数
"
);
}
}
...
@@ -704,11 +704,13 @@ export default {
...
@@ -704,11 +704,13 @@ export default {
}
}
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
encode_method
);
// 编码格式
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
encode_method
);
// 编码格式
this
.
res_data
=
JSON
.
parse
(
data
.
res_fields
||
"
[]
"
);
// 响应参数
this
.
res_data
=
JSON
.
parse
(
data
.
res_fields
||
"
[]
"
);
// 响应参数
if
(
this
.
res_data
.
length
===
0
)
{
if
(
this
.
res_data
&&
this
.
res_data
.
length
===
0
)
{
this
.
$set
(
this
.
servicead_arr
[
4
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
"
无响应参数
"
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
"
无响应参数
"
);
}
}
console
.
log
(
data
.
res_fields_example
)
this
.
res_code_arr
=
data
.
res_fields_example
||
""
;
// 响应示例
this
.
res_code_arr
=
data
.
res_fields_example
||
""
;
// 响应示例
console
.
log
(
this
.
res_code_arr
)
if
(
!
this
.
res_code_arr
)
{
if
(
!
this
.
res_code_arr
)
{
this
.
$set
(
this
.
servicead_arr
[
5
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
5
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
5
],
"
info
"
,
"
无响应示例
"
);
this
.
$set
(
this
.
servicead_arr
[
5
],
"
info
"
,
"
无响应示例
"
);
...
...
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