gaoluyang
4 天以前 eb62444060a1867ffea6f6c676c8ca55e620f4b6
src/pages/sales/salesAccount/index.vue
@@ -98,6 +98,15 @@
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('');
@@ -112,6 +121,7 @@
};
// 查询列表
const getList = () => {
   showLoadingToast('加载中...')
   const page = {
      current: -1,
      size: -1
@@ -119,8 +129,9 @@
   ledgerListPage({...page}).then((res) => {
      ledgerList.value = res.records;
      total.value = res.total;
      closeToast()
   }).catch(() => {
         // tableLoading.value = false;
      closeToast()
   });
};