index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="dustMonitor">
  3. <customHeader>束管日报表</customHeader>
  4. <a-table :columns="columns" :data-source="tableData" size="small" :scroll="{ y: 500 }" class="tableW"> </a-table>
  5. </div>
  6. </template>
  7. <script setup lang="ts">
  8. import { ref, onMounted } from 'vue';
  9. import { columns } from './bundle-table.data';
  10. import { getBundleInfoList } from './bundle-table.api';
  11. import customHeader from '/@/components/vent/customHeader.vue';
  12. let tableData = ref<any[]>([]);
  13. async function getTableList() {
  14. let res = await getBundleInfoList({ type: 'bundle' });
  15. const content = res.content;
  16. let contentArr = JSON.parse(content);
  17. tableData.value = contentArr;
  18. }
  19. onMounted(() => {
  20. getTableList();
  21. });
  22. </script>
  23. <style lang="less" scoped>
  24. @import '/@/design/theme.less';
  25. .dustMonitor {
  26. width: 100%;
  27. height: 100%;
  28. padding: 80px 10px 15px 10px;
  29. box-sizing: border-box;
  30. position: relative;
  31. }
  32. :deep(.zxm-table-thead > tr > th:last-child) {
  33. border-right: 1px solid #91e9fe !important;
  34. }
  35. :deep(.zxm-picker-input > input) {
  36. color: #fff;
  37. }
  38. :deep(.zxm-select:not(.zxm-select-customize-input) .zxm-select-selector) {
  39. border: 1px solid var(--vent-form-item-border) !important;
  40. background-color: #ffffff00 !important;
  41. }
  42. :deep(.zxm-select-selection-item) {
  43. color: #fff !important;
  44. }
  45. </style>