From e83640bd15f339740850a0fc70118193afdb37b1 Mon Sep 17 00:00:00 2001 From: Jack <1638169491@qq.com> Date: Wed, 3 Aug 2022 17:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B9=96=E9=87=8C=E5=A4=A7=E5=B1=8F=EF=BC=9A?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=20jChart/pie/JRingChart.vue=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectHuScreen/jChart/pie/JRingChart.vue | 23 ++++++++++--------- .../qualityManage/leftCenter.vue | 3 +-- .../qualityManage/rightTop.vue | 9 ++++---- .../projectHuScreen/safeManage/leftBottom.vue | 6 ++--- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/views/projectAdmin/dataBoard/projectHuScreen/jChart/pie/JRingChart.vue b/src/views/projectAdmin/dataBoard/projectHuScreen/jChart/pie/JRingChart.vue index c6a11785..922821f9 100644 --- a/src/views/projectAdmin/dataBoard/projectHuScreen/jChart/pie/JRingChart.vue +++ b/src/views/projectAdmin/dataBoard/projectHuScreen/jChart/pie/JRingChart.vue @@ -15,12 +15,13 @@ export default { default: () => ['#5181F6', '#61D2B9', '#F67F51', '#7851F6'] }, title: { - type: String, - default: '' - }, - subTitle: { - type: String, - default: '' + type: Object, + default: () => ({ + text: '', + subTitle: '', + x: '48%', + y: '36%' + }) }, radius: { type: Array, @@ -33,21 +34,21 @@ export default { methods: { createRingChart() { const jRingChart = echarts.init(this.$refs.jRingChart) - + const { title } = this const option = { color: this.color, title: { show: true, - text: this.title, - x: '48%', - y: '36%', + text: title.text, + x: title.x || '48%', + y: title.y || '36%', z: 5, textAlign: 'center', textStyle: { color: 'rgba(255, 255, 255, 1)', fontSize: 20 }, - subtext: this.subTitle, + subtext: title.subTitle, subtextStyle: { color: 'rgba(255, 255, 255, 0.8)', fontSize: 13 diff --git a/src/views/projectAdmin/dataBoard/projectHuScreen/qualityManage/leftCenter.vue b/src/views/projectAdmin/dataBoard/projectHuScreen/qualityManage/leftCenter.vue index 0a288d73..af2f1b10 100644 --- a/src/views/projectAdmin/dataBoard/projectHuScreen/qualityManage/leftCenter.vue +++ b/src/views/projectAdmin/dataBoard/projectHuScreen/qualityManage/leftCenter.vue @@ -5,8 +5,7 @@
{{ title }}
- +
- +
- +
- +
项目整改率
- +
项目及时整改率
- +
项目及时复查率