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
f7dc396c
Commit
f7dc396c
authored
May 13, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务详情模拟数据
parent
58f8b581
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
20 deletions
+27
-20
src/components/service-steps.vue
src/components/service-steps.vue
+1
-3
src/components/service-tab-detail.vue
src/components/service-tab-detail.vue
+8
-12
static/serviceInfo.json
static/serviceInfo.json
+18
-5
No files found.
src/components/service-steps.vue
View file @
f7dc396c
...
...
@@ -26,9 +26,7 @@ export default {
default
:
[
"
服务申请
"
,
"
信息填写
"
,
"
审核确认
"
,
"
服务获取
"
],
},
},
mounted
()
{
console
.
log
(
this
.
data
);
},
mounted
()
{},
};
</
script
>
...
...
src/components/service-tab-detail.vue
View file @
f7dc396c
...
...
@@ -3,11 +3,14 @@
<li
class=
"detail-item"
v-for=
"(item, index) in data"
:key=
"'detail
-
' + index"
:key=
"'detail
_
' + index"
>
<h3
class=
"detail-title"
v-text=
"item.name + ':'"
></h3>
<service-steps
v-if=
"item.type == 'step'"
:data=
"item.value"
></service-steps>
<service-steps
v-if=
"item.type == 'step'"
:data=
"item.value"
></service-steps>
<p
v-else-if=
"item.type == 'text'"
class=
"detail-text"
...
...
@@ -16,7 +19,7 @@
<el-table
v-else-if=
"item.type == 'table'"
class=
"detail-table"
:row-key=
"(row) => item.name + '_' + row.zdbm
"
row-key=
"id
"
default-expand-all
:border=
"false"
:data=
"item.value.datas"
...
...
@@ -36,15 +39,8 @@
:border=
"false"
:data=
"item.value"
>
<el-table-column
prop=
"name"
label=
"name"
width=
"120"
></el-table-column>
<el-table-column
prop=
"value"
label=
"value"
></el-table-column>
<el-table-column
prop=
"name"
label=
"name"
width=
"120"
></el-table-column>
<el-table-column
prop=
"value"
label=
"value"
></el-table-column>
</el-table>
</li>
</ul>
...
...
static/serviceInfo.json
View file @
f7dc396c
...
...
@@ -27,6 +27,7 @@
"value"
:
{
"datas"
:
[
{
"id"
:
10000
,
"zdbm"
:
"errcode"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"错误码"
,
...
...
@@ -35,6 +36,7 @@
"slz"
:
"xxx"
},
{
"id"
:
20000
,
"zdbm"
:
"errmsg"
,
"zdlx"
:
"对象"
,
"zdmc"
:
"错误信息"
,
...
...
@@ -43,6 +45,7 @@
"slz"
:
"xxx"
},
{
"id"
:
30000
,
"zdbm"
:
"data"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
...
...
@@ -51,6 +54,7 @@
"slz"
:
"xxx"
,
"children"
:
[
{
"id"
:
30010
,
"zdbm"
:
"rows"
,
"zdlx"
:
"对象"
,
"zdmc"
:
"对象"
,
...
...
@@ -100,42 +104,49 @@
"value"
:
{
"datas"
:
[
{
"id"
:
50000
,
"zdbm"
:
"errcode"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"错误码"
,
"zdsm"
:
"显示字段信息显示字段信息"
},
{
"id"
:
60000
,
"zdbm"
:
"errmsg"
,
"zdlx"
:
"对象"
,
"zdmc"
:
"错误信息"
,
"zdsm"
:
"显示字段信息显示字段信息"
},
{
"id"
:
70000
,
"zdbm"
:
"data"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
,
"children"
:
[
{
"id"
:
70010
,
"zdbm"
:
"rows"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
,
"children"
:
[
{
"id"
:
70011
,
"zdbm"
:
"time"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
},
{
"id"
:
70012
,
"zdbm"
:
"count"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
},
{
"id"
:
70013
,
"zdbm"
:
"item"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
...
...
@@ -144,18 +155,21 @@
]
},
{
"id"
:
70020
,
"zdbm"
:
"city"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
,
"children"
:
[
{
"id"
:
70021
,
"zdbm"
:
"sPoint"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
"zdsm"
:
"显示字段信息显示字段信息"
},
{
"id"
:
70022
,
"zdbm"
:
"ePoint"
,
"zdlx"
:
"字符串"
,
"zdmc"
:
"数据项"
,
...
...
@@ -540,15 +554,15 @@
"value"
:
{
"datas"
:
[
{
"name"
:
"apaas-mapvideos"
,
"name"
:
"apaas-mapvideos
-1
"
,
"description"
:
"地图视频融合应用服务"
},
{
"name"
:
"apaas-mapvideos"
,
"name"
:
"apaas-mapvideos
-2
"
,
"description"
:
"地图视频融合应用服务"
},
{
"name"
:
"apaas-mapvideos"
,
"name"
:
"apaas-mapvideos
-3
"
,
"description"
:
"地图视频融合应用服务"
}
],
...
...
@@ -559,8 +573,7 @@
},
{
"prop"
:
"description"
,
"label"
:
"微服务描述"
,
"align"
:
"center"
"label"
:
"微服务描述"
}
]
}
...
...
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