ScanCheckMiss.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <div class="scan-check-miss h-full">
  3. <qm-low-form
  4. :params="searchParams"
  5. :fields="searchFields"
  6. :label-width="80"
  7. ></qm-low-form>
  8. <a-table :data-source="tableData" :columns="columns" size="middle" bordered>
  9. </a-table>
  10. </div>
  11. </template>
  12. <script name="ScanCheckMiss" lang="ts" setup>
  13. import { ref, computed } from "vue";
  14. import type { TableColumnsType } from "@qmth/ui";
  15. //todo 入参名
  16. const searchParams = ref({
  17. a: "",
  18. b: "",
  19. c: "",
  20. d: "",
  21. e: "",
  22. f: "",
  23. });
  24. const searchFields = ref([
  25. {
  26. prop: "a",
  27. type: "select",
  28. colSpan: 3,
  29. label: "科目",
  30. },
  31. {
  32. prop: "b",
  33. type: "select",
  34. colSpan: 3,
  35. label: "省份",
  36. },
  37. {
  38. prop: "c",
  39. type: "select",
  40. colSpan: 3,
  41. label: "考点",
  42. },
  43. {
  44. prop: "d",
  45. type: "select",
  46. colSpan: 3,
  47. label: "校区",
  48. },
  49. {
  50. prop: "e",
  51. type: "select",
  52. colSpan: 3,
  53. label: "考场号",
  54. },
  55. {
  56. prop: "f",
  57. type: "select",
  58. colSpan: 3,
  59. label: "扫描状态",
  60. },
  61. {
  62. type: "buttons",
  63. colSpan: 5,
  64. children: [
  65. {
  66. text: "查询",
  67. },
  68. {
  69. text: "导出",
  70. attrs: {
  71. type: "default",
  72. },
  73. },
  74. ],
  75. },
  76. ]);
  77. const tableData = ref([{ a: 1, b: 2, c: 3 }]);
  78. const columns: TableColumnsType = [
  79. {
  80. title: "科目",
  81. dataIndex: "a",
  82. },
  83. {
  84. title: "考点",
  85. dataIndex: "b",
  86. },
  87. {
  88. title: "校区",
  89. dataIndex: "c",
  90. },
  91. {
  92. title: "考场号",
  93. dataIndex: "d",
  94. },
  95. {
  96. title: "扫描状态",
  97. dataIndex: "e",
  98. },
  99. ];
  100. </script>
  101. <style lang="less" scoped>
  102. .scan-check-miss {
  103. padding: 20px;
  104. }
  105. </style>