From 6ece9ecfc37b427632625a456ac6a448ffdbfbcf Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 24 Nov 2025 16:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/historyCourse/index.js | 56 + src/layout/components/AppMain.vue | 3 +- src/layout/index.vue | 3 +- src/router/index.js | 9 +- src/styles/iconfont.css | 27 +- src/styles/iconfont.ttf | Bin 13000 -> 14672 bytes src/styles/iconfont.woff | Bin 8312 -> 9196 bytes src/styles/iconfont.woff2 | Bin 7148 -> 7904 bytes src/views/calendar/components/addCalendar.vue | 1468 ++++++++--------- src/views/course/components/addTypes.vue | 16 + src/views/course/types.vue | 99 +- src/views/dashboard/index.vue | 20 +- .../components/addHistoryCourse.vue | 274 +++ src/views/historyCourse/index.vue | 201 +++ src/views/statistics/index.vue | 432 +++-- src/views/student/schoolmateCompany.vue | 133 +- vue.config.js | 6 +- 17 files changed, 1866 insertions(+), 881 deletions(-) create mode 100644 src/api/historyCourse/index.js create mode 100644 src/views/historyCourse/components/addHistoryCourse.vue create mode 100644 src/views/historyCourse/index.vue diff --git a/src/api/historyCourse/index.js b/src/api/historyCourse/index.js new file mode 100644 index 0000000..b4571b5 --- /dev/null +++ b/src/api/historyCourse/index.js @@ -0,0 +1,56 @@ +import request from "@/utils/request"; +function customParamsSerializer(params) { + let result = ''; + for (let key in params) { + if (params.hasOwnProperty(key)) { + if (Array.isArray(params[key])) { + params[key].forEach((item, index) => { + if (item.key) { + result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`; + + } else { + result += `${key}[${index}]=${item}&` + } + }); + } else { + result += `${key}=${params[key]}&`; + } + } + } + return result.slice(0, -1); +} + +export function index(params, isLoading = false) { + return request({ + method: "get", + url: "/api/admin/history-courses/index", + params, + paramsSerializer: customParamsSerializer, + isLoading + }) +} + +export function show(params, isLoading = true) { + return request({ + method: "get", + url: "/api/admin/history-courses/show", + params, + isLoading + }) +} + +export function save(data) { + return request({ + method: "post", + url: "/api/admin/history-courses/save", + data + }) +} + +export function destroy(params) { + return request({ + method: "get", + url: "/api/admin/history-courses/destroy", + params + }) +} diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index dc16261..7c4942a 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,5 +1,6 @@ + @@ -219,6 +232,7 @@ show_txl:'', show_mobile:'', auto_schoolmate:'', + is_history:0, }, rules: { name: [{ @@ -263,6 +277,7 @@ this.form.show_txl = res.show_txl?res.show_txl:(res.show_txl==0?0:'') this.form.show_mobile = res.show_mobile?res.show_mobile:(res.show_mobile==0?0:'') this.form.auto_schoolmate = res.auto_schoolmate?res.auto_schoolmate:(res.auto_schoolmate==0?0:'') + this.form.is_history = res.is_history?res.is_history:0 }) }, @@ -294,6 +309,7 @@ show_txl:'', show_mobile:'', auto_schoolmate:'', + is_history:0, }, this.$refs['dialog'].reset() } diff --git a/src/views/course/types.vue b/src/views/course/types.vue index 4a3bb43..ec2c786 100644 --- a/src/views/course/types.vue +++ b/src/views/course/types.vue @@ -6,8 +6,27 @@
- 新增 - +
+ + + + +
+
+ + + + + + +
+
+ 查询 + 重置 +
+
+ 新增 +
@@ -27,14 +46,22 @@ - +