﻿export const detailJson = {
  id: 38,
  workspaceId: 7,
  name: 'dh_test',
  description: '3333',
  status: 'ONLINE',
  creator: 'esc-daihuan',
  operator: 'bi-li.huifang',
  version: 2,
  lastEditVersion: 2,
  deleted: 0,
  createTime: '2023-05-04 14:18:15',
  updateTime: '2023-05-04 14:18:15',
  folder: {
    id: -1,
    name: '根目录',
    deleted: 0,
    absolutePath: '根目录',
  },
  dashboardComponents: [
    // {
    //   id: 20815,
    //   dashboardId: 38,
    //   version: 2,
    //   type: 'FILTER',
    //   createTime: '2023-05-04 14:18:15',
    //   updateTime: '2023-10-12 12:14:49',
    //   layout:
    //     '{"i": 1655780724531, "chartType": "FILTER", "y": 0, "h": 2, "viewH": 2, "x": 0, "w": 20, "_filterId": "80086633", "moved": false, "show": true, "_chartId": 13662, "compareUpdateTime": "2022-06-22 15:39:13", "verticalDistance": 5}',
    //   content: [
    //     {
    //       id: 2256,
    //       name: '日期',
    //       chartId: 13662,
    //       filterType: 'TIME',
    //       defaultValue: '[]',
    //       sort: 0,
    //       createTime: '2022-06-22 15:39:13',
    //       updateTime: '2022-06-22 15:39:13',
    //     },
    //     {
    //       id: 2257,
    //       name: '性别',
    //       chartId: 13662,
    //       filterType: 'ENUM',
    //       sort: 0,
    //       createTime: '2022-06-22 15:39:13',
    //       updateTime: '2022-06-22 15:39:13',
    //       filterMethod: null,
    //     },
    //   ],
    // },
    // {
    //   id: 20816,
    //   dashboardId: 38,
    //   version: 2,
    //   type: 'REMARK',
    //   createTime: '2023-05-04 14:18:15',
    //   updateTime: '2023-10-12 12:14:52',
    //   layout:
    //     '{"i":1655698808707,"chartType":"note","y":2,"h":2,"viewH":2,"x":0,"w":20,"title":"说明3","content":"这是","show":true,"_chartId":13663,"compareUpdateTime":"2022-06-22 15:39:13","verticalDistance":10}',
    //   content: '{"title": "说明3", "content": "这是"}',
    // },
    // {
    //   id: 20817,
    //   dashboardId: 38,
    //   version: 2,
    //   type: 'FILTER',
    //   createTime: '2023-05-04 14:18:15',
    //   updateTime: '2023-10-12 12:14:49',
    //   layout:
    //     '{"i": 1655780729266, "chartType": "FILTER", "y": 4, "h": 2, "viewH": 2, "x": 0, "w": 20, "_filterId": "18680344", "moved": false, "show": true, "_chartId": 13666, "compareUpdateTime": "2022-06-22 15:39:13", "verticalDistance": 15}',
    //   content: '[]',
    // },
    // {
    //   id: 20818,
    //   dashboardId: 38,
    //   version: 2,
    //   type: 'REMARK',
    //   createTime: '2023-05-04 14:18:15',
    //   updateTime: '2023-10-12 12:14:52',
    //   layout:
    //     '{"i":1655698577267,"chartType":"note","y":6,"h":3,"viewH":3,"x":0,"w":20,"title":"说明2","content":"这是一个说","moved":false,"show":true,"compareUpdateTime":"2022-06-22 15:39:13","_chartId":13667,"verticalDistance":20}',
    //   content: '{"title": "说明2", "content": "这是一个说"}',
    // },
    // {
    //   id: 20819,
    //   dashboardId: 38,
    //   version: 2,
    //   type: 'REMARK',
    //   createTime: '2023-05-04 14:18:15',
    //   updateTime: '2023-10-12 12:14:52',
    //   layout:
    //     '{"i":1655698825874,"chartType":"note","y":9,"h":2,"viewH":2,"x":0,"w":20,"title":"说明4","content":"zheshi","moved":false,"show":true,"_chartId":13670,"compareUpdateTime":"2022-06-22 15:39:13","verticalDistance":25}',
    //   content: '{"title": "说明4", "content": "zheshi"}',
    // },
    {
      id: 20820,
      dashboardId: 38,
      version: 2,
      type: 'REPORT',
      reportId: 8223,
      createTime: '2023-05-04 14:18:15',
      updateTime: '2023-05-04 14:18:15',
      layout:
        '{"w":10,"h":10,"x":0,"y":11,"chartType":"table","i":8223,"name":"查询1050401","size":"middle","moved":false,"show":true}',
      content: '{"reportId":8223, id: 8223, "name":"查询1050401"}',
    },
  ],
  favorite: false,
}

export const detailJson2 = {
  id: 38,
  workspaceId: 7,
  name: 'dh_test',
  description: '3333',
  status: 'ONLINE',
  creator: 'esc-daihuan',
  operator: 'bi-li.huifang',
  version: 2,
  lastEditVersion: 2,
  deleted: 0,
  createTime: '2023-05-04 14:18:15',
  updateTime: '2023-05-04 14:18:15',
  folder: {
    id: -1,
    name: '根目录',
    deleted: 0,
    absolutePath: '根目录',
  },
  dashboardComponents: [
    {
      type: 'REMARK',
      id: 1659341560702,
      layout: {
        i: 1659341560702,
        x: 0,
        y: 0,
        w: 12,
        h: 10,
        moved: false,
        show: true,
        _chartId: 20806,
        compareUpdateTime: '2023-04-13 16:34:40',
        verticalDistance: 5,
      },
      content: {
        title: '12',
        content:
          '<input data-type="tag" unselectable="on" readonly="true" class="inputarea-tag--input" data-id="1669362181779" data-label="\u77e5\u4e4e>>" data-href="http://baidu.com" type="button" value="\u77e5\u4e4e>>"><br>\u77e5\u4e4e\u94fe\u63a5',
      },
    },
    {
      i: '1697180890959',
      type: 'FILTER',
      layout: {
        id: '1697180890959',
        moved: false,
        x: 0,
        y: 0,
        w: 12,
        h: 10,
      },
      content: [
        {
          id: 1697180893898,
          name: 'TEXT',
          _editting: false,
          chartIntellect: false,
          filterType: 'TEXT',
          required: false,
          single: false,
          filterMethod: 'EQUAL',
          enumResourceType: undefined,
          enumList: [],
          enumList_input: [],
          setDefault: true,
          value: [{ operator: 'EQUAL', value: '1' }],
          charts: { 8719: { datasetId: 1466, fieldName: 'title' } },
        },
        {
          id: 1697181169178,
          name: 'NUMBER',
          _editting: false,
          chartIntellect: false,
          filterType: 'NUMBER',
          required: false,
          single: false,
          filterMethod: 'OR',
          enumResourceType: undefined,
          enumList: [],
          enumList_input: [],
          setDefault: true,
          value: [
            { operator: 'EQUAL', value: '1' },
            { operator: 'EQUAL', value: '2' },
          ],
          charts: { 8719: { datasetId: 1466, fieldName: 'sprint_begin_date' } },
        },
        // {
        //   id: 1697181194275,
        //   name: 'ENUM',
        //   _editting: false,
        //   chartIntellect: false,
        //   filterType: 'ENUM',
        //   required: false,
        //   single: false,
        //   filterMethod: 'EQUAL',
        //   enumResourceType: 'MANUAL',
        //   enumList: [{ label: '2', value: '1' }],
        //   enumList_input: [{ label: '2', value: '1' }],
        //   setDefault: true,
        //   value: ['1'],
        //   charts: { 8721: { datasetId: 1466, fieldName: 'sprint_end_date' } },
        // },
        // {
        //   id: 1697181214470,
        //   name: 'INPUT',
        //   _editting: false,
        //   chartIntellect: false,
        //   filterType: 'INPUT',
        //   required: false,
        //   single: false,
        //   filterMethod: 'EQUAL',
        //   enumResourceType: undefined,
        //   enumList: [],
        //   enumList_input: [],
        //   setDefault: true,
        //   value: '1,2',
        //   charts: { 8722: { datasetId: 1466, fieldName: 'title' } },
        // },
        // {
        //   id: 1697181239003,
        //   name: 'DATE',
        //   _editting: false,
        //   chartIntellect: false,
        //   filterType: 'DATE',
        //   required: false,
        //   single: false,
        //   filterMethod: 'EQUAL',
        //   enumResourceType: undefined,
        //   enumList: [],
        //   enumList_input: [],
        //   setDefault: true,
        //   value: {
        //     mode: 1,
        //     date: ['2023-10-12', '2023-10-12'],
        //     offset: [1, 1],
        //   },
        //   charts: { 8719: { datasetId: 1466, fieldName: 'title' } },
        // },
      ],
    },
    {
      type: 'CHART',
      id: 1659341560111,
      layout: {
        i: 1659341560111,
        x: 0,
        y: 3,
        w: 12,
        h: 36,
        moved: false,
        show: true,
        compareUpdateTime: '2023-04-13 16:34:40',
        verticalDistance: 5,
      },
      content: {
        name: '图表',
      },
    },
  ],
}
