From a1ef67d205da00cfa413da98e51dcf91a5bfe5e2 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 13 Sep 2024 17:55:46 +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 | 27 +- src/views/book/components/checkBook.vue | 2 +- src/views/book/index.vue | 26 +- src/views/component/imports.vue | 2 +- src/views/course/apply.vue | 2 +- src/views/course/apply_list.vue | 254 ++++++++++-------- src/views/course/class.vue | 2 +- src/views/course/components/addClass.vue | 36 ++- .../course/components/setMainTeacher.vue | 6 +- src/views/course/history.vue | 2 +- src/views/course/index.vue | 2 +- src/views/course/pay.vue | 63 +++-- src/views/course/txl.vue | 41 ++- src/views/student/index.vue | 55 ++-- src/views/student/search.vue | 29 +- 15 files changed, 349 insertions(+), 200 deletions(-) diff --git a/src/views/book/components/addBook.vue b/src/views/book/components/addBook.vue index c8eab93..7632e31 100644 --- a/src/views/book/components/addBook.vue +++ b/src/views/book/components/addBook.vue @@ -84,7 +84,7 @@
- +
@@ -142,7 +142,10 @@ } from '@/api/student/index.js' import { index as courseIndex - } from "@/api/course/index.js" + } from "@/api/course/index.js" + import { + index as getAppointment + } from "@/api/book/appointment.js" export default { mixins: [myMixins], components: { @@ -200,7 +203,8 @@ }, created() { this.getCourseList() - this.getUserList('') + this.getUserList('') + this.getSites() }, methods: { submit(status) { @@ -254,7 +258,8 @@ show_relation: ['user', 'appointmentConfig'] }).then(res => { this.form = this.base.requestToForm(res, this.form) - this.form.status = res.status ? res.status : 0 + this.form.status = res.status ? res.status : 0 + this.form.site = res.site?parseInt(res.site):'' this.form.timeRange = [this.formatHH(res.start_time), this.formatHH(res.end_time)] }) }, @@ -298,7 +303,7 @@ async getUserList(query) { const res = await indexStudy({ page: 1, - page_size: 99999, + page_size: 99, name: query, course_id: this.form.course_id, }) @@ -307,6 +312,18 @@ this.$Message.warning("当前搜索没有学员") } this.loading = false + }, + async getSites() { + const res = await getAppointment({ + page: 1, + page_size: 999, + // filter: [{ + // key: 'status', + // op: 'eq', + // value: 1 + // }] + }) + this.site_options = res.data }, changeCourse(e) { if (e) { diff --git a/src/views/book/components/checkBook.vue b/src/views/book/components/checkBook.vue index 5325799..9f359ee 100644 --- a/src/views/book/components/checkBook.vue +++ b/src/views/book/components/checkBook.vue @@ -23,7 +23,7 @@
预约场地: - {{submitObj.appointment_config?submitObj.appointment_config.name:''}} + {{submitObj.appointment_config?submitObj.appointment_config.real_name:''}}
车牌: diff --git a/src/views/book/index.vue b/src/views/book/index.vue index e0c2e5e..8366116 100644 --- a/src/views/book/index.vue +++ b/src/views/book/index.vue @@ -64,12 +64,15 @@