export const moduleCfgCols = [
  { dataIndex: "modular_id", title: "编号", align: "center" },
  { dataIndex: "modular_name", title: "数据来源名称", align: "center" },
  { dataIndex: "project_name", title: "项目名称", align: "center" },
  { dataIndex: "is_show", title: "展示状态", align: "center" },
  { dataIndex: "original_type_handle", title: "数据源类型", align: "center" },
  // { dataIndex: 'sort', title: '排序', align: 'center'},
  { dataIndex: "action", title: "操作", align: "center" },
];

export const viewCfgCols = [
  { dataIndex: "field_name", title: "字段名称", align: "center" },
  { dataIndex: "field_title", title: "字段标题", align: "center" },
  {
    dataIndex: "field_numerical_name",
    title: "字段类型",
    align: "center",
    width: 120,
  },
  { dataIndex: "show_type", title: "展示类型", align: "center", width: 120 },
  { dataIndex: "field_type_name", title: "搜索类型", align: "center" },
  { dataIndex: "is_search", title: "是否可搜索", align: "center" },
  { dataIndex: "sort", title: "排序", align: "center" },
  { dataIndex: "belong_to_table", title: "所属表名称", align: "center" },
  { dataIndex: "is_other_database", title: "数据库特配", align: "center" },
  { dataIndex: "original_type", title: "数据源类型", align: "center" },
  { dataIndex: "original_sql", title: "数据源", align: "center", width: 400 },
  { dataIndex: "action", title: "操作", align: "center", width: 120 },
];

export const originalTypes = [
  { label: "sql", value: 1 },
  { label: "json", value: 2 },
];

export const showTypeOpts = [
  { label: "文本", value: "text" },
  { label: "图片", value: "img" },
  { label: "链接", value: "link" },
  { label: "富文本", value: "richText" },
];
