From a0ba35ba5c6d524e1069bb8a4abe674891e4ceb9 Mon Sep 17 00:00:00 2001
From: Sun_sun <469361609@qq.com>
Date: Wed, 15 Oct 2025 17:18:06 +0800
Subject: [PATCH] =?UTF-8?q?2025-10-15=20=E6=B7=BB=E5=8A=A0=E9=87=91?=
=?UTF-8?q?=E8=9E=8D=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/financial.js | 15 +
src/assets/svg/financial.svg | 1 +
src/components/RichTextEditor.vue | 2 +-
src/layout/Layout.vue | 210 ++++++-----
src/router/index.js | 9 +
src/utils/api.js | 3 +-
src/views/Financial.vue | 579 ++++++++++++++++++++++++++++++
src/views/Program.vue | 4 +-
vite.config.js | 5 +
9 files changed, 743 insertions(+), 85 deletions(-)
create mode 100644 src/api/financial.js
create mode 100644 src/assets/svg/financial.svg
create mode 100644 src/views/Financial.vue
diff --git a/src/api/financial.js b/src/api/financial.js
new file mode 100644
index 0000000..c7a34da
--- /dev/null
+++ b/src/api/financial.js
@@ -0,0 +1,15 @@
+import {financialRequest} from '@/utils/api'
+
+// 金融相关API
+export const financialAPI = {
+ // 登录
+ list: (params) => financialRequest.get('/financial/list', {params}),
+ add: (data) => financialRequest.post('/financial', data),
+ update: (data) => financialRequest.patch("/financial", data),
+ delete: (id) => financialRequest.delete(`/financial/${id}`),
+ getOne: (id) => financialRequest.get(`/financial/${id}`),
+}
+
+export default {
+ financialAPI
+}
diff --git a/src/assets/svg/financial.svg b/src/assets/svg/financial.svg
new file mode 100644
index 0000000..2cb8f6e
--- /dev/null
+++ b/src/assets/svg/financial.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/RichTextEditor.vue b/src/components/RichTextEditor.vue
index 2d0cf71..9ceaf4a 100644
--- a/src/components/RichTextEditor.vue
+++ b/src/components/RichTextEditor.vue
@@ -115,7 +115,7 @@ const editorConfig = {
fontFamily: {
fontFamilyList: [
'黑体', '仿宋', '楷体', '标楷体', '华文仿宋', '华文楷体', '宋体', '微软雅黑',
- 'Arial', 'Tahoma', 'Verdana', 'Times New Roman', 'Courier New'
+ // 'Arial', 'Tahoma', 'Verdana', 'Times New Roman', 'Courier New'
]
},
// 配置颜色
diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue
index 2dda9e7..7002022 100644
--- a/src/layout/Layout.vue
+++ b/src/layout/Layout.vue
@@ -3,131 +3,177 @@
-
+
-
+
-
+
-
+
@@ -193,12 +239,13 @@
+
+
\ No newline at end of file
diff --git a/src/views/Program.vue b/src/views/Program.vue
index 789d773..841ceb7 100644
--- a/src/views/Program.vue
+++ b/src/views/Program.vue
@@ -170,7 +170,7 @@
-
+
@@ -388,7 +388,7 @@ const reset = () => {
introduction: undefined,
paymentMethod: undefined
}
- formRef.value.resetForm()
+ proxy.$refs["formRef"].resetFields()
}
const cancel = () => {
diff --git a/vite.config.js b/vite.config.js
index 8399b31..3a5413f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -47,6 +47,11 @@ export default defineConfig({
changeOrigin: true,
rewrite: (path) => path.replace(/^\/message/, '')
},
+ '/financial':{
+ target: 'http://192.168.0.15:3008',
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/financial/, '')
+ },
'/uploads': {
target: 'https://test.zrbjr.com',
changeOrigin: true