From fe000094c317dc2d502685117508927e94dc1da0 Mon Sep 17 00:00:00 2001 From: ltx <19304474232@163.com> Date: Thu, 19 Mar 2026 01:20:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86&?= =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/match/project.js | 2 +- src/router/route.ts | 63 ++++- .../match/manage/Steps/Step1BasicInfo.vue | 2 +- src/views/match/manage/Steps/Step2Units.vue | 26 +- .../match/manage/Steps/Step3ProjectConfig.vue | 30 +-- src/views/match/manage/dialog.vue | 4 +- src/views/match/manage/index.vue | 2 +- src/views/match/points/config/index.vue | 222 ++++++++++++++++++ src/views/match/points/general/index.vue | 138 +++++++++++ src/views/match/points/index.vue | 38 +-- src/views/match/points/unit/index.vue | 135 +++++++++++ src/views/match/project/index.vue | 20 +- src/views/match/user/index.vue | 14 -- 13 files changed, 628 insertions(+), 68 deletions(-) create mode 100644 src/views/match/points/config/index.vue create mode 100644 src/views/match/points/general/index.vue create mode 100644 src/views/match/points/unit/index.vue delete mode 100644 src/views/match/user/index.vue diff --git a/src/api/match/project.js b/src/api/match/project.js index 3938e7c..f388829 100644 --- a/src/api/match/project.js +++ b/src/api/match/project.js @@ -84,7 +84,7 @@ export const projectDeleteDelete = (data) => { * @param {number} params.id - 项目ID */ export const projectDetailGet = (params) => { - return http.post('/project/detail', params); + return http.post(`/project/detail/${params.id}`, params); }; /** diff --git a/src/router/route.ts b/src/router/route.ts index 09d5a9b..2db405d 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -420,7 +420,7 @@ export const dynamicRoutes: Array = [ }, ] }, - { + { path: '/user', name: 'user', component: () => import('/@/views/user/general/index.vue'), @@ -460,6 +460,67 @@ export const dynamicRoutes: Array = [ }, ] }, + { + path: '/integral', + name: "integral", + component: () => import('/@/views/user/general/index.vue'), + meta: { + isKeepAlive: true, + }, + children: [ + { + path: '/integral/config', + name: 'integralconfig', + component: () => import('/@/views/match/points/config/index.vue'), + meta: { + title: '积分配置', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'iconfont icon-shouye', + }, + }, + { + path: '/integral/record', + name: 'integralrecord', + component: () => import('/@/views/match/user/unit/index.vue'), + meta: { + isKeepAlive: true, + }, + children:[ + { + path: '/integral/record/general', + name: 'integralrecordgeneral', + component: () => import('/@/views/match/points/general/index.vue'), + meta: { + title: '用户积分记录', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + } + }, + { + path: '/integral/record/unit', + name: 'integralrecordunit', + component: () => import('/@/views/match/points/unit/index.vue'), + meta: { + title: '单位积分记录', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + } + } + ] + }, + ] + }, ]; /** diff --git a/src/views/match/manage/Steps/Step1BasicInfo.vue b/src/views/match/manage/Steps/Step1BasicInfo.vue index 70918c7..6f90dab 100644 --- a/src/views/match/manage/Steps/Step1BasicInfo.vue +++ b/src/views/match/manage/Steps/Step1BasicInfo.vue @@ -144,7 +144,7 @@ const rules = ref({ }); const handleAvatarSuccess = (response) => { - localFormData.value.coverImage = response?.data ?? response?.url ?? response; + localFormData.value.coverImage = response?.[0]?.url; }; const validate = async () => { diff --git a/src/views/match/manage/Steps/Step2Units.vue b/src/views/match/manage/Steps/Step2Units.vue index a5c80fc..b4a62d6 100644 --- a/src/views/match/manage/Steps/Step2Units.vue +++ b/src/views/match/manage/Steps/Step2Units.vue @@ -1,6 +1,6 @@