Browse Source

优化统计分析

qinzhipeng_v 5 years ago
parent
commit
3ca0353962
1 changed files with 16 additions and 10 deletions
  1. 16 10
      src/views/quality/qualityMeasurement.vue

+ 16 - 10
src/views/quality/qualityMeasurement.vue

@@ -227,7 +227,7 @@
               />
               <el-table-column
                 prop="name"
-                label="免提测全量上线数"
+                label="线上问题数"
                 align="center"
               >
                 <el-table-column
@@ -355,10 +355,17 @@
                 label="reopen"
                 align="center"
               />
+            </el-table>
+            <h4>4. 项目数据</h4>
+            <el-table
+              :data="[DefeatData]"
+              border
+              style="width: 100%"
+              size="mini"
+            >
               <el-table-column
                 prop="checkInTest"
                 label="提测"
-                width="55"
                 align="center"
               />
               <el-table-column
@@ -369,7 +376,6 @@
               <el-table-column
                 prop="stepOut"
                 label="准出"
-                width="55"
                 align="center"
               />
             </el-table>
@@ -713,9 +719,9 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' },
-                  { type: 'bar' },
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' },
+                  { type: 'bar', barMaxWidth: '70' },
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               this.totalOneEchartsRate.setOption({
@@ -731,9 +737,9 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' },
-                  { type: 'bar' },
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' },
+                  { type: 'bar', barMaxWidth: '70' },
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               window.addEventListener('resize', () => {
@@ -936,7 +942,7 @@ export default {
     },
     // 时间变化刷新页面
     dataSearch() {
-      this.timeInterval[1] = dayjs(dayjs(new Date()).add(1, 'days').format('YYYY-MM-DD')).valueOf() - 1
+      this.timeInterval[1] = dayjs(dayjs(this.timeInterval[1]).add(1, 'days').format('YYYY-MM-DD')).valueOf() - 1
       if (this.pauseKey === 0) {
         this._initBusinessTreeAndBeginInfo()
       } else if (this.pauseKey === 3) {