gaoluyang
16 小时以前 ee42bf1badae06026efa79dc17d2a541297ab49b
src/pages/equipmentManagement/ledger/index.vue
@@ -143,6 +143,7 @@
// 查询列表(current/size 固定传 -1)
const getList = () => {
  showLoadingToast('加载中...')
  const params = {
    current: -1,
    size: -1,
@@ -151,12 +152,27 @@
  getLedgerPage(params)
    .then((res) => {
      ledgerList.value = res.data.records
      closeToast()
    })
    .catch(() => {
      closeToast()
      showToast('获取数据失败')
    })
}
// 显示加载提示
const showLoadingToast = (message) => {
  uni.showLoading({
    title: message,
    mask: true
  });
};
// 关闭提示
const closeToast = () => {
  uni.hideLoading();
};
// 新增 - 跳转到详情页面
const add = () => {
  uni.navigateTo({