From 8f20ea83adc48a3a1a21dc74d8baf94229893a4f Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 28 Aug 2024 22:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/book/components/addBook.vue | 4 +- src/views/book/components/checkBook.vue | 162 ++++++++++++---------- src/views/book/count.vue | 33 +++-- src/views/book/index.vue | 2 +- src/views/config/banner.vue | 12 +- src/views/config/components/addBanner.vue | 82 +++++++++-- src/views/course/components/addClass.vue | 2 +- src/views/course/components/addCourse.vue | 72 ++++++++-- src/views/course/components/applyForm.vue | 19 ++- src/views/course/history.vue | 9 +- src/views/course/index.vue | 3 +- src/views/course/txl.vue | 6 +- src/views/login/index.vue | 4 +- src/views/student/components/detail.vue | 7 +- src/views/student/index.vue | 6 +- src/views/student/search.vue | 7 +- 16 files changed, 295 insertions(+), 135 deletions(-) diff --git a/src/views/book/components/addBook.vue b/src/views/book/components/addBook.vue index b32e5fb..c8eab93 100644 --- a/src/views/book/components/addBook.vue +++ b/src/views/book/components/addBook.vue @@ -24,7 +24,7 @@
@@ -304,7 +304,7 @@ }) this.user_options = res.list.data if(this.user_options.length===0){ - this.$Message.warning("当前课程下还没有学员") + this.$Message.warning("当前搜索没有学员") } this.loading = false }, diff --git a/src/views/book/components/checkBook.vue b/src/views/book/components/checkBook.vue index 3a98548..f25fa6a 100644 --- a/src/views/book/components/checkBook.vue +++ b/src/views/book/components/checkBook.vue @@ -36,10 +36,13 @@
同行人: - - @@ -118,7 +133,7 @@ import myMixins from "@/mixin/selectMixin.js"; import { show, - save, + save, retry } from "@/api/book/index.js" export default { @@ -131,20 +146,27 @@ isShow: false, type: 'show', id: '', - submitObj: {}, - thirdArr:[], + submitObj: {}, + thirdArr: [], form: { name: '', - }, - table_item:[{ - prop:'remark', - label:'预约内容' - },{ - prop:'finally', - label:'预约结果' - },{ - prop:'created_at', - label:'发送时间' + }, + table_item: [{ + prop: 'remark', + label: '预约内容', + width: 200 + }, { + prop: 'finally', + label: '预约结果', + width: 200 + }, { + prop: 'response_data', + label: '第三方返回数据', + width: 200 + },{ + prop: 'created_at', + label: '发送时间', + width: 200 }] } }, @@ -160,32 +182,32 @@ this.isShow = false this.$emit('refresh') }) - }, - sendBook(id){ - retry({ - id:id - }).then(res=>{ - this.$message({ - type: 'success', - message: '重新发送预约成功' - }) - this.getDetail() - }) }, - formatHH(val){ - if(val){ - return this.$moment(val).format("HH:mm:ss") - }else{ - return '' - } + sendBook(id) { + retry({ + id: id + }).then(res => { + this.$message({ + type: 'success', + message: '重新发送预约成功' + }) + this.getDetail() + }) + }, + formatHH(val) { + if (val) { + return this.$moment(val).format("HH:mm:ss") + } else { + return '' + } }, async getDetail() { await show({ id: this.id, - show_relation: ['user', 'appointmentAccompany', 'appointmentConfig','third_appointment_logs'] + show_relation: ['user', 'appointmentAccompany', 'appointmentConfig', 'third_appointment_logs'] }).then(res => { - this.submitObj = this.base.deepCopy(res, this.submitObj) - this.thirdArr = res.third_appointment_logs?res.third_appointment_logs:[] + this.submitObj = this.base.deepCopy(res, this.submitObj) + this.thirdArr = res.third_appointment_logs ? res.third_appointment_logs : [] }) } }, diff --git a/src/views/book/count.vue b/src/views/book/count.vue index 6c8368d..b491fd6 100644 --- a/src/views/book/count.vue +++ b/src/views/book/count.vue @@ -11,16 +11,16 @@
-
+
- + + :key="item.id" + :label="item.name" + :value="item.id">
@@ -84,7 +84,10 @@ import showCount from './components/showCount.vue'; import { indexStudy - } from '@/api/student/index.js' + } from '@/api/student/index.js' + import { + index as courseIndex + } from "@/api/course/index.js" export default { components: { addCount, @@ -95,7 +98,7 @@ select: { name: '', course_name:'', - courses_ing:1, + courses_id:'', page: 1, page_size: 10, }, @@ -137,7 +140,8 @@ } }, created() { - this.getList() + this.getList() + this.getCourseList() }, methods: { pageIndexChange(e) { @@ -148,6 +152,15 @@ this.select.page_size = e this.select.page = 1 this.getList() + }, + async getCourseList() { + const res = await courseIndex({ + page: 1, + page_size: 999, + sort_name: 'id', + sort_type: 'DESC', + }) + this.course_options = res.data }, async getList() { const res = await indexStudy({ @@ -155,7 +168,7 @@ page_size: this.select.page_size, name: this.select.name, course_name:this.select.course_name, - courses_ing: this.select.courses_ing + courses_id: this.select.courses_id }) this.list = res.list.data this.total = res.list.total diff --git a/src/views/book/index.vue b/src/views/book/index.vue index 0405b3a..525cf4a 100644 --- a/src/views/book/index.vue +++ b/src/views/book/index.vue @@ -177,7 +177,7 @@ page: this.select.page, page_size: this.select.page_size, user_name: this.select.user_name, - show_relation: ['user', 'appointmentConfig', 'third_appointment_logs','third_plate_logs'], + show_relation: ['user', 'appointmentConfig', 'third_appointment_logs'], filter: [{ key: 'date', op: 'eq', diff --git a/src/views/config/banner.vue b/src/views/config/banner.vue index ef132ae..c0cbf62 100644 --- a/src/views/config/banner.vue +++ b/src/views/config/banner.vue @@ -96,11 +96,13 @@ value: '首页' }, { id: 2, - value: '课程' - }, { - id: 3, - value: '公告' - }], + value: '列表' + } + // , { + // id: 3, + // value: '公告' + // }, + ], type_options: [{ id: 1, value: '小程序' diff --git a/src/views/config/components/addBanner.vue b/src/views/config/components/addBanner.vue index 0b49c23..1c9e913 100644 --- a/src/views/config/components/addBanner.vue +++ b/src/views/config/components/addBanner.vue @@ -31,12 +31,25 @@ 跳转类型:
- +
+ +