import lineChart1 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart1'
import lineChart2 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart2'
import lineChart3 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart3'
import lineChart4 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart4'
import lineChart5 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart5'
import barChart1 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart1'
import barChart2 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart2'
import barChart3 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart3'
import barChart8 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart8'
import barChart5 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart5'
import barChart7 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart7'
import barChart9 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart9'
import pieChart from 'dvcp-dv-ui/components/AiEchart/template/pie/pieChart2'

const components = [
  {
    type: 'chart',
    label: '图表',
    list: [
      {
        label: '柱状图',
        type: 'bar',
        list: [
          {
            code: 'widget-linechart',
            type: 'barChart1',
            label: '柱状图1',
            title: '柱状图',
            border: 'border1',
            icon: 'icontext_box',
            value: '',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar1.png',
            width: 500,
            sourceDataId: '',
            height: 300,
            dataX: '',
            zIndex: 1,
            dataY: [],
            top: 0,
            left: 0,
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart1,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart1',
            label: '柱状图2',
            icon: 'icontext_box',
            value: '',
            title: '柱状图2',
            width: 500,
            border: 'border1',
            sourceDataId: '',
            height: 300,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar2.png',
            dataX: '',
            dataY: [],
            top: 0,
            zIndex: 1,
            left: 0,
            dataType: 'staticData',
            api: '',
            apiData: [],
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart2,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart3',
            label: '柱状图3',
            title: '柱状图3',
            icon: 'icontext_box',
            value: '',
            width: 500,
            sourceDataId: '',
            height: 300,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar3.png',
            dataX: '',
            dataY: [],
            border: 'border1',
            top: 0,
            left: 0,
            zIndex: 1,
            dataType: 'staticData',
            api: '',
            apiData: [],
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart3,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart5',
            label: '柱状图4',
            title: '柱状图4',
            icon: 'icontext_box',
            value: '',
            width: 500,
            sourceDataId: '',
            height: 300,
            dataX: '',
            dataY: [],
            zIndex: 1,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar5.png',
            top: 0,
            left: 0,
            border: 'border1',
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart5,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart7',
            label: '柱状图5',
            title: '柱状图5',
            icon: 'icontext_box',
            value: '',
            width: 500,
            sourceDataId: '',
            height: 300,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar7.png',
            dataX: '',
            zIndex: 1,
            dataY: [],
            top: 0,
            left: 0,
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart7,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart8',
            label: '柱状图6',
            title: '柱状图6',
            icon: 'icontext_box',
            value: '',
            width: 500,
            sourceDataId: '',
            border: 'border1',
            height: 300,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar8.png',
            dataX: '',
            dataY: [],
            zIndex: 1,
            top: 0,
            left: 0,
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart8,
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'barChart9',
            label: '柱状图7',
            title: '柱状图7',
            border: 'border1',
            icon: 'icontext_box',
            value: '',
            width: 500,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar9.png',
            sourceDataId: '',
            height: 300,
            dataX: '',
            dataY: [],
            zIndex: 1,
            top: 0,
            left: 0,
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23 },
              { name: '水电费', v1: 12 },
              { name: '凡哥', v1: 67 },
              { name: '党费', v1: 98 }
            ],
            config: barChart9,
            dynamicData: []
          }
        ]
      },
      {
        label: '折线图',
        type: 'line',
        list: [
          {
            code: 'widget-linechart',
            type: 'lineChart1',
            label: '折线图1',
            title: '折线图1',
            border: 'border1',
            icon: 'icontext_box',
            value: '',
            width: 500,
            height: 300,
            top: 0,
            left: 0,
            zIndex: 1,
            api: '',
            apiData: [],
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line1.png',
            dataX: '',
            dataY: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: lineChart1,
            sourceDataId: '',
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'lineChart2',
            label: '折线图2',
            title: '折线图2',
            border: 'border1',
            icon: 'icontext_box',
            value: '',
            width: 500,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line2.png',
            height: 300,
            top: 0,
            left: 0,
            dataX: '',
            dataY: [],
            zIndex: 1,
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: lineChart2,
            sourceDataId: '',
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'lineChart3',
            label: '折线图3',
            title: '折线图3',
            icon: 'icontext_box',
            border: 'border1',
            value: '',
            width: 500,
            height: 300,
            zIndex: 1,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line3.png',
            top: 0,
            left: 0,
            dataX: '',
            dataY: [],
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: lineChart3,
            sourceDataId: '',
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'lineChart4',
            label: '折线图4',
            title: '折线图4',
            icon: 'icontext_box',
            value: '',
            border: 'border1',
            width: 500,
            height: 300,
            zIndex: 1,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line4.png',
            top: 0,
            left: 0,
            dataX: '',
            dataY: [],
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: lineChart4,
            sourceDataId: '',
            dynamicData: []
          },
          {
            code: 'widget-linechart',
            type: 'lineChart5',
            label: '折线图5',
            title: '折线图5',
            icon: 'icontext_box',
            value: '',
            border: 'border1',
            width: 500,
            height: 300,
            zIndex: 1,
            top: 0,
            left: 0,
            dataX: '',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line5.png',
            dataY: [],
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: lineChart5,
            sourceDataId: '',
            dynamicData: []
          }
        ]
      },
      {
        label: '饼图',
        type: 'pie',
        list: [
          {
            code: 'widget-linechart',
            type: 'pieChart',
            label: '饼图',
            title: '饼图',
            icon: 'icontext_box',
            value: '',
            border: 'border1',
            width: 500,
            height: 300,
            zIndex: 1,
            top: 0,
            left: 0,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png',
            dataX: '',
            dataY: [],
            api: '',
            apiData: [],
            dataType: 'staticData',
            staticData: [
              { name: '阿斯达', v1: 23, v2: 33 },
              { name: '水电费', v1: 12, v2: 34 },
              { name: '凡哥', v1: 67, v2: 25 },
              { name: '党费', v1: 98, v2: 85 }
            ],
            config: pieChart,
            sourceDataId: '',
            dynamicData: []
          }
        ]
      }
    ]
  },
  {
    type: 'table',
    label: '表格',
    list: [
      {
        label: '表格',
        type: 'table',
        list: [
          {
            type: 'table',
            label: '表格',
            title: '表格',
            border: 'border1',
            width: 650,
            height: 400,
            zIndex: 1,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
            dataX: '',
            dataY: [],
            rowNum: 7,
            isShowIndex: '1',
            sourceDataId: '',
            api: '',
            apiData: [],
            dataType: 'staticData',
            dynamicData: [],
            staticData: [
              { name: '列1', v: 23, v2: 3 },
              { name: '列2', v: 12, v2: 4 },
              { name: '列2', v: 12, v2: 4 }
            ]
          }
        ]
      }
    ]
  },
  {
    type: 'other',
    label: '其他',
    list: [
      {
        label: '地图',
        type: 'map',
        list: [
          {
            type: 'map',
            label: '地图',
            display: 'map',
            width: 840,
            height: 534,
            left: 0,
            top: 0,
            mask: '2',
            areaId: '',
            zIndex: 1,
            apiData: [],
            dataType: 'staticData',
            dynamicData: [],
            staticData: [
              {
                content: '中卫慧通',
                lng: 117.1339399,
                lat: 36.7190487
              }
            ],
            api: '',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/map.png'
          }
        ]
      },
      {
        label: '边框',
        type: 'panel',
        list: [
          {
            type: 'panel',
            label: '边框',
            title: '边框',
            border: 'border0',
            width: 400,
            height: 400,
            isZoom: false,
            zIndex: 1,
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/border.png'
          }
        ]
      },
      {
        label: '装饰',
        type: 'display',
        list: [
          {
            type: 'display',
            label: '装饰',
            display: 'display0',
            width: 840,
            height: 540,
            isZoom: false,
            zIndex: 1,
            title: '标题',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/display.png',
            sourceDataId: '',
            dataType: 'staticData',
            staticData: [
              {
                key: '个人服务办理',
                value: 247
              },
              {
                key: '同比上月',
                value: 247
              }
            ]
          }
        ]
      },
      {
        label: '轮播图',
        type: 'swiper',
        list: [
          {
            type: 'swiper',
            label: '轮播图',
            width: 400,
            height: 300,
            zIndex: 1,
            border: 'border2',
            dataType: 'staticData',
            staticData: [
              {
                img: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png',
                title: '湖羊',
                content: `歙县众城湖羊养殖专业合作社
							徐晓红 - 18273645627
							歙县郑村镇唐跃村碉墅`
              }
            ],
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
          }
        ]
      },
      {
        label: '视频播放器',
        type: 'video',
        list: [
          {
            type: 'video',
            label: '视频播放器',
            width: 400,
            height: 300,
            zIndex: 1,
            src: '',
            border: 'border2',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
          }
        ]
      },
      {
        label: '数据统计',
        type: 'summary',
        list: [
          {
            type: 'summary',
            label: '数据统计',
            display: 'summary0',
            width: 480,
            height: 240,
            zIndex: 1,
            top: 0,
            left: 0,
            dataX: '',
            dataY: [],
            border: 'border3',
            sourceDataId: '',
            title: '数据统计',
            dataType: 'staticData',
            staticData: [
              {
                key: '个人服务办理',
                value: 247
              },
              {
                key: '同比上月',
                value: 247
              }
            ],
            dynamicData: [],
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
          }
        ]
      },
      {
        label: '视频监控',
        type: 'monitor',
        list: [
          {
            type: 'monitor',
            label: '视频监控',
            src: '',
            width: 480,
            height: 240,
            zIndex: 1,
            top: 0,
            left: 0,
            title: '',
            moniterId: '',
            monitorType: 'cmcc',
            api: '/app/appzyvideoequipment/list',
            border: 'border2',
            sourceDataId: '',
            dataType: 'staticData',
            staticData: '',
            dynamicData: '',
            thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png'
          }
        ]
      }
    ]
  }
]

export { components }
