From 9ccec564ffcdbbcbca0564c09b2cc066a7be9b4b Mon Sep 17 00:00:00 2001 From: "2090205686@qq.com" Date: Wed, 28 May 2025 12:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83-=E6=88=91?= =?UTF-8?q?=E7=9A=84=E9=87=91=E8=9E=8D=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sub-operation-service/src/router/index.js | 8 +- .../views/userCenter/components/leftMenu.vue | 3 +- .../userCenter/components/tableComponent.vue | 2 +- .../src/views/userCenter/myFinance.vue | 393 ++++++++++++++++++ .../src/views/userCenter/mySource.vue | 6 +- 5 files changed, 406 insertions(+), 6 deletions(-) create mode 100644 sub-operation-service/src/views/userCenter/myFinance.vue diff --git a/sub-operation-service/src/router/index.js b/sub-operation-service/src/router/index.js index 76dbcb6..7fd855e 100644 --- a/sub-operation-service/src/router/index.js +++ b/sub-operation-service/src/router/index.js @@ -76,9 +76,15 @@ export const constantRoutes = [ { path: '/sub-operation-service/mySource', component: () => import('@/views/userCenter/mySource.vue'), - name: 'userLands', + name: 'mySource', meta: { title: '我的溯源' }, }, + { + path: '/sub-operation-service/myFinance', + component: () => import('@/views/userCenter/myFinance.vue'), + name: 'myFinance', + meta: { title: '我的金融' }, + }, ], }, diff --git a/sub-operation-service/src/views/userCenter/components/leftMenu.vue b/sub-operation-service/src/views/userCenter/components/leftMenu.vue index a7521ba..dd85883 100644 --- a/sub-operation-service/src/views/userCenter/components/leftMenu.vue +++ b/sub-operation-service/src/views/userCenter/components/leftMenu.vue @@ -34,7 +34,8 @@ const leftMenu = reactive([ { name: 'agricultural', title: '我的购物车', icon: 'menu1.png', path: '/sub-operation-service/userCenter' }, { name: 'supplier', title: '我的订单', icon: 'menu2-1.png', path: '/sub-operation-service/userOrders' }, // { name: 'purchaser', title: '我的土地', icon: 'menu3-1.png', path: '/sub-operation-service/userLands' }, - { name: 'purchaser', title: '我的溯源', icon: 'menu3-1.png', path: '/sub-operation-service/mySource' }, + { name: 'mySource', title: '我的溯源', icon: 'menu3-1.png', path: '/sub-operation-service/mySource' }, + { name: 'myFinance', title: '我的金融', icon: 'menu3-1.png', path: '/sub-operation-service/myFinance' }, ]); let currentIndex = ref(0); diff --git a/sub-operation-service/src/views/userCenter/components/tableComponent.vue b/sub-operation-service/src/views/userCenter/components/tableComponent.vue index 035df88..03b63cc 100644 --- a/sub-operation-service/src/views/userCenter/components/tableComponent.vue +++ b/sub-operation-service/src/views/userCenter/components/tableComponent.vue @@ -246,7 +246,7 @@ onBeforeUnmount(() => { } .pagination-container { margin-top: 10px; - padding: 0 16px; + padding: 0 20px; display: flex; justify-content: space-between; color: #999; diff --git a/sub-operation-service/src/views/userCenter/myFinance.vue b/sub-operation-service/src/views/userCenter/myFinance.vue new file mode 100644 index 0000000..8e41880 --- /dev/null +++ b/sub-operation-service/src/views/userCenter/myFinance.vue @@ -0,0 +1,393 @@ + + + diff --git a/sub-operation-service/src/views/userCenter/mySource.vue b/sub-operation-service/src/views/userCenter/mySource.vue index fd4e63b..a6c5a50 100644 --- a/sub-operation-service/src/views/userCenter/mySource.vue +++ b/sub-operation-service/src/views/userCenter/mySource.vue @@ -33,7 +33,7 @@
- 搜索 + 查询 重置
@@ -155,7 +155,7 @@ const tableData = ref([]); // 列配置 const columns = ref([ { prop: 'id', label: 'ID', width: '80' }, - { prop: 'productName', label: '产品名称' }, + { prop: 'productName', label: '产品名称', width: '180px' }, { prop: 'applyTime', label: '申请时间', width: '180px' }, { prop: 'status', label: '申请状态', slotName: 'status' }, { prop: 'report', label: '检测报告', slotName: 'report' }, @@ -168,7 +168,7 @@ const generateMockData = () => { 'list|30': [ { 'id|+1': 1, - productName: '@cname', //产品名称 水果 蔬菜 + productName: '原生态 有机 西红柿', //产品名称 水果 蔬菜 applyTime: '@datetime', 'status|1': [1, 1, 1, 0], //0待检测 1已检测 'report|1': [1, 1, 1, 0], //0无报告 1有报告