constants.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { selectObj } from '@/utils/select'
  2. import { C21WealthSearchType, IC21WealthParams } from './types'
  3. import { statusObj } from '@/utils/tableData'
  4. export const C21WEALTH_PARAM_ROWS: C21WealthSearchType[] = [
  5. { name: '业务编号', key: 'num', type: '输入框' },
  6. { name: '申请名称', key: 'name', type: '输入框' },
  7. { name: '发起部门', key: 'deptName', type: '输入框' },
  8. { name: '发起人', key: 'userName', type: '输入框' },
  9. { name: '发起日期范围', key: 'date', type: '日期选择' },
  10. { name: '申请状态', key: 'status', type: '下拉框', data: selectObj['流程申请状态'] },
  11. { name: '选择角色', key: 'userType', type: '下拉框', data: selectObj['角色'] }
  12. ]
  13. export const C21WEALTH_TABLE_COLUMNS = [
  14. ['txt', '业务编号', 'num'],
  15. ['txt', '申请名称', 'name'],
  16. ['txt', '发起部门', 'deptName'],
  17. ['txt', '发起人', 'creatorName'],
  18. ['txt', '发起日期', 'createTime'],
  19. ['txtChange', '申请状态', 'status', statusObj]
  20. ]
  21. export const MEDIA_TYPES = [
  22. {
  23. label: '图像',
  24. value: 'img'
  25. },
  26. {
  27. label: '3D',
  28. value: 'model'
  29. },
  30. {
  31. label: '音频',
  32. value: 'audio'
  33. },
  34. {
  35. label: '视频',
  36. value: 'video'
  37. },
  38. {
  39. label: '文档',
  40. value: 'doc'
  41. },
  42. {
  43. label: '其他',
  44. value: 'other'
  45. }
  46. ]
  47. export const DEFAULT_C21WEALTH_PARAMS: IC21WealthParams = {
  48. pageNum: 1,
  49. pageSize: 10,
  50. num: '',
  51. userName: '',
  52. deptName: '',
  53. name: '',
  54. status: '',
  55. userType: ''
  56. }