From 9b94070dc5784dcbd4b533062ffad8afb638068f Mon Sep 17 00:00:00 2001 From: 15004070936 <1097449274@qq.com> Date: Thu, 30 Apr 2026 17:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E9=A2=9C=E8=89=B2=20=E9=9A=BE=E5=BA=A6=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E8=AF=BE=E7=A8=8B=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 4 +- package.json | 2 +- src/api/school/sc/cla/claTime.js | 8 + src/api/school/sc/cla/index.js | 9 +- src/api/school/sc/course/index.js | 5 +- src/api/school/sc/memberCardType/index.js | 8 +- src/components/sc/base/roomSelect.vue | 8 +- .../sc/claTime/addClaTimeAttend.vue | 25 +- .../sc/claTime/changeClaTimeAttend.vue | 31 +- src/components/sc/claTime/changeTime.vue | 20 +- src/components/sc/claTime/changeTimeRule.vue | 150 ++++++--- src/components/sc/claTime/claTimeCalendar.vue | 29 +- src/components/sc/claTime/claTimeTable.vue | 7 +- src/components/sc/claTime/hadClaTimeTable.vue | 7 +- src/components/sc/course/addCourse.vue | 144 +++++++-- src/components/sc/course/cla/claSelect.vue | 4 - src/components/sc/course/courseSelect.vue | 46 +-- src/layout/components/Sidebar/Logo.vue | 2 +- src/views/columns/config/venue.vue | 105 ++----- src/views/index.vue | 22 +- src/views/login.vue | 2 +- src/views/mall/board/index.vue | 13 +- src/views/mall/product/AddProduct.vue | 3 +- src/views/register.vue | 2 +- src/views/school/claTime/attend/index.vue | 293 ------------------ src/views/school/claTime/rule/index.vue | 7 +- src/views/school/course/cla/index.vue | 2 +- src/views/school/course/index.vue | 66 +++- src/views/school/room/index.vue | 12 +- .../school/salary/commission_plans/index.vue | 6 +- src/views/system/dept/index.vue | 134 ++++---- src/views/system/role/index.vue | 4 +- src/views/system/user/index.vue | 33 +- vue.config.js | 2 +- 35 files changed, 508 insertions(+), 709 deletions(-) delete mode 100644 src/views/school/claTime/attend/index.vue diff --git a/.env.development b/.env.development index c926653..3e1da22 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,7 @@ ENV = 'development' # 若依管理系统/开发环境 #VUE_APP_BASE_API = 'https://mall.ichengle.top/api' #VUE_APP_BASE_API = '/dev-api' -VUE_APP_BASE_API = 'http://localhost:8080' +VUE_APP_BASE_API = 'http://localhost:8081' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_APP_JUDGE_STAR = 0 diff --git a/.env.production b/.env.production index dcbb1d6..ee7d41a 100644 --- a/.env.production +++ b/.env.production @@ -1,9 +1,9 @@ # 页面标题 -VUE_APP_TITLE = 若依商城管理系统,开源免费,软件开发,微信小程序,ruoyi +VUE_APP_TITLE = 瑜伽汇后台管理系统 # 生产环境配置 ENV = 'production' # 若依管理系统/生产环境 -VUE_APP_BASE_API = 'https://mall.ichengle.top/api' +VUE_APP_BASE_API = 'https://www.sanduolantoyoga.com/yoga-manager' VUE_APP_JUDGE_STAR = 0 diff --git a/package.json b/package.json index 8118d56..3505144 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ruoyi-ui-merge", "version": "3.8.3", - "description": "yoga后台管理系统", + "description": "瑜伽汇后台管理系统", "author": "", "license": "", "scripts": { diff --git a/src/api/school/sc/cla/claTime.js b/src/api/school/sc/cla/claTime.js index 1491ccb..239efb6 100644 --- a/src/api/school/sc/cla/claTime.js +++ b/src/api/school/sc/cla/claTime.js @@ -78,3 +78,11 @@ export function confirmCla(data) { }) } +// 课程 预约会员列表 +export function searchCourseClaStudent(query) { + return request({ + url: '/api/sc/cla/time/list/searchCourseClaStudent', + method: 'get', + params: query + }) +} diff --git a/src/api/school/sc/cla/index.js b/src/api/school/sc/cla/index.js index 46f2875..7aaa41e 100644 --- a/src/api/school/sc/cla/index.js +++ b/src/api/school/sc/cla/index.js @@ -52,12 +52,5 @@ export function delCla(claId) { } -// 课程 预约会员列表 -export function searchCourseClaStudent(query) { - return request({ - url: '/api/sc/course/cla/list/searchCourseClaStudent', - method: 'get', - params: query - }) -} + diff --git a/src/api/school/sc/course/index.js b/src/api/school/sc/course/index.js index a546c2f..ed5f11c 100644 --- a/src/api/school/sc/course/index.js +++ b/src/api/school/sc/course/index.js @@ -11,10 +11,11 @@ export function listCourse(query) { // select -export function select() { +export function select(query) { return request({ url: '/api/sc/course/list/select', - method: 'get' + method: 'get', + params: query }) } diff --git a/src/api/school/sc/memberCardType/index.js b/src/api/school/sc/memberCardType/index.js index e490854..c93514c 100644 --- a/src/api/school/sc/memberCardType/index.js +++ b/src/api/school/sc/memberCardType/index.js @@ -59,12 +59,6 @@ export function delMemberCard(cardIds) { }) } -export function orderCardTypeDetail(query) { - return request({ - url: '/api/sc/memberCardTypes/info/orderCardTypeDetail', - method: 'get', - params: query - }) -} + diff --git a/src/components/sc/base/roomSelect.vue b/src/components/sc/base/roomSelect.vue index 347a91f..52f9e99 100644 --- a/src/components/sc/base/roomSelect.vue +++ b/src/components/sc/base/roomSelect.vue @@ -65,10 +65,12 @@ export default { roomSelect({ deptId: this.deptId }).then(response => { - response.data?.forEach(item=>{ - item.roomId=item.roomId+'' - }) this.roomOptions = response.data + const flag = this.roomOptions.some(item => item.roomId == this.roomId); + if (!flag) { + this.roomId = undefined + } + }) }, handleSelect: function(val) { diff --git a/src/components/sc/claTime/addClaTimeAttend.vue b/src/components/sc/claTime/addClaTimeAttend.vue index 29dd8c7..eb2205a 100644 --- a/src/components/sc/claTime/addClaTimeAttend.vue +++ b/src/components/sc/claTime/addClaTimeAttend.vue @@ -11,15 +11,11 @@
校区:
-
{{ claInfo.deptName }}
+
{{ claTimeInfo.deptName }}
所属课程:
-
{{ claCourseInfo.courseName }}
-
-
-
班级:
-
{{ claInfo.claName }}
+
{{ claTimeInfo.courseName }}
@@ -188,10 +184,8 @@ import claTimeSelect from '@/components/sc/claTime/claTimeSelect' import roomSelect from '@/components/sc/base/roomSelect' import claSelect from '@/components/sc/course/cla/claSelect' import deptSelect from '@/components/system/dept/deptSelect' -import { allDetailInfoById } from '@/api/school/sc/cla' import moment from 'moment' -import { searchCourseClaStudent } from '@/api/school/sc/cla/index' -import {claTimeInfo as loadClaTimeInfo,confirmCla} from "@/api/school/sc/cla/claTime"; +import {claTimeInfo as loadClaTimeInfo,confirmCla,searchCourseClaStudent} from "@/api/school/sc/cla/claTime"; import memberCardApi from "@/api/school/sc/memberCard"; export default { components: { @@ -306,22 +300,15 @@ export default { }, loadClaInfo() { - if (this.claId) { this.loadingClaDetail = true loadClaTimeInfo(this.appointCourseTimeId).then(response => { this.claTimeInfo = response.data // 自动设置表单信息 this.autoSetFormByClaTimeInfo() - return allDetailInfoById(this.claId) - }).then(response => { - this.loadingClaDetail = false - this.claInfo = response.data.courseCla - this.claCourseInfo = response.data.course - this.getList() - }).catch(() => { this.loadingClaDetail = false }) - } + + this.getList() }, // 自动设置 表单信息 autoSetFormByClaTimeInfo() { @@ -365,7 +352,7 @@ export default { this.claStudentList = claStudentList this.loading = false }) - + this.loading = false }, // 签到 diff --git a/src/components/sc/claTime/changeClaTimeAttend.vue b/src/components/sc/claTime/changeClaTimeAttend.vue index ef45f4c..b91ccba 100644 --- a/src/components/sc/claTime/changeClaTimeAttend.vue +++ b/src/components/sc/claTime/changeClaTimeAttend.vue @@ -5,15 +5,11 @@
校区:
-
{{ claInfo.deptName }}
+
{{ claTimeInfo.deptName }}
所属课程:
-
{{ claCourseInfo.courseName }}
-
-
-
班级:
-
{{ claInfo.claName }}
+
{{ claTimeInfo.courseName }}
上课教练:
@@ -69,9 +65,9 @@ v-model="form.endTime" size="small" :picker-options="{ - start: '08:00', + start: '00:00', step: '00:01', - end: '20:00' + end: '23:59' }" style="width: 135px;" placeholder="下课时间" @@ -162,10 +158,10 @@ import { selectDictLabel } from '@/utils/commonUtils' import staffSelect from '@/components/system/staff/staffSelect' import roomSelect from '@/components/sc/base/roomSelect' -import { allDetailInfoById } from '@/api/school/sc/cla' +// import { allDetailInfoById } from '@/api/school/sc/cla' import { claTimeInfo as loadClaTimeInfo, } from '@/api/school/sc/cla/claTime' import moment from 'moment' -import { searchCourseClaStudent } from '@/api/school/sc/cla/index' +import { searchCourseClaStudent } from '@/api/school/sc/cla/claTime' export default { components: { staffSelect, @@ -283,17 +279,11 @@ export default { this.loadingClaDetail = true loadClaTimeInfo(this.courseTimeId).then(response => { this.claTimeInfo = response.data - // 自动设置表单信息 this.autoSetFormByClaTimeInfo() - return allDetailInfoById(this.claId) - }).then(response => { - this.loadingClaDetail = false - this.claInfo = response.data.courseCla - this.claCourseInfo = response.data.course - this.loadCourseClaStudentAndAttendDetail() - }).catch(() => { this.loadingClaDetail = false }) + + this.loadCourseClaStudentAndAttendDetail() } }, // 自动设置 表单信息 @@ -301,8 +291,8 @@ export default { this.form.teacherId = this.claTimeInfo.teacherId this.form.roomId = this.claTimeInfo.roomId this.form.claDate = this.claTimeInfo.realClaDate - this.form.startTime = this.claTimeInfo.realStartTime.substr(0, 5) - this.form.endTime = this.claTimeInfo.realEndTime.substr(0, 5) + this.form.startTime = this.claTimeInfo.realStartTime?.substr(0, 5) + this.form.endTime = this.claTimeInfo.realEndTime?.substr(0, 5) this.form.memo = this.claTimeInfo.memo this.form.classTheme = this.claTimeInfo.classTheme }, @@ -334,6 +324,7 @@ export default { this.loading = false }) + this.loading = false }, } } diff --git a/src/components/sc/claTime/changeTime.vue b/src/components/sc/claTime/changeTime.vue index dde3fee..2897302 100644 --- a/src/components/sc/claTime/changeTime.vue +++ b/src/components/sc/claTime/changeTime.vue @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -34,11 +34,11 @@ - - - - - + + + + + - + - + - - + +
+ + + + +
- + + + +
+ + + + + + +
+
+
@@ -63,7 +104,7 @@ - + 全选 {{ dict.dictLabel }} @@ -92,9 +133,9 @@ v-model="form.startTime" size="small" :picker-options="{ - start: '08:00', + start: '00:00', step: '00:01', - end: '20:00' + end: '23:59' }" @change="startTimeChange" placeholder="选择上课时间" @@ -111,7 +152,7 @@ @@ -154,6 +195,7 @@ @@ -283,4 +367,24 @@ export default { padding-left: 10px; } } + /* 富文本样式 */ + .editor-container { + border: 1px solid #e6e6e6; + border-radius: 4px; + padding: 5px; + margin-bottom: 10px; + } + + .remark-editor { + min-height: 200px; + } + + .profile-editor { + min-height: 300px; + } + + .editor-container img { + max-width: 100% !important; + height: auto !important; + } diff --git a/src/components/sc/course/cla/claSelect.vue b/src/components/sc/course/cla/claSelect.vue index ddd5eb5..193be7f 100644 --- a/src/components/sc/course/cla/claSelect.vue +++ b/src/components/sc/course/cla/claSelect.vue @@ -118,10 +118,6 @@ export default { }, mounted() { this.loadCla() - // if (this.mountedLoadAll && this.claList.length === 0) { - // this.pageNum = 1 - // this.loadCla() - // } }, methods: { loadCla: function() { diff --git a/src/components/sc/course/courseSelect.vue b/src/components/sc/course/courseSelect.vue index 0ff62d7..347eff9 100644 --- a/src/components/sc/course/courseSelect.vue +++ b/src/components/sc/course/courseSelect.vue @@ -21,7 +21,7 @@ diff --git a/src/views/school/claTime/rule/index.vue b/src/views/school/claTime/rule/index.vue index fad2054..9e1e269 100644 --- a/src/views/school/claTime/rule/index.vue +++ b/src/views/school/claTime/rule/index.vue @@ -4,14 +4,11 @@ - - - - + - +