gaoluyang
17 小时以前 6a53bb5d557783bc2d83d702b52e36a7322821b8
src/views/payable/index.vue
@@ -144,14 +144,22 @@
  total: 0,
  // 查询参数
  queryParams: {
    searchAll: "",
    search: "",
  },
});
const userInfo = ref({});
onMounted(() => {
onMounted(async () => {
  let res = userStore.getInfo();
  userInfo.value = res.user;
  // 确保字典数据已加载完成,避免第一次进入页面时付款类型显示不出来
  try {
    if (!dictStore.dict || dictStore.dict.length === 0) {
      await dictStore.initDict();
    }
  } catch (error) {
    console.error('字典数据加载失败:', error);
  }
  getList()
})
const handleEdit = (row) => {
@@ -206,7 +214,7 @@
    let resp = await findPayablePage(
        {
          current: state.current,
          pageSize: state.current
          size: state.pageSize
          , ...state.queryParams
        })
    tableData.value = resp.data.records