From 47fe0f44c37f22fb6835198805762e33cced12a6 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 31 May 2023 18:27:24 +0800 Subject: [PATCH] rebuild balance page --- src/views/balance/Balance.vue | 407 +------------------------- src/views/balance/components/Exp.vue | 207 +++++++++++++ src/views/balance/components/Form.vue | 85 ++++++ src/views/balance/components/Log.vue | 66 +++++ src/views/balance/components/log.ts | 63 ++++ 5 files changed, 425 insertions(+), 403 deletions(-) create mode 100644 src/views/balance/components/Exp.vue create mode 100644 src/views/balance/components/Form.vue create mode 100644 src/views/balance/components/Log.vue create mode 100644 src/views/balance/components/log.ts diff --git a/src/views/balance/Balance.vue b/src/views/balance/Balance.vue index 6fa87b04..bc7537d0 100644 --- a/src/views/balance/Balance.vue +++ b/src/views/balance/Balance.vue @@ -1,6 +1,7 @@ diff --git a/src/views/balance/components/Form.vue b/src/views/balance/components/Form.vue new file mode 100644 index 00000000..c2a174f8 --- /dev/null +++ b/src/views/balance/components/Form.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/balance/components/Log.vue b/src/views/balance/components/Log.vue new file mode 100644 index 00000000..8bdb098d --- /dev/null +++ b/src/views/balance/components/Log.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/views/balance/components/log.ts b/src/views/balance/components/log.ts new file mode 100644 index 00000000..fdf5640b --- /dev/null +++ b/src/views/balance/components/log.ts @@ -0,0 +1,63 @@ +// 注意,这只是一个临时的数据文件,后来会被替换为后端接口 + +interface FS { + index: number + // 是否为收入 + income: boolean + reason: string + date: string + amount: number +} + +export const FSLog: FS[] = [ + { + index: 1, + income: false, + reason: + '啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 2, + income: true, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 3, + income: false, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 4, + income: false, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 5, + income: false, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 6, + income: false, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, + { + index: 7, + income: false, + reason: '啊这可海星', + date: '2019/10/07', + amount: 1007, + }, +]