brazeCom.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!-- 点检判定 -->
  2. <template>
  3. <div class="mainContentBox">
  4. <avue-crud
  5. ref="crudRef2"
  6. :data="tableData"
  7. :option="option"
  8. />
  9. </div>
  10. </template>
  11. <script setup>
  12. import { useDictionaryStore} from "@/store";
  13. import {processBrazePage} from '@/api/braze'
  14. const tableData = ref([])
  15. const { dicts } = useDictionaryStore();
  16. const option = {
  17. addBtn: false,
  18. selection: false,
  19. viewBtn: false,
  20. editBtn: false,
  21. delBtn: false,
  22. menu: false,
  23. column: [
  24. {
  25. label: "工序名称",
  26. prop: "operationName",
  27. },
  28. {
  29. label: "钎焊编码",
  30. prop: "brazeCode",
  31. },
  32. {
  33. label: "钎焊名称",
  34. prop: "brazeName",
  35. },
  36. {
  37. label: "起始端",
  38. prop: "lineStart",
  39. },
  40. {
  41. label: "结束端",
  42. prop: "lineEnd",
  43. },
  44. {
  45. label: "线径",
  46. prop: "wireDiameter",
  47. hide: true,
  48. },
  49. {
  50. label: "长度",
  51. prop: "length",
  52. hide: true,
  53. },
  54. {
  55. label: "操作人",
  56. prop: "updator",
  57. type: "select",
  58. dicData: dicts.user_name_list,
  59. props: {"label": "dictLabel","value":"dictValue"},
  60. },
  61. {
  62. label: "操作时间",
  63. prop: "updated",
  64. }
  65. ],
  66. };
  67. const refreshTra = (row) => {
  68. const data = {
  69. seqNo: row.seqNo,
  70. workOrderCode: row.workOrderCode,
  71. }
  72. dataList(data)
  73. };
  74. defineExpose({ refreshTra });
  75. const dataList = (data) => {
  76. processBrazePage(data).then(res => {
  77. tableData.value = res.data.records
  78. })
  79. }
  80. </script>