Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
01666567
Commit
01666567
authored
Sep 02, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
81386aba
f35efe33
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
599 additions
and
842 deletions
+599
-842
schedu.js
src/api/scheduling/schedu.js
+31
-19
reserve-form.vue
src/components/schedul/reserve-form.vue
+32
-17
reservestudentlist.vue
src/components/schedul/reservestudentlist.vue
+47
-15
transfer-order.vue
src/components/school/student/transfer-order.vue
+7
-0
yueke.vue
src/components/school/student/transfer-order/yueke.vue
+1
-1
TrialClass.vue
src/pages/h5page/TrialClass.vue
+35
-783
audition.vue
src/pages/h5page/audition.vue
+361
-0
statusPrompt.vue
src/pages/h5page/statusPrompt.vue
+56
-0
reserveClassStudent.vue
src/pages/sale/reserveClassStudent.vue
+29
-7
No files found.
src/api/scheduling/schedu.js
View file @
01666567
...
@@ -213,6 +213,18 @@ export function SetVisitorReserve(data) {
...
@@ -213,6 +213,18 @@ export function SetVisitorReserve(data) {
}
}
/**
* 预约课程详情
* @param {JSON参数} data
*/
export
function
GetVisitorReserveById
(
data
)
{
return
request
({
url
:
'/VisitorReserve/GetVisitorReserveById'
,
method
:
'post'
,
data
});
}
/**
/**
* 设置约课开课信息
* 设置约课开课信息
* @param {JSON参数} data
* @param {JSON参数} data
...
...
src/components/schedul/reserve-form.vue
View file @
01666567
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
</q-card-section>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<q-input
filled
v-model=
"objOption.ClassDate"
class=
"col-6 q-pr-lg q-pb-lg"
<q-input
filled
v-model=
"objOption.ClassDate"
class=
""
:class=
"[$q.platform.is.desktop?'col-6 q-pr-lg q-pb-lg':'col-12 q-pb-sm']"
:rules=
"[val => !!val || '请选择预约日期']"
ref=
"ClassDate"
mask=
"date"
label=
"预约日期"
>
:rules=
"[val => !!val || '请选择预约日期']"
ref=
"ClassDate"
mask=
"date"
label=
"预约日期"
>
<template
v-slot:append
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
@@ -21,8 +22,9 @@
...
@@ -21,8 +22,9 @@
</q-icon>
</q-icon>
</
template
>
</
template
>
</q-input>
</q-input>
<div
class=
"Sysuser_Date col-6 q-pb-lg"
>
<div
class=
"Sysuser_Date"
<q-field>
:class=
"[$q.platform.is.desktop?'col-6 q-pb-lg':'col-12 q-pb-sm']"
>
<q-field
filled
dense
>
<
template
v-slot:control
>
<
template
v-slot:control
>
<el-time-select
v-model=
"objOption.ClassTime"
ref=
"ClassTime"
style=
"width:50%"
:picker-options=
"
{
<el-time-select
v-model=
"objOption.ClassTime"
ref=
"ClassTime"
style=
"width:50%"
:picker-options=
"
{
start: '09:00',
start: '09:00',
...
@@ -42,19 +44,22 @@
...
@@ -42,19 +44,22 @@
</q-field>
</q-field>
</div>
</div>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"objOption.TeacherId"
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"objOption.TeacherId"
ref=
"TeacherId"
:options=
"TeacherList"
label=
"选择教师"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
ref=
"TeacherId"
:options=
"TeacherList"
label=
"选择教师"
:dense=
"false"
class=
"col-6 q-pr-lg"
:class=
"[$q.platform.is.desktop?'q-pb-lg':'q-pb-sm']"
emit-value
map-options
/>
map-options
/>
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
v-model=
"objOption.ClassRoomId"
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
v-model=
"objOption.ClassRoomId"
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
:dense=
"false"
class=
"col-6"
:class=
"[$q.platform.is.desktop?'q-pb-lg':'q-pb-sm']"
emit-value
map-options
/>
map-options
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"LessonName"
v-model=
"objOption.TrialLessonId"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"LessonName"
v-model=
"objOption.TrialLessonId"
:options=
"TrialList"
label=
"试听课程"
:dense=
"false"
class=
"col-6 q-pb-lg q-pr-lg"
emit-value
map-options
/>
:options=
"TrialList"
label=
"试听课程"
:dense=
"false"
class=
"col-6 q-pr-lg"
:class=
"[$q.platform.is.desktop?'q-pb-lg':'q-pb-sm']"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"Name"
option-label=
"Name"
v-model=
"objOption.ClassContent"
<
!-- <
q-select filled stack-label option-value="Name" option-label="Name" v-model="objOption.ClassContent"
ref="ClassContent" :options="ContentList" label="主讲内容" :dense="false" class="col-12 q-pb-lg" emit-value
ref="ClassContent" :options="ContentList" label="主讲内容" :dense="false" class="col-12 q-pb-lg" emit-value
map-options
/>
map-options />
-->
</div>
</div>
</q-card-section>
</q-card-section>
<q-separator
/>
<q-separator
/>
...
@@ -115,15 +120,23 @@
...
@@ -115,15 +120,23 @@
TrialList
:
[]
//试听课程下拉数据
TrialList
:
[]
//试听课程下拉数据
}
}
},
},
mounted
()
{
watch
:
{
let
nowDay
=
new
Date
();
saveObj
:{
var
year
=
nowDay
.
getFullYear
();
//年
handler
(
n
){
var
month
=
nowDay
.
getMonth
()
+
1
;
//月
this
.
initObj
()
var
day
=
nowDay
.
getDate
();
//日
},
if
(
month
<
10
)
{
deep
:
true
month
=
'0'
+
month
}
}
this
.
objOption
.
ClassDate
=
year
+
'-'
+
month
+
'-'
+
day
;
},
mounted
()
{
// let nowDay = new Date();
// var year = nowDay.getFullYear(); //年
// var month = nowDay.getMonth() + 1; //月
// var day = nowDay.getDate(); //日
// if (month
<
10
)
{
// month = '0' + month
// }
// this.objOption.ClassDate = year + '-' + month + '-' + day;
this
.
GetTeacherList
();
this
.
GetTeacherList
();
this
.
getClassRoomList
();
this
.
getClassRoomList
();
this
.
GetTrialDrop
();
this
.
GetTrialDrop
();
...
@@ -139,11 +152,13 @@
...
@@ -139,11 +152,13 @@
},
},
//初始化表单
//初始化表单
initObj
()
{
initObj
()
{
this
.
objOption
.
ClassDate
=
this
.
saveObj
.
ReservationDate
if
(
this
.
saveObj
&&
this
.
saveObj
.
ReserveClassId
>
0
)
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
ReserveClassId
>
0
)
{
GetReserveClass
({
GetReserveClass
({
ReserveClassId
:
this
.
saveObj
.
ReserveClassId
ReserveClassId
:
this
.
saveObj
.
ReserveClassId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
objOption
.
ReserveClassId
=
res
.
Data
.
ReserveClassId
;
this
.
objOption
.
ReserveClassId
=
res
.
Data
.
ReserveClassId
;
this
.
objOption
.
TeacherId
=
res
.
Data
.
TeacherId
;
this
.
objOption
.
TeacherId
=
res
.
Data
.
TeacherId
;
this
.
objOption
.
ClassDate
=
res
.
Data
.
ClassDateStr
;
this
.
objOption
.
ClassDate
=
res
.
Data
.
ClassDateStr
;
...
...
src/components/schedul/reservestudentlist.vue
View file @
01666567
<
template
>
<
template
>
<div
class=
"page-content"
>
<div
class=
"page-content"
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
:class=
"[$q.platform.is.desktop?'':'']"
>
<q-table
v-if=
"$q.platform.is.desktop"
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
:visible-columns=
"visibleColumns"
row-key=
"name"
>
:visible-columns=
"visibleColumns"
row-key=
"name"
>
<template
v-slot:top
>
<template
v-slot:top
>
<div
class=
"col-2 q-table__title"
>
试听开课管理
</div>
<div
class=
"q-table__title"
:class=
"[$q.platform.is.desktop?'col-2':'col-12']"
>
试听开课管理
</div>
<q-space
/>
<q-space
/>
</
template
>
</
template
>
...
@@ -38,7 +40,40 @@
...
@@ -38,7 +40,40 @@
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
</
template
>
</
template
>
</q-table>
</q-table>
<reserveForm
v-if=
"isShowReserve"
:save-obj=
"reserveObj"
@
close=
"closeReserveForm"
@
success=
"refreshPage"
>
<
template
v-if=
"$q.platform.is.mobile"
>
<q-card
class=
"light-shadow q-pa-md bg-grey-1 rounded-borders q-mb-md"
flat
v-for=
"(x, index) in data"
:key=
"index"
>
<div
class=
"row justify-between"
>
<div>
学生:
<span
class=
"text-blue-5"
>
{{
x
.
StuName
}}
</span></div>
<div>
试听日期:
<span
class=
"text-blue-5"
>
{{
timeFormatSeconds
(
x
.
ReservationDate
)
}}
</span></div>
</div>
<div
class=
"bg-white q-pa-sm q-mt-sm"
style=
"border-radius: 8px;"
>
<div>
<span
class=
"text-grey-6"
>
试听需求:
</span><span
v-html=
""
>
{{
x
.
Demand
}}
</span>
</div>
</div>
<div
class=
" q-pa-sm border-radius q-mt-sm"
v-if=
"x.ClassDateStr||x.TeacherName||x.LessonName||x.RoomName"
>
<div
class=
"row justify-between"
v-if=
"x.ClassDateStr||x.TeacherName"
>
<span
v-if=
"x.ClassDateStr"
>
预约时间:
<span
class=
"text-blue-5"
>
{{
x
.
ClassDateStr
}}
</span></span>
<span
v-if=
"x.TeacherName"
>
主讲老师:
<span
class=
"text-blue-5"
>
{{
x
.
TeacherName
}}
</span></span>
</div>
<div
class=
"row justify-between"
v-if=
"x.LessonName||x.RoomName"
>
<span
v-if=
"x.LessonName"
>
课程名称:
<span
class=
"text-blue-5"
>
{{
x
.
LessonName
}}
</span></span>
<span
v-if=
"x.RoomName"
>
教室:
<span
class=
"text-blue-5"
>
{{
x
.
RoomName
}}
</span></span>
</div>
</div>
<div
class=
"row justify-end"
>
<q-btn
label=
"修改"
color=
"primary"
flat
@
click=
"editVisitor(x)"
/>
<q-btn
label=
"删除"
color=
"red-6"
flat
@
click=
"DeleteVisitorReserve(x.Id)"
/>
</div>
</q-card>
</
template
>
<reserveForm
v-if=
"isShowReserve"
:saveObj=
"reserveObj"
@
close=
"closeReserveForm"
@
success=
"refreshPage"
>
</reserveForm>
</reserveForm>
</div>
</div>
</template>
</template>
...
@@ -74,6 +109,7 @@
...
@@ -74,6 +109,7 @@
label
:
'学生名称'
,
label
:
'学生名称'
,
align
:
'left'
,
align
:
'left'
,
field
:
'StuName'
,
field
:
'StuName'
,
required
:
true
,
},
},
{
{
name
:
'ReservationDate'
,
name
:
'ReservationDate'
,
...
@@ -172,11 +208,7 @@ return timeStr;
...
@@ -172,11 +208,7 @@ return timeStr;
},
},
//编辑试听
//编辑试听
editVisitor
(
obj
)
{
editVisitor
(
obj
)
{
if
(
obj
)
{
this
.
reserveObj
=
obj
this
.
reserveObj
=
obj
}
else
{
this
.
reserveObj
=
null
}
this
.
isShowReserve
=
true
;
this
.
isShowReserve
=
true
;
},
},
//关闭弹窗
//关闭弹窗
...
...
src/components/school/student/transfer-order.vue
View file @
01666567
...
@@ -196,6 +196,13 @@ export default {
...
@@ -196,6 +196,13 @@ export default {
selectedCourseList
:
[],
//多选课程
selectedCourseList
:
[],
//多选课程
};
};
},
},
watch
:{
mode
:{
handler
(
n
){
this
.
selectedCourseList
=
[]
}
}
},
mounted
()
{
mounted
()
{
let
nowDay
=
new
Date
();
let
nowDay
=
new
Date
();
var
year
=
nowDay
.
getFullYear
();
//年
var
year
=
nowDay
.
getFullYear
();
//年
...
...
src/components/school/student/transfer-order/yueke.vue
View file @
01666567
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
-->
-->
<q-table
<q-table
:pagination=
"msg"
:pagination=
"msg"
selection=
"multiple
"
:selection=
"mode==2?'multiple':'single'
"
:selected
.
sync=
"selection"
:selected
.
sync=
"selection"
no-data-label=
"暂无相关数据"
no-data-label=
"暂无相关数据"
flat
flat
...
...
src/pages/h5page/TrialClass.vue
View file @
01666567
This diff is collapsed.
Click to expand it.
src/pages/h5page/audition.vue
0 → 100644
View file @
01666567
This diff is collapsed.
Click to expand it.
src/pages/h5page/statusPrompt.vue
0 → 100644
View file @
01666567
<
template
>
<div
class=
"pay-OuterFrame"
>
<div
class=
"popup-box"
>
<div
class=
"popup-title"
>
<div
style=
"margin-top: 230px;"
>
<img
style=
"width:80px;height:80px;"
src=
"../../assets/images/da_gou.png"
/>
</div>
<div
style=
"font-size: 18px;margin-top: 15px;"
>
{{
isSuccessTitle
}}
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:[
"isSuccess"
,
"isSuccessTitle"
],
components
:
{
},
data
()
{
return
{
}
},
computed
:
{
},
mounted
(){
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.popup-box
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background
:
#ffffff
;
z-index
:
3
;
}
.popup-title
{
padding
:
400rpx
0
;
text-align
:
center
;
}
.popup-title
text
{
display
:
block
;
margin-top
:
30rpx
;
font-size
:
35rpx
;
}
</
style
>
src/pages/sale/reserveClassStudent.vue
View file @
01666567
...
@@ -6,10 +6,13 @@
...
@@ -6,10 +6,13 @@
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"page-search"
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
:class=
"[$q.platform.is.desktop?'row items-center':'']"
>
<div
class=
"col-3"
>
<div
class=
"col row wrap q-col-gutter-md"
<div
class=
"col-4 Sysuser_Date"
>
:class=
"[$q.platform.is.desktop?'q-mr-lg':'']"
>
<div
:class=
"[$q.platform.is.desktop?'col-3':'col-12']"
>
<div
class=
"Sysuser_Date"
>
<q-field
filled
>
<q-field
filled
>
<template
v-slot:control
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartClassDate"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"开始时间"
<el-date-picker
v-model=
"msg.StartClassDate"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"开始时间"
...
@@ -38,6 +41,21 @@
...
@@ -38,6 +41,21 @@
</div>
</div>
</div>
</div>
<reservelist
:data=
"dataList"
:authObj=
"authObj"
:loading=
"loading"
@
success=
"refreshPage"
></reservelist>
<reservelist
:data=
"dataList"
:authObj=
"authObj"
:loading=
"loading"
@
success=
"refreshPage"
></reservelist>
<q-card
class=
"light-shadow q-pa-md bg-white rounded-borders q-mb-md"
v-if=
"msg.pageCount > 0"
flat
>
<q-pagination
v-if=
"$q.platform.is.mobile"
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"msg.pageCount"
:input=
"true"
@
update:model-value=
"changePageHandler"
/>
</q-card>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"PageCount"
:input=
"true"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"PageCount"
:input=
"true"
@
input=
"changePage"
/>
@
input=
"changePage"
/>
</div>
</div>
...
@@ -106,6 +124,10 @@
...
@@ -106,6 +124,10 @@
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
changePageHandler
(
n
)
{
this
.
msg
.
pageIndex
=
n
;
this
.
getList
();
},
//重新查询
//重新查询
resetSearch
()
{
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment