scan-log.vue 960 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <common-table
  3. ref="pageRef"
  4. :pageConfig="pageConfig"
  5. :columns="columns"
  6. :tools="false"
  7. :bodyStyle="{ padding: 0 }"
  8. >
  9. </common-table>
  10. </template>
  11. <script setup>
  12. import { ref, reactive } from 'vue';
  13. import CommonTable from '@/components/CommonPage/CommonTable.vue';
  14. defineOptions({ name: 'accountChangeLog' });
  15. /** 表格列配置 */
  16. const columns = ref([
  17. { label: '序号', type: 'index', align: 'center', width: 60 },
  18. { label: 'ISBN', prop: 'baseInfo', align: 'center' },
  19. { label: '商品名称', prop: 'money', align: 'center' },
  20. { label: '扫描时间', prop: 'createTime', align: 'center' }
  21. ]);
  22. /** 页面组件实例 */
  23. const pageRef = ref(null);
  24. const pageConfig = reactive({
  25. pageUrl: '/book/bookInfo/list',
  26. fileName: '余额变动',
  27. cacheKey: 'accountChangeLogTable'
  28. });
  29. //刷新表格
  30. function reload(where) {
  31. pageRef.value?.reload(where);
  32. }
  33. </script>