index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="unit-manage flex flex-col">
  3. <SearchForm :fields="fields" :params="params"></SearchForm>
  4. <div class="flex-1 page-wrap"> </div>
  5. </div>
  6. </template>
  7. <script setup lang="jsx" name="UnitManage">
  8. import { ref, reactive } from 'vue';
  9. const fields = ref([
  10. {
  11. prop: 'a',
  12. label: '业务类型',
  13. type: 'select',
  14. labelWidth: '80px',
  15. colSpan: 4,
  16. },
  17. {
  18. prop: 'b',
  19. label: '负责人',
  20. type: 'select',
  21. labelWidth: '80px',
  22. colSpan: 4,
  23. },
  24. {
  25. prop: 'c',
  26. label: '当前状态',
  27. type: 'select',
  28. labelWidth: '80px',
  29. colSpan: 4,
  30. },
  31. {
  32. prop: 'd',
  33. label: '创建时间',
  34. type: 'select',
  35. labelWidth: '80px',
  36. colSpan: 4,
  37. },
  38. {
  39. type: 'buttons',
  40. colSpan: 3,
  41. children: [
  42. {
  43. type: 'button',
  44. text: '查询',
  45. },
  46. ],
  47. },
  48. {
  49. prop: 'e',
  50. label: '创建时间',
  51. labelWidth: '100px',
  52. colSpan: 4,
  53. },
  54. ]);
  55. const params = reactive({
  56. a: '',
  57. b: '',
  58. c: '',
  59. d: '',
  60. e: [],
  61. });
  62. </script>
  63. <style></style>