|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="dashboard">
|
|
<div class="dashboard">
|
|
|
<grid-layout
|
|
<grid-layout
|
|
|
- style="margin: -10px;"
|
|
|
|
|
|
|
+ style="margin: 0 -10px;"
|
|
|
:layout="layout"
|
|
:layout="layout"
|
|
|
:col-num="12"
|
|
:col-num="12"
|
|
|
:row-height="30"
|
|
:row-height="30"
|
|
@@ -32,9 +32,6 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { GridLayout, GridItem } from 'vue-grid-layout';
|
|
import { GridLayout, GridItem } from 'vue-grid-layout';
|
|
|
-import MenusWidget from '../widgets/MenusWidget';
|
|
|
|
|
-import WaitWidget from '../widgets/WaitWidget';
|
|
|
|
|
-import DoingWidget from '../widgets/DoingWidget';
|
|
|
|
|
import LineChartWidget from '../widgets/LineChartWidget';
|
|
import LineChartWidget from '../widgets/LineChartWidget';
|
|
|
import BarChartWidget from '../widgets/BarChartWidget';
|
|
import BarChartWidget from '../widgets/BarChartWidget';
|
|
|
import PieChartWidget from '../widgets/PieChartWidget';
|
|
import PieChartWidget from '../widgets/PieChartWidget';
|
|
@@ -43,6 +40,7 @@ import WaitWidget from '../widgets/WaitWidget';
|
|
|
import DoingWidget from '../widgets/DoingWidget';
|
|
import DoingWidget from '../widgets/DoingWidget';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ created() {},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
layout: [
|
|
layout: [
|
|
@@ -54,15 +52,6 @@ export default {
|
|
|
editable: false
|
|
editable: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- beforeRouteEnter(to, from, next) {
|
|
|
|
|
- next(vm => {
|
|
|
|
|
- vm.$store.commit('updateHeaderHeight', 'home');
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- beforeRouteLeave(to, from, next) {
|
|
|
|
|
- this.$store.commit('updateHeaderHeight');
|
|
|
|
|
- next();
|
|
|
|
|
- },
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
save() {
|
|
save() {
|
|
|
console.log(JSON.stringify(this.layout));
|
|
console.log(JSON.stringify(this.layout));
|