Просмотр исходного кода

质量指标可视化看板修改

shenqilong 1 год назад
Родитель
Сommit
223ff60c47

+ 3 - 3
src/views/business/qualityTarget/components/monthChart.vue

@@ -79,7 +79,7 @@ export default {
             this.fontSize = w >= 1600 ? 20 : w > 1366 && w < 1600 ? 18 : 16
             setTimeout(() => {
                 this.info.forEach((item, index) => {
-                    console.log(item)
+                    // console.log(item)
                     if (this.name !== '病理') {
                         const chart = echarts.init(document.getElementById(`card${index}`))
                         const option = JSON.parse(JSON.stringify(monthChartOption))
@@ -124,8 +124,8 @@ export default {
                         option.legend.data = [item.title, '达标标准率']
 
                         chart.setOption(option)
-                        console.log(option)
-                        chart.setOption(option)
+                        // console.log(option)
+                        // chart.setOption(option)
                     }
                 })
             }, 100)

+ 10 - 8
src/views/business/qualityTarget/constants/optionbl.js

@@ -119,7 +119,7 @@ export const monthChartOptionbl = {
         symbol: 'circle',
         name: '合格率',
         data: [],
-        symbolSize: 8,
+        symbolSize: 5,
         itemStyle: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                 { offset: 0, color: '#83bff6' },
@@ -138,12 +138,14 @@ export const monthChartOptionbl = {
         },
         label: {
             show: true,
-            position: 'top',
+            position: [4, -8],
             textStyle: {
                 color: '#fff',
-                fontSize: 14
+                fontSize: 10
             },
             formatter (params) {
+                console.log(params)
+
                 return params.value ? params.value : ''
             }
         }
@@ -152,7 +154,7 @@ export const monthChartOptionbl = {
         type: 'line',
         symbol: 'circle',
         name: '合格率',
-        symbolSize: 8,
+        symbolSize: 5,
         data: [],
         itemStyle: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -180,10 +182,10 @@ export const monthChartOptionbl = {
         },
         label: {
             show: true,
-            position: 'bottom',
+            position: [-10, 8],
             textStyle: {
                 color: '#ff4949',
-                fontSize: 14
+                fontSize: 10
             },
             formatter (params) {
                 return params.value ? params.value : ''
@@ -213,7 +215,7 @@ export const quarterChartOptionbl = {
         symbol: 'circle',
         name: '',
         data: [],
-        symbolSize: 8,
+        symbolSize: 5,
 
         itemStyle: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -249,7 +251,7 @@ export const quarterChartOptionbl = {
         symbol: 'circle',
         name: '',
         data: [],
-        symbolSize: 8,
+        symbolSize: 5,
 
         itemStyle: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [