| | |
| | | import useUserStore from "@/store/modules/user"; |
| | | import PageHeader from "@/components/PageHeader.vue"; |
| | | const userStore = useUserStore() |
| | | const showLoadingToast = (message) => { |
| | | uni.showLoading({ |
| | | title: message, |
| | | mask: true |
| | | }) |
| | | } |
| | | const closeToast = () => { |
| | | uni.hideLoading() |
| | | } |
| | | |
| | | // 搜索关键词 |
| | | const searchKeyword = ref(''); |
| | |
| | | }; |
| | | // 查询列表 |
| | | const getList = () => { |
| | | showLoadingToast('加载中...') |
| | | const page = { |
| | | current: -1, |
| | | size: -1 |
| | |
| | | ledgerListPage({...page}).then((res) => { |
| | | ledgerList.value = res.records; |
| | | total.value = res.total; |
| | | closeToast() |
| | | }).catch(() => { |
| | | // tableLoading.value = false; |
| | | closeToast() |
| | | }); |
| | | }; |
| | | |