formSearchGroup.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { ref } from "vue";
  2. interface SearchItem {
  3. key: string;
  4. type: 'input' | 'select' | 'datePicker' | 'radio';
  5. label?: string;
  6. placeholder?: string;
  7. hidden: boolean;
  8. defaultValue?: any;
  9. disabled?: boolean;
  10. filterable?: boolean;
  11. clearable?: boolean;
  12. options?: { label: string; value: string | number; disabled?: boolean }[];
  13. }
  14. // 不同类别的日志筛选项
  15. export const differentTypeLogSearchList = ref<SearchItem[]>([
  16. {
  17. key: 'schoolId',
  18. type: 'select',
  19. label: '',
  20. placeholder: '全部学校',
  21. hidden: false,
  22. filterable: true,
  23. // defaultValue: 0,
  24. options: [],
  25. },
  26. {
  27. key: 'accountType',
  28. type: 'select',
  29. label: '',
  30. placeholder: '全部类型',
  31. hidden: false,
  32. // defaultValue: 0,
  33. options: [],
  34. },
  35. {
  36. key: 'userAccount',
  37. type: 'input',
  38. label: '',
  39. placeholder: '请输入账号',
  40. hidden: false,
  41. defaultValue: '',
  42. options: [],
  43. },
  44. // {
  45. // key: 'moduleType',
  46. // type: 'select',
  47. // label: '功能模块',
  48. // placeholder: '请选择功能模块',
  49. // hidden: false,
  50. // defaultValue: 0,
  51. // options: [],
  52. // },
  53. // {
  54. // key: 'operationType',
  55. // type: 'select',
  56. // label: '操作类型',
  57. // placeholder: '请选择操作类型',
  58. // hidden: false,
  59. // defaultValue: 0,
  60. // options: [],
  61. // },
  62. ])
  63. export const peopleLogSearchList = ref<SearchItem[]>([
  64. {
  65. key: 'dateRange',
  66. type: 'datePicker',
  67. placeholder: '请选择时间范围',
  68. hidden: false,
  69. defaultValue: '',
  70. options: [],
  71. },
  72. ])