Browse Source

格式化日期

wolyshaw 4 years ago
parent
commit
dcca067cef
2 changed files with 5 additions and 3 deletions
  1. 4 1
      src/views/main/baseinfo/business.vue
  2. 1 2
      src/views/main/baseinfo/student.vue

+ 4 - 1
src/views/main/baseinfo/business.vue

@@ -50,7 +50,10 @@ export default {
             type: 'shadow',
             shadowStyle: {
               color: 'rgba(150,150,150,0.2)'
-            }
+            },
+          },
+          formatter: item => {
+            return [item[0].axisValueLabel, ...item.map(d => `<br/>${d.marker}${d.seriesName}: ${d.value} %`)].join('')
           }
         }
       }

+ 1 - 2
src/views/main/baseinfo/student.vue

@@ -8,7 +8,7 @@
         type="text"
       >{{isHistogram ? '学员转化漏斗图' : '学员柱状图'}}</el-button>
     </div>
-    <statistic :col="5" class="statistic" :cols="0">
+    <statistic class="statistic" :cols="0">
       <statistic-item v-for="(item, key) in items" :key="key" :class="{active: active === key}" @click="active = key">
         <span>
           {{item.title}}
@@ -51,7 +51,6 @@ export default {
         OTHER_STUDENT: this.data['OTHER_STUDENT'] || {},
         NEWLY_STUDENT_NUM: this.data['NEWLY_STUDENT_NUM'] || {},
         QUIT_MUSIC_GROUP_STUDENT_NUM: this.data['QUIT_MUSIC_GROUP_STUDENT_NUM'] || {},
-        STUDENT_CONVERSION: this.data['STUDENT_CONVERSION'] || {},
       }
     },
     chartExtend() {