export const data = [
  [
    {
      fieldName: 'name',
      value: "PT柜电压(KV)",
      colSpan: 1,
      rowSpan: 5
    },
    {
      fieldName: 'muxian',
      value: '点我更改',
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: 123,
      colSpan: 1,
      rowSpan: 1,
      controlType: 7
    },
    {
      fieldName: 'hour1',
      value: "禁止更改",
      disabled: true,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "J512",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 512,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "J513",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 513,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "J513",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 514,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "J514",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 515,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "J515",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "功率因数(cosφ)",
      colSpan: 1,
      rowSpan: 5
    },
    {
      fieldName: 'muxian',
      value: 511,
      colSpan: 2,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 512,
      colSpan: 2,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 513,
      colSpan: 2,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 514,
      colSpan: 2,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "John Brown",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 515,
      colSpan: 2,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "出线柜电流(A)",
      colSpan: 1,
      rowSpan: 4
    },
    {
      fieldName: 'muxian',
      value: 511,
      colSpan: 1,
      rowSpan: 2
    },
    {
      fieldName: 'guihao',
      value: "5127",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "出线柜电流(A)",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 511,
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'guihao',
      value: "5128",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "出线柜电流(A)",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 512,
      colSpan: 1,
      rowSpan: 2
    },
    {
      fieldName: 'guihao',
      value: "5104",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "出线柜电流(A)",
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'muxian',
      value: 512,
      colSpan: 1,
      rowSpan: 0
    },
    {
      fieldName: 'guihao',
      value: "5106",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ],
  [
    {
      fieldName: 'name',
      value: "最小负荷（KW）",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'muxian',
      value: 0,
      colSpan: 3,
      rowSpan: 1
    },
    {
      fieldName: 'guihao',
      value: "Lake Park",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour1',
      value: "C",
      colSpan: 0,
      rowSpan: 1
    },
    {
      fieldName: 'hour2',
      value: 2035,
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'yougong',
      value: " 42",
      colSpan: 1,
      rowSpan: 1
    },
    {
      fieldName: 'wugong',
      value: "SoftLake Co",
      colSpan: 1,
      rowSpan: 1
    }
  ]
]

export const columns = [
  {
    title: "参数名称",
    key: "name",
    dataIndex: "name"
  },
  {
    title: "母线",
    key: "muxian",
    dataIndex: "muxian"
  },
  {
    title: "柜号",
    key: "guihao",
    dataIndex: "guihao"
  },
  {
    title: "时间",
    children: [
      {
        title: "1",
        key: "hour1",
        dataIndex: "hour1"
      },
      {
        title: "2",
        key: "hour2",
        dataIndex: "hour2"
      }
    ]
  },
  {
    title: "电能表读数",
    children: [
      {
        title: "有功",
        key: "yougong",
        dataIndex: "yougong"
      },
      {
        title: "无功",
        key: "wugong",
        dataIndex: "wugong"
      }
    ]
  }
]

/**
 * table
 * 接口返回的数据结构格式
 */
export const ret = {
  data,
  columns
}

/**
 * 编辑保存后提交的数据结构
 */
export const payload = {
  data: {
    name: 'x111',
    muxian: '12',
    guihao: '31',
    hour1: 12,
    hour2: 31,
    yougong: '123',
    wugong: '123'
  }
}

/**
 * 编辑保存后提交结果返回的数据结构
 */
export const saveResult = {
  IsSuccessful: true,
  Data: {
    IsSucceed: true,
    Msg: '保存成功'
  }
}