字段配置类型名修改
笑笑 编写于 2023-04-26 22:42:15
NewLife.CubeVue
export const tableSearchConfig = [
  {
    itemType: 'datePicker',
    name: 'dtStart$dtEnd',
    displayName: '鏃堕棿鑼冨洿',
    showInSearch: true,
    options: { type: 'daterange', setDefaultValue: false },
  },
  {
    name: 'Q',
    displayName: '',
    showInSearch: true,
    options: {
      placeholder: '璇疯緭鍏ュ叧閿瓧',
    },
  },
];

export const tableColumnConfig = [
  {
    name: 'id',
    displayName: '缂栧彿',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '缂栧彿',
    showInList: true,
    width: '95',
  },
  {
    name: 'name',
    displayName: '鍚嶇О',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: false,
    isDataObjectField: true,
    description: '鍚嶇О',
    showInList: true,
    width: '95',
  },
  {
    name: 'enable',
    displayName: '鍚敤',
    dataType: 'Boolean',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鍚敤',
    showInList: true,
    width: '95',
  },
  {
    name: 'isSystem',
    displayName: '绯荤粺',
    dataType: 'Boolean',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description:
      '绯荤粺銆傜敤浜庝笟鍔$郴缁熷紑鍙戜娇鐢紝涓嶅彈鏁版嵁鏉冮檺绾︽潫锛岀姝慨鏀瑰悕绉版垨鍒犻櫎',
    showInList: true,
    width: '95',
  },
  {
    name: 'permission',
    displayName: '鏉冮檺',
    dataType: 'String',
    itemType: null,
    length: -1,
    nullable: true,
    isDataObjectField: true,
    description: '鏉冮檺銆傚涓嶅悓璧勬簮鐨勬潈闄愶紝閫楀彿鍒嗛殧锛屾瘡涓祫婧愮殑鏉冮檺瀛愰」绔栫嚎鍒嗛殧',
    showInList: false,
    width: '95',
  },
  {
    name: 'sort',
    displayName: '鎺掑簭',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鎺掑簭',
    showInList: true,
    width: '95',
  },
  {
    name: 'ex1',
    displayName: '鎵╁睍1',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鎵╁睍1',
    showInList: true,
    width: '105',
  },
  {
    name: 'ex2',
    displayName: '鎵╁睍2',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鎵╁睍2',
    showInList: true,
    width: '105',
  },
  {
    name: 'ex3',
    displayName: '鎵╁睍3',
    dataType: 'Double',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鎵╁睍3',
    showInList: true,
    width: '105',
  },
  {
    name: 'ex4',
    displayName: '鎵╁睍4',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鎵╁睍4',
    showInList: true,
    width: '105',
  },
  {
    name: 'ex5',
    displayName: '鎵╁睍5',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鎵╁睍5',
    showInList: true,
    width: '105',
  },
  {
    name: 'ex6',
    displayName: '鎵╁睍6',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鎵╁睍6',
    showInList: true,
    width: '105',
  },
  {
    name: 'createUser',
    displayName: '鍒涘缓鑰?,
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鍒涘缓鑰?,
    showInList: true,
    width: '105',
  },
  {
    name: 'createUserID',
    displayName: '鍒涘缓鐢ㄦ埛',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鍒涘缓鐢ㄦ埛',
    showInList: true,
    width: '120',
  },
  {
    name: 'createIP',
    displayName: '鍒涘缓鍦板潃',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鍒涘缓鍦板潃',
    showInList: true,
    width: '120',
  },
  {
    name: 'createTime',
    displayName: '鍒涘缓鏃堕棿',
    dataType: 'DateTime',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鍒涘缓鏃堕棿',
    showInList: true,
    width: '155',
  },
  {
    name: 'updateUser',
    displayName: '鏇存柊鑰?,
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鏇存柊鑰?,
    showInList: true,
    width: '105',
  },
  {
    name: 'updateUserID',
    displayName: '鏇存柊鐢ㄦ埛',
    dataType: 'Int32',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鏇存柊鐢ㄦ埛',
    showInList: true,
    width: '120',
  },
  {
    name: 'updateIP',
    displayName: '鏇存柊鍦板潃',
    dataType: 'String',
    itemType: null,
    length: 50,
    nullable: true,
    isDataObjectField: true,
    description: '鏇存柊鍦板潃',
    showInList: true,
    width: '120',
  },
  {
    name: 'updateTime',
    displayName: '鏇存柊鏃堕棿',
    dataType: 'DateTime',
    itemType: null,
    length: 0,
    nullable: false,
    isDataObjectField: true,
    description: '鏇存柊鏃堕棿',
    showInList: true,
    width: '155',
  },
  {
    name: 'remark',
    displayName: '澶囨敞',
    dataType: 'String',
    itemType: null,
    length: 500,
    nullable: true,
    isDataObjectField: true,
    description: '澶囨敞',
    showInList: true,
    width: '95',
  },
];