From 2c0bc99c0397a908edfb7dd3d71fcdf9c601a060 Mon Sep 17 00:00:00 2001 From: zcxee <495141071@qq.com> Date: Sat, 7 Oct 2023 19:29:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E7=BB=83=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sch/coach.js | 51 ++++ src/api/zs/feedback.js | 51 ++++ src/views/sch/coach/components/CoachForm.vue | 135 ++++++++++ src/views/sch/coach/index.vue | 159 ++++++++++++ src/views/zs/feedback/index.vue | 253 +++++++++++++++++++ 5 files changed, 649 insertions(+) create mode 100644 src/api/sch/coach.js create mode 100644 src/api/zs/feedback.js create mode 100644 src/views/sch/coach/components/CoachForm.vue create mode 100644 src/views/sch/coach/index.vue create mode 100644 src/views/zs/feedback/index.vue diff --git a/src/api/sch/coach.js b/src/api/sch/coach.js new file mode 100644 index 0000000..ebc8c2e --- /dev/null +++ b/src/api/sch/coach.js @@ -0,0 +1,51 @@ +/* + * @Author: riverQiu + * @Date: 2023-10-07 17:14:32 + * @LastEditors: riverQiu + * @LastEditTime: 2023-10-07 18:02:01 + * @Description:教练接口 + */ +import request from '@/utils/request'; + +// 查询教练列表 +export function listCoach(query) { + return request({ + url: '/sch/coach/list', + method: 'get', + params: query + }); +} + +// 查询教练详细 +export function getCoach(coachId) { + return request({ + url: '/sch/coach/' + coachId, + method: 'get' + }); +} + +// 新增教练 +export function addCoach(data) { + return request({ + url: '/sch/coach', + method: 'post', + data: data + }); +} + +// 修改教练 +export function updateCoach(data) { + return request({ + url: '/sch/coach', + method: 'put', + data: data + }); +} + +// 删除教练 +export function delCoach(coachId) { + return request({ + url: '/sch/coach/' + coachId, + method: 'delete' + }); +} diff --git a/src/api/zs/feedback.js b/src/api/zs/feedback.js new file mode 100644 index 0000000..af7ffa7 --- /dev/null +++ b/src/api/zs/feedback.js @@ -0,0 +1,51 @@ +/* + * @Author: riverQiu + * @Date: 2023-10-07 17:14:38 + * @LastEditors: riverQiu + * @LastEditTime: 2023-10-07 17:14:44 + * @Description: 线索反馈接口 + */ +import request from '@/utils/request'; + +// 查询线索反馈列表 +export function listFeedback(query) { + return request({ + url: '/zs/feedback/list', + method: 'get', + params: query + }); +} + +// 查询线索反馈详细 +export function getFeedback(feedbackId) { + return request({ + url: '/zs/feedback/' + feedbackId, + method: 'get' + }); +} + +// 新增线索反馈 +export function addFeedback(data) { + return request({ + url: '/zs/feedback', + method: 'post', + data: data + }); +} + +// 修改线索反馈 +export function updateFeedback(data) { + return request({ + url: '/zs/feedback', + method: 'put', + data: data + }); +} + +// 删除线索反馈 +export function delFeedback(feedbackId) { + return request({ + url: '/zs/feedback/' + feedbackId, + method: 'delete' + }); +} diff --git a/src/views/sch/coach/components/CoachForm.vue b/src/views/sch/coach/components/CoachForm.vue new file mode 100644 index 0000000..c5df3b1 --- /dev/null +++ b/src/views/sch/coach/components/CoachForm.vue @@ -0,0 +1,135 @@ + + + + diff --git a/src/views/sch/coach/index.vue b/src/views/sch/coach/index.vue new file mode 100644 index 0000000..7d8d549 --- /dev/null +++ b/src/views/sch/coach/index.vue @@ -0,0 +1,159 @@ + + + diff --git a/src/views/zs/feedback/index.vue b/src/views/zs/feedback/index.vue new file mode 100644 index 0000000..4a9c813 --- /dev/null +++ b/src/views/zs/feedback/index.vue @@ -0,0 +1,253 @@ + + +