Browse Source

no message

duwendi 1 year ago
parent
commit
d8d6581f65
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/pages/index/components/event_monitoring.vue

+ 10 - 10
src/pages/index/components/event_monitoring.vue

@@ -34,8 +34,8 @@
34 34
             :dataset="linedata1"
35 35
             :tooltipFormat="lineTooltipFormat1"
36 36
             :encode="[
37
-              { x: 'mouth', y: 's1', seriesName: '昨日', bool: 'true' },
38
-              { x: 'mouth', y: 's2', seriesName: '今日', bool: 'true' },
37
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '昨日', bool: 'true' },
38
+              { x: 'mouth', y: 'lastYearAmount', seriesName: '今日', bool: 'true' },
39 39
             ]"
40 40
             id="fsqs"
41 41
           />
@@ -51,12 +51,12 @@
51 51
             :dataset="linedata2"
52 52
             :tooltipFormat="lineTooltipFormat2"
53 53
             :encode="[
54
-              { x: 'mouth', y: 's1', seriesName: '黑名单入场事件',bool:'true' },
55
-              { x: 'mouth', y: 's2', seriesName: '套牌车事件',bool:'true' },
56
-              { x: 'mouth', y: 's3', seriesName: '客诉事件',bool:'true' },
57
-              { x: 'mouth', y: 's4', seriesName: '设备事件',bool:'true' },
58
-              { x: 'mouth', y: 's5', seriesName: '超长停 车事件',bool:'true' },
59
-              { x: 'mouth', y: 's6', seriesName: '大额欠费事件',bool:'true' },
54
+              { x: 'statName', y: 's1', seriesName: '黑名单入场事件',bool:'true' },
55
+              { x: 'statName', y: 's2', seriesName: '套牌车事件',bool:'true' },
56
+              { x: 'statName', y: 's3', seriesName: '客诉事件',bool:'true' },
57
+              { x: 'statName', y: 's4', seriesName: '设备事件',bool:'true' },
58
+              { x: 'statName', y: 's5', seriesName: '超长停车事件',bool:'true' },
59
+              { x: 'statName', y: 's6', seriesName: '大额欠费事件',bool:'true' },
60 60
             ]"
61 61
             id="sxcyfzqk"
62 62
           />
@@ -335,10 +335,10 @@ export default {
335 335
       const data = params[0].data;
336 336
       return `<div class="line-tooltip">
337 337
         <div style="color: ${params[0].color}">${params[0].seriesName}: ${
338
-        params[0].data.lastYearAmount || "0"
338
+        params[0].data.thisYearAmount || "0"
339 339
       }(件)</div>
340 340
         <div style="color: ${params[1].color}">${params[1].seriesName}: ${
341
-        params[0].data.thisYearAmount || "0"
341
+        params[0].data.lastYearAmount || "0"
342 342
       }(件)</div>
343 343
       </div>`;
344 344
     },