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 }}
- +
- +
- +
- +
项目整改率
- +
项目及时整改率
- +
项目及时复查率