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
b5f0300e
Commit
b5f0300e
authored
Jun 16, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xym' into dev
parents
a9be64d5
139abe39
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
21 deletions
+52
-21
src/components/service-info/service-info.vue
src/components/service-info/service-info.vue
+11
-0
src/components/service-tabs/service-tab-detail.vue
src/components/service-tabs/service-tab-detail.vue
+1
-1
src/pages/service_shop/sjfwDetail.vue
src/pages/service_shop/sjfwDetail.vue
+20
-2
src/pages/service_shop/skfwDetail.vue
src/pages/service_shop/skfwDetail.vue
+10
-9
src/pages/service_shop/zhfwDetail.vue
src/pages/service_shop/zhfwDetail.vue
+10
-9
No files found.
src/components/service-info/service-info.vue
View file @
b5f0300e
...
...
@@ -195,6 +195,17 @@ export default {
},
},
mounted
()
{
// 初始化购买方式
if
(
this
.
data
.
serviceRequestSpcs
&&
this
.
data
.
serviceRequestSpcs
.
length
)
{
let
types
=
Array
.
from
(
new
Set
(
this
.
data
.
serviceRequestSpcs
.
map
((
item
)
=>
item
.
type
))
);
this
.
types
=
this
.
types
.
filter
((
item
)
=>
types
.
indexOf
(
item
.
value
)
>
-
1
);
this
.
type
=
(
this
.
types
[
0
]
&&
this
.
types
[
0
].
value
)
||
0
;
}
// 初始化规格
if
(
this
.
specifications
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
}
...
...
src/components/service-tabs/service-tab-detail.vue
View file @
b5f0300e
...
...
@@ -24,7 +24,7 @@
<el-table
v-else-if=
"item.type == 'table'"
class=
"detail-table"
row-key=
"
name
"
row-key=
"
rowId
"
default-expand-all
:border=
"false"
:data=
"item.value.datas"
...
...
src/pages/service_shop/sjfwDetail.vue
View file @
b5f0300e
...
...
@@ -111,7 +111,7 @@ export default {
name
:
"
请求参数
"
,
type
:
"
table
"
,
value
:
{
datas
:
(
datas
.
req_fields
&&
JSON
.
parse
(
datas
.
req_fields
))
||
[]
,
datas
:
this
.
getTableData
(
datas
.
req_fields
)
,
columns
:
[
{
prop
:
"
name
"
,
...
...
@@ -154,7 +154,7 @@ export default {
name
:
"
响应参数
"
,
type
:
"
table
"
,
value
:
{
datas
:
(
datas
.
res_fields
&&
JSON
.
parse
(
datas
.
res_fields
))
||
[]
,
datas
:
this
.
getTableData
(
datas
.
res_fields
)
,
columns
:
[
{
prop
:
"
name
"
,
...
...
@@ -195,6 +195,24 @@ export default {
console
.
log
(
error
);
});
},
getTableData
(
tableStr
)
{
let
tabledata
=
(
tableStr
&&
JSON
.
parse
(
tableStr
))
||
[];
let
addId
=
(
data
,
baseId
=
""
)
=>
{
data
.
forEach
((
item
,
index
)
=>
{
let
rowId
=
baseId
+
(
index
+
1
)
+
""
;
item
.
rowId
=
rowId
;
if
(
item
.
children
&&
item
.
children
.
length
)
{
addId
(
item
.
children
,
rowId
);
}
});
};
addId
(
tabledata
);
return
tabledata
;
},
},
mounted
()
{
this
.
init
();
...
...
src/pages/service_shop/skfwDetail.vue
View file @
b5f0300e
...
...
@@ -61,15 +61,16 @@ export default {
})
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
pv
:
item
.
pv
,
count
:
item
.
count
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
let
specificationData
=
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
pv
:
item
.
pv
,
count
:
item
.
count
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
...
...
src/pages/service_shop/zhfwDetail.vue
View file @
b5f0300e
...
...
@@ -61,15 +61,16 @@ export default {
})
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
pv
:
item
.
pv
,
count
:
item
.
count
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
let
specificationData
=
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
pv
:
item
.
pv
,
count
:
item
.
count
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
...
...
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