chenrui  2 年之前
父節點
當前提交
3bd85c8b0f
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 3
      src/utils/app-ecahrts.js
  2. 1 1
      src/views/securityCheck/components/graphicHome.vue

+ 1 - 3
src/utils/app-ecahrts.js

@@ -93,7 +93,7 @@ export const pillar = {
         show: false,
         position: 'center'
       },
-      color: ['#E7EBF4', '#6161BD'],
+      color: [],
       // itemStyle: {
       //   normal: {
       //     color: ['#6161BD', '#E7EBF4']
@@ -111,8 +111,6 @@ export const pillar = {
         show: false
       },
       data: [
-        { value: 335, name: '直接访问' },
-        { value: 310, name: '邮件营销' },
       ]
     },
 

+ 1 - 1
src/views/securityCheck/components/graphicHome.vue

@@ -36,7 +36,7 @@ export default {
       let myChart = this.$echarts.init(
         document.getElementById(`chart_${this.id}`)
       ); //统计折线
-      pillar.series.data = this.texter.data;
+      pillar.series[0].data = this.texter.data;
       pillar.title.text = this.texter.name;
       pillar.title.subtext = this.texter.cont;
       pillar.title.top = this.texter.top;