const Mock = require('mockjs');
const moment = require('moment');
module.exports = {
    url: 'smv/',
    data: {
        layoutData: layoutData()
    }
};

function layoutData() {
    return Mock.mock({
        returnObject: [
            {
                i: '0',
                x: 0,
                y: 0,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '1',
                x: 6,
                y: 0,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'barChart'
            },
            {
                i: '2',
                x: 12,
                y: 0,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'pieChart'
            },
            {
                i: '3',
                x: 18,
                y: 0,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '4',
                x: 0,
                y: 4,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '5',
                x: 6,
                y: 4,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '6',
                x: 12,
                y: 4,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '7',
                x: 18,
                y: 4,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '8',
                x: 0,
                y: 8,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: '9',
                x: 6,
                y: 8,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: 'a',
                x: 12,
                y: 8,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            },
            {
                i: 'b',
                x: 18,
                y: 8,
                w: 6,
                h: 4,
                formData: {},
                title: '标题',
                chartType: 'lineChart'
            }
        ]
    });
}
