|
|
@@ -39,6 +39,7 @@ import LineChartWidget from '../widgets/LineChartWidget';
|
|
|
import BarChartWidget from '../widgets/BarChartWidget';
|
|
|
import PieChartWidget from '../widgets/PieChartWidget';
|
|
|
import TopWidget from '../widgets/TopWidget';
|
|
|
+import MonthWidget from '../widgets/MonthWidget';
|
|
|
|
|
|
export default {
|
|
|
created() {},
|
|
|
@@ -64,7 +65,8 @@ export default {
|
|
|
{ x: 3, y: 0, w: 3, h: 4, i: '1', name: 'NumWidget' },
|
|
|
// { x: 0, y: 12, w: 6, h: 6, i: '4', name: 'BarChartWidget' },
|
|
|
{ x: 0, y: 4, w: 6, h: 12, i: '6', name: 'PieChartWidget' },
|
|
|
- { x: 0, y: 20, w: 12, h: 10, i: '7', name: 'TopWidget' }
|
|
|
+ { x: 0, y: 20, w: 6, h: 10, i: '8', name: 'MonthWidget' },
|
|
|
+ { x: 6, y: 20, w: 6, h: 10, i: '7', name: 'TopWidget' }
|
|
|
];
|
|
|
}
|
|
|
this.$http.get('/statistic/total').then(res => {
|
|
|
@@ -86,7 +88,8 @@ export default {
|
|
|
LineChartWidget,
|
|
|
BarChartWidget,
|
|
|
PieChartWidget,
|
|
|
- TopWidget
|
|
|
+ TopWidget,
|
|
|
+ MonthWidget
|
|
|
}
|
|
|
};
|
|
|
</script>
|