From a93505c03e99d6c1aea656aa465e9ae82fef19d1 Mon Sep 17 00:00:00 2001 From: jiaming <743192023@qq.com> Date: Thu, 6 Dec 2018 18:53:41 +0800 Subject: [PATCH] some optimization --- src/views/electronicFile/index.vue | 65 ++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 12 deletions(-) diff --git a/src/views/electronicFile/index.vue b/src/views/electronicFile/index.vue index 5976fea..2a5fe6e 100644 --- a/src/views/electronicFile/index.vue +++ b/src/views/electronicFile/index.vue @@ -13,7 +13,7 @@
纸店收费站
设备运行总数
120
- +
沈丘收费站
设备运行总数
188
@@ -47,7 +47,7 @@ - +
@@ -86,7 +86,7 @@
设备运行总数
- +
@@ -95,28 +95,28 @@
项城收费站
- +
周口收费站
- +
谭庄收费站南
- +
谭庄收费站北
- +
@@ -133,7 +133,46 @@ export default { name: 'ElectronicFile', components: { efHeader - } + }, + data () { + return { + testRingData: { + data: [ + { + value: 100, + title: '收费系统' + }, + { + value: 57, + title: '通信系统' + }, + { + value: 66, + title: '监控系统' + }, + { + value: 32, + title: '供配电系统' + }, + { + value: 12, + title: '其他' + } + ], + color: [ + '#00baff', + '#3de7c9', + '#ffffff', + '#ffc53d', + '#469f4b' + ], + active: true, + labelLine: true + } + } + }, + methods: {}, + created () {} } @@ -276,20 +315,22 @@ export default { line-height: 50px; display: flex; flex-direction: row; + font-family: "Microsoft Yahei", Arial, sans-serif; :nth-child(1) { - font-size: 34px; + font-size: @EFRTLNINFS; text-indent: 35px; + font-weight: bold; } :nth-child(2) { - font-size: 34px; + font-size: @EFRTLNITFS; margin-left: 20px; } } } - .capsule-chart { + .ring-chart { width: 330px; } } @@ -368,7 +409,7 @@ export default { line-height: 30px; } - .capsule-chart { + .ring-chart { height: calc(~"100% - 50px"); } }