formSearchGroup.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. // defaultValue: 0,
  23. options: [],
  24. },
  25. {
  26. key: 'accountTypeCode',
  27. type: 'select',
  28. label: '',
  29. placeholder: '全部类型',
  30. hidden: false,
  31. // defaultValue: 0,
  32. options: [],
  33. },
  34. {
  35. key: 'userAccount',
  36. type: 'input',
  37. label: '',
  38. placeholder: '请输入账号',
  39. hidden: false,
  40. defaultValue: '',
  41. options: [],
  42. },
  43. // {
  44. // key: 'moduleType',
  45. // type: 'select',
  46. // label: '功能模块',
  47. // placeholder: '请选择功能模块',
  48. // hidden: false,
  49. // defaultValue: 0,
  50. // options: [],
  51. // },
  52. // {
  53. // key: 'operationType',
  54. // type: 'select',
  55. // label: '操作类型',
  56. // placeholder: '请选择操作类型',
  57. // hidden: false,
  58. // defaultValue: 0,
  59. // options: [],
  60. // },
  61. ])
  62. export const peopleLogSearchList = ref<SearchItem[]>([
  63. {
  64. key: 'dateRange',
  65. type: 'datePicker',
  66. placeholder: '请选择时间范围',
  67. hidden: false,
  68. defaultValue: '',
  69. options: [],
  70. },
  71. ])