wangziqian 5 lat temu
rodzic
commit
367c11bce7

+ 1 - 1
src/views/quality/components/distributionChart.vue

@@ -99,7 +99,7 @@ export default {
           color: ['#3AA1FF'],
           tooltip: { trigger: 'axis', axisPointer: { type: 'line' }}, // 默认为直线,可选为:'line' | 'shadow'
           grid: { left: '0', right: '0', top: '10%', bottom: '0', containLabel: true },
-          xAxis: [{ type: 'category', data: this.chartData.xaxis, axisLabel: { interval: 0, rotate: 0 }, axisTick: { alignWithLabel: true }}],
+          xAxis: [{ type: 'category', data: this.chartData.xaxis, axisLabel: { interval: 0, rotate: 40 }, axisTick: { alignWithLabel: true }}],
           yAxis: [{ type: 'value', axisLine: { show: false }, splitLine: { lineStyle: { type: 'dashed' }}}],
           series: [{
             name: '数量', type: 'bar', barWidth: '20px', data: this.chartData.yaxis[0] && this.chartData.yaxis[0].data || [],

+ 1 - 1
src/views/quality/components/statusStayChart.vue

@@ -57,7 +57,7 @@ export default {
         },
         legend: { data: newArr.map(item => { return item.name }), left: 0, top: 0 },
         grid: { left: '0', right: '0', top: '8%', bottom: '0', containLabel: true },
-        xAxis: { type: 'category', data: this.chartData.xaxis, axisTick: { alignWithLabel: true }},
+        xAxis: { type: 'category', data: this.chartData.xaxis, axisTick: { alignWithLabel: true }, axisLabel: { interval: 0, rotate: 40 }},
         yAxis: { type: 'value', axisLine: { show: false }, splitLine: { lineStyle: { type: 'dashed' }}, axisLabel: { formatter: '{value}个' }},
         series: newArr.map(item => ({ ...item, type: 'bar', stack: '总和', barWidth: '20px' }))
       }

+ 0 - 1
src/views/reportManagement/daily/dailyTemplate.vue

@@ -5,7 +5,6 @@
     class="parent-style"
     element-loading-text="数据上传中,请稍后"
     element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
   >
     <el-form ref="fromCreateData" class="dailyFrom" :model="fromCreateData" :rules="serviceDataRules">