export const tableOption = {
  "border": true,
  "index": false,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "viewBtn": false,
  "viewBtnText": "查看详情",
  "column": [{
      "label": '选择',
      "prop": 'check',
      "width": 60,
      "hide": false,
      "slot": true
    },
    {
      "type": "date",
      "label": "注册时间",
      "prop": "createTime",
      "search": true,
      "searchRange": true,
      "valueFormat": 'yyyy-MM-dd'
    },
    {
      "type": "input",
      "label": "ID",
      "prop": "showId",
    },
    {
      "type": "input",
      "label": "昵称",
      "prop": "nickname",
      "search": true,
    },
    {
      "type": "input",
      "label": "手机号",
      "prop": "phone",
      "search": true,
    },
    {
      "type": "input",
      "label": "上级用户",
      "prop": "superName",
      formatter: (row, value, label) => {
        return [row.superName, row.superPhone, row.superShowId].join("-")
      }
    },
    {
      "type": "input",
      "label": "邀请人数",
      "prop": "invite",
    },
    {
      "type": "input",
      "label": "A币",
      "prop": "a",
      "slot": true
    },
    {
      "type": "input",
      "label": "B币",
      "prop": "b",
      "slot": true
    },
    {
      "type": "input",
      "label": "财富值",
      "prop": "value",
      "slot": true
    },
    {
      "type": "select",
      "label": "VIP等级",
      "prop": "gradeName",
      "search": true,
      "dicUrl": "/admin/systemSet/getDropDown?type=UserVip",
      formatter: (row) => {
        return row.vipName == 'V0' ? '--' : row.vipName
      }
    },
    {
      "type": "input",
      "label": "成长值",
      "prop": "growthValue",
      "slot": true
    },
    {
      "type": "select",
      "label": "任务员等级",
      "searchLabelWidth": 90,
      "prop": "growthName",
      "search": true,
      "dicUrl": "/admin/systemSet/getDropDown?type=UserTaskLevel",
      formatter: (row) => {
        return row.growthName == '任务员' ? '--' : row.growthName
      }
    },
    {
      "type": "input",
      "label": "参与任务数",
      "prop": "taskCount",
    },
    {
      "type": "select",
      "label": "是否为推广员",
      "prop": "isPromote",
      "searchLabelWidth": 100,
      "search": true,
      "dicData": [{
        "label": "是",
        "value": 1
      }, {
        "label": "否",
        "value": 0
      }],
      formatter: (row) => {
        return row.isPromote ? '是' : '否'
      }
    },
    {
      "type": "select",
      "label": "状态",
      "prop": "isBlock",
      "search": true,
      "dicData": [{
        "label": "是",
        "value": 1
      }, {
        "label": "否",
        "value": 0
      }],
      formatter: (row) => {
        return row.isBlock ? '禁用' : '有效'
      }
    },
  ]
}
