From 481e405e566642a93394b1e28af023448286d599 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期四, 26 三月 2026 17:53:17 +0800
Subject: [PATCH] refactor: 移除多个页面的编辑、删除及新增功能按钮
---
src/pages/financialManagement/revenueManagement/index.vue | 31 +------------------------------
1 files changed, 1 insertions(+), 30 deletions(-)
diff --git a/src/pages/financialManagement/revenueManagement/index.vue b/src/pages/financialManagement/revenueManagement/index.vue
index a23272a..f08f2e7 100644
--- a/src/pages/financialManagement/revenueManagement/index.vue
+++ b/src/pages/financialManagement/revenueManagement/index.vue
@@ -90,41 +90,12 @@
return n.toFixed(2);
};
-const goAdd = () => {
- uni.navigateTo({ url: "/pages/financialManagement/revenueManagement/edit?type=add" });
-};
-const goEdit = (row) => {
- uni.navigateTo({ url: `/pages/financialManagement/revenueManagement/edit?type=edit&id=${row.id}` });
-};
-const confirmDelete = (row) => {
- uni.showModal({
- title: "鎻愮ず",
- content: "纭鍒犻櫎璇ヨ褰曪紵",
- success: async (r) => {
- if (r.confirm) {
- const ids = Array.isArray(row) ? row.map(i=>i.id) : [row.id];
- const res = await delAccountIncome(ids);
- if (res?.code === 200) getList();
- }
- },
- });
-};
-
-const onIncomeTypeConfirm = (e) => {
- const item = incomeTypes.value[e.value[0]];
- if (item) form.incomeType = item.value;
-};
-const onMethodConfirm = (e) => {
- const item = paymentMethods.value[e.value[0]];
- if (item) form.incomeMethod = item.value;
-};
-
const goBack = () => {
uni.navigateBack();
};
-syncDict();
onShow(() => {
+ syncDict();
getList();
});
</script>
--
Gitblit v1.9.3