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
45fcca6b
Commit
45fcca6b
authored
Sep 02, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请的服务响应示例
parent
949d1e30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
src/pages/workbench/fwgl/apply_service_detail.vue
src/pages/workbench/fwgl/apply_service_detail.vue
+22
-9
No files found.
src/pages/workbench/fwgl/apply_service_detail.vue
View file @
45fcca6b
<
template
>
<
template
>
<div
class=
"detail_contain"
>
<div
class=
"detail_contain"
>
<p
class=
"now_page_title"
>
我的服务 / 申请的服务 /
<span>
服务详情
</span></p>
<p
class=
"now_page_title"
>
我的服务 / 申请的服务 /
<span>
服务详情
</span>
</p>
<div
class=
"info_contain"
>
<div
class=
"info_contain"
>
<service-header
:data=
"service_header_arr"
></service-header>
<service-header
:data=
"service_header_arr"
></service-header>
<div
class=
"type_box"
>
<div
class=
"type_box"
>
...
@@ -13,9 +16,7 @@
...
@@ -13,9 +16,7 @@
:style=
"
:style=
"
now_service == index ?
{ borderBottom: '4px solid #f5ab4c' } : {}
now_service == index ?
{ borderBottom: '4px solid #f5ab4c' } : {}
"
"
>
>
{{
item
}}
</div>
{{
item
}}
</div>
</div>
</div>
<div
class=
"type_box_select"
>
<div
class=
"type_box_select"
>
<info-list
<info-list
...
@@ -39,10 +40,8 @@
...
@@ -39,10 +40,8 @@
:datas=
"res_table_arr"
:datas=
"res_table_arr"
slot=
"apply_table"
slot=
"apply_table"
></table-um>
></table-um>
<process-card
<v-apaas-code
:datas=
"res_code_arr"
slot=
"res_code"
:readOnly=
"true"
></v-apaas-code>
:data=
"use_approval_arr"
<process-card
:data=
"use_approval_arr"
slot=
"approval"
></process-card>
slot=
"approval"
></process-card>
</info-list>
</info-list>
</div>
</div>
</div>
</div>
...
@@ -55,6 +54,7 @@ import serviceHeader from "@/components/service-header";
...
@@ -55,6 +54,7 @@ import serviceHeader from "@/components/service-header";
import
infoList
from
"
@/components/infoList
"
;
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
processCard
from
"
@/components/process-card
"
;
import
codes
from
"
@/components/general/codes
"
;
export
default
{
export
default
{
props
:
{},
props
:
{},
components
:
{
components
:
{
...
@@ -62,6 +62,7 @@ export default {
...
@@ -62,6 +62,7 @@ export default {
infoList
,
infoList
,
tableUm
,
tableUm
,
processCard
,
processCard
,
"
v-apaas-code
"
:
codes
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -270,6 +271,12 @@ export default {
...
@@ -270,6 +271,12 @@ export default {
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
res_table
"
,
solt_name
:
"
res_table
"
,
},
},
{
title
:
"
响应示例:
"
,
info
:
""
,
type
:
"
solt
"
,
solt_name
:
"
res_code
"
,
},
],
],
apply_arr
:
[
apply_arr
:
[
{
{
...
@@ -352,6 +359,7 @@ export default {
...
@@ -352,6 +359,7 @@ export default {
},
},
],
// 响应参数-header
],
// 响应参数-header
res_table_arr
:
[],
// 响应参数
res_table_arr
:
[],
// 响应参数
res_code_arr
:
""
};
};
},
},
watch
:
{},
watch
:
{},
...
@@ -502,6 +510,11 @@ export default {
...
@@ -502,6 +510,11 @@ export default {
if
(
this
.
res_table_arr
.
length
===
0
)
{
if
(
this
.
res_table_arr
.
length
===
0
)
{
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
"
无响应参数
"
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
"
无响应参数
"
);
}
}
this
.
res_code_arr
=
data
.
res_fields_example
||
""
;
// 响应示例
if
(
!
this
.
res_code_arr
)
{
this
.
$set
(
this
.
servicead_arr
[
5
],
"
type
"
,
""
);
this
.
$set
(
this
.
servicead_arr
[
5
],
"
info
"
,
"
无响应示例
"
);
}
console
.
log
(
this
.
res_table_arr
);
console
.
log
(
this
.
res_table_arr
);
if
(
data
.
service_apply_info
.
approval_process
)
{
if
(
data
.
service_apply_info
.
approval_process
)
{
data
.
service_apply_info
.
approval_process
.
forEach
((
e
)
=>
{
data
.
service_apply_info
.
approval_process
.
forEach
((
e
)
=>
{
...
@@ -546,7 +559,7 @@ export default {
...
@@ -546,7 +559,7 @@ export default {
}
}
this
.
res_data
=
JSON
.
parse
(
data
.
res_fields
);
this
.
res_data
=
JSON
.
parse
(
data
.
res_fields
);
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
},
},
};
};
...
...
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