From d8b7a4f1c19cd0018c9e5638543d2fdf053c6ef9 Mon Sep 17 00:00:00 2001 From: ltx <19304474232@163.com> Date: Wed, 25 Mar 2026 02:16:50 +0800 Subject: [PATCH] =?UTF-8?q?update:bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/match/appuser.js | 10 +- src/api/match/unituser.js | 2 - src/utils/http.ts | 1 + src/views/marchant/certification/index.vue | 85 +++--- src/views/match/user/unit/index.vue | 32 +-- src/views/team/athlete/index.vue | 284 ++++++++++++++++++++- src/views/team/leader/index.vue | 1 + src/views/team/trainer/index.vue | 1 + 8 files changed, 341 insertions(+), 75 deletions(-) diff --git a/src/api/match/appuser.js b/src/api/match/appuser.js index fb85554..5383d94 100644 --- a/src/api/match/appuser.js +++ b/src/api/match/appuser.js @@ -52,7 +52,7 @@ export const appuserAuditPost = (data) => { * @param {number} [params.PageSize] - 每页条数 */ export const appuserLeaderPageGet = (params) => { - return http.get('/appuser/leader/page', { params }); + return http.get('/appuser/member/page', { params }); }; /** @@ -67,7 +67,7 @@ export const appuserLeaderPageGet = (params) => { * @param {number} [params.PageSize] - 每页条数 */ export const appuserCoachPageGet = (params) => { - return http.get('/appuser/coach/page', { params }); + return http.get('/appuser/member/page', { params }); }; /** @@ -85,7 +85,7 @@ export const appuserCoachPageGet = (params) => { * @param {string} [data.remark] - 备注 */ export const appuserLeaderSavePost = (data) => { - return http.post('/appuser/leader/save', data); + return http.post('/appuser/member/save', { ...data, personType: 3}); }; /** @@ -103,7 +103,7 @@ export const appuserLeaderSavePost = (data) => { * @param {string} [data.remark] - 备注 */ export const appuserCoachSavePost = (data) => { - return http.post('/appuser/coach/save', data); + return http.post('/appuser/member/save', {data , personType: 2}); }; /** @@ -135,7 +135,7 @@ export const appuserMemberStatusPost = (data) => { * @param {number} [params.PageSize] - 每页条数 */ export const appuserAthletePageGet = (params) => { - return http.get('/appuser/member/page', { ...params, personType: 1 }); + return http.get('/appuser/member/page', { params }); }; /** diff --git a/src/api/match/unituser.js b/src/api/match/unituser.js index 7174d29..214b2c5 100644 --- a/src/api/match/unituser.js +++ b/src/api/match/unituser.js @@ -63,8 +63,6 @@ export const teamDetailGet = (id) => { * 新增团队 * @param {Object} data - 团队信息 * @param {string} data.name - 团队名称 - * @param {string} [data.introduction] - 团队介绍 - * @param {string} data.establishedDate - 成立日期 * @param {Array} [data.leaderIds] - 领队ID列表 * @param {Array} [data.coachIds] - 教练ID列表 * @param {Array} [data.memberIds] - 成员ID列表 diff --git a/src/utils/http.ts b/src/utils/http.ts index e087d15..64b92ab 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -200,6 +200,7 @@ class Axios { * @returns */ get = (url: string, config?: AxiosRequestConfig): Promise> => { + console.log('get', url, config); return this.instance.get(url, config); }; diff --git a/src/views/marchant/certification/index.vue b/src/views/marchant/certification/index.vue index 6411e76..4071cf5 100644 --- a/src/views/marchant/certification/index.vue +++ b/src/views/marchant/certification/index.vue @@ -1,7 +1,6 @@ -