|
@@ -1,18 +1,12 @@
|
|
|
<template>
|
|
|
<div class="dashboard-container">
|
|
|
<div class="dashboard-editor-container">
|
|
|
- <panel-group @handleSetLineChartData="handleSetLineChartData" />
|
|
|
- <jrcp ref="jrcp" />
|
|
|
- <mclz ref="mclz" />
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import PanelGroup from './dashboard/PanelGroup'
|
|
|
-import jrcp from './dashboard/jrcp'
|
|
|
-import mclz from './dashboard/mclz'
|
|
|
-
|
|
|
const lineChartData = {
|
|
|
newVisitis: {
|
|
|
expectedData: [100, 120, 161, 134, 105, 160, 165],
|
|
@@ -35,19 +29,14 @@ const lineChartData = {
|
|
|
export default {
|
|
|
name: 'Dashboard',
|
|
|
components: {
|
|
|
- PanelGroup,
|
|
|
- jrcp,
|
|
|
- mclz
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- lineChartData: lineChartData.newVisitis
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- handleSetLineChartData(type) {
|
|
|
- this.lineChartData = lineChartData[type]
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|