Commit d00862de authored by 罗超's avatar 罗超

2

parent b93a401f
...@@ -345,3 +345,14 @@ export function delHolidayPlan(data) { ...@@ -345,3 +345,14 @@ export function delHolidayPlan(data) {
data: data data: data
}) })
} }
/**
* 获取日期范围 所有排课计划列表
* @param {JSON参数} data
*/
export function getToDayCoursePlanList(data) {
return request({
url: '/TeacherClass/GetToDayCoursePlanList',
method: 'post',
data: data
})
}
\ No newline at end of file
...@@ -39,6 +39,12 @@ ...@@ -39,6 +39,12 @@
{{props.row.CreateTimeStr}} {{props.row.CreateTimeStr}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Type="props">
<q-td :props="props">
<span v-if="props.row.ReserveType==0">正常试听</span>
<span v-if="props.row.ReserveType==1">跟班试听</span>
</q-td>
</template>
<template v-slot:body-cell-JoinNum="props"> <template v-slot:body-cell-JoinNum="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<span style="color:red;cursor:pointer" <span style="color:red;cursor:pointer"
...@@ -72,7 +78,7 @@ ...@@ -72,7 +78,7 @@
<q-item-label>收支明细</q-item-label> <q-item-label>收支明细</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup @click="editVisitor(props.row)"> <q-item clickable v-close-popup @click="editVisitor(props.row)" v-if="props.row.ReserveType==0">
<q-item-section> <q-item-section>
<q-item-label>修改</q-item-label> <q-item-label>修改</q-item-label>
</q-item-section> </q-item-section>
...@@ -176,6 +182,12 @@ ...@@ -176,6 +182,12 @@
align: 'left', align: 'left',
field: 'ClassContent', field: 'ClassContent',
}, },
{
name: 'Type',
label: '类型',
align: 'left',
field: 'Type',
},
{ {
name: 'CreateByName', name: 'CreateByName',
label: '创建人', label: '创建人',
......
<style scoped> <style scoped>
.Student_Date .el-input__inner { .Student_Date .el-input__inner {
background: transparent !important; background: transparent !important;
border: 0 !important; border: 0 !important;
padding-right: 0 !important; padding-right: 0 !important;
} }
</style> </style>
<template> <template>
<div> <div>
<div class="row wrap"> <div class="row wrap">
<q-btn <q-btn label="选择试听课" color="accent q-mb-lg" size="sm" @click="isShowTeacher = true" />
label="选择试听课"
color="accent q-mb-lg"
size="sm"
@click="isShowTeacher = true"
/>
</div> </div>
<template v-if="isShowReserve"> <template v-if="isShowReserve">
<div class="row studentDate"> <div class="row studentDate">
<q-field filled class="col-6 q-pb-lg q-pr-lg" dense> <q-field filled class="col-6 q-pb-lg q-pr-lg" dense>
<template v-slot:control> <template v-slot:control>
<el-date-picker <el-date-picker v-model="addMsg.ClassDate" ref="ClassDate" :rules="[val => !!val || '请选择预约日期']"
v-model="addMsg.ClassDate" style="width:225px" size="mini" type="date" placeholder="预约日期" value-format="yyyy-MM-dd">
ref="ClassDate"
:rules="[val => !!val || '请选择预约日期']"
style="width:225px"
size="mini"
type="date"
placeholder="预约日期"
value-format="yyyy-MM-dd"
>
</el-date-picker> </el-date-picker>
</template> </template>
</q-field> </q-field>
<div class="col-6 q-pr-lg Student_Date "> <div class="col-6 q-pr-lg Student_Date ">
<q-field filled class="q-pb-lg" dense> <q-field filled class="q-pb-lg" dense>
<template v-slot:control> <template v-slot:control>
<el-time-select <el-time-select v-model="addMsg.ClassTime" size="mini" ref="ClassTime" style="width:50%" :picker-options="{
v-model="addMsg.ClassTime"
size="mini"
ref="ClassTime"
style="width:50%"
:picker-options="{
start: '09:00', start: '09:00',
step: '00:15', step: '00:15',
end: '21:00', end: '21:00',
maxTime: addMsg.EndTime maxTime: addMsg.EndTime
}" }" placeholder="预约开始时间">
placeholder="预约开始时间"
>
</el-time-select> </el-time-select>
<el-time-select <el-time-select v-model="addMsg.EndTime" size="mini" dense ref="EndTime" style="width:50%"
v-model="addMsg.EndTime"
size="mini"
dense
ref="EndTime"
style="width:50%"
:picker-options="{ :picker-options="{
start: '09:00', start: '09:00',
step: '00:15', step: '00:15',
end: '21:00', end: '21:00',
minTime: addMsg.ClassTime minTime: addMsg.ClassTime
}" }" placeholder="预约结束时间">
placeholder="预约结束时间"
>
</el-time-select> </el-time-select>
</template> </template>
</q-field> </q-field>
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap">
<q-select <q-select filled stack-label option-value="Name" dense option-label="Name"
filled @input="getTeacherChoose(addMsg.ClassContent)" v-model="addMsg.ClassContent" ref="ClassContent"
stack-label :options="ContentList" :rules="[val => !!val || '请选择主讲内容']" label="主讲内容" class="col-6 q-pb-lg q-pr-lg"
option-value="Name" emit-value map-options />
dense <q-select filled stack-label option-value="TId" option-label="TeacherName" v-model="addMsg.TeacherId"
option-label="Name" ref="TeacherId" :options="TeacherList" label="选择教师" dense class="col-6 q-pb-lg q-pr-lg" emit-value
@input="getTeacherChoose(addMsg.ClassContent)" map-options />
v-model="addMsg.ClassContent" </div>
ref="ClassContent" <div class="row wrap">
:options="ContentList" <q-select filled stack-label option-value="RoomId" dense option-label="RoomName" v-model="addMsg.ClassRoomId"
:rules="[val => !!val || '请选择主讲内容']" ref="ClassRoomId" :options="ClassRoomList" label="关联教室" class="col-6 q-pb-lg q-pr-lg" emit-value
label="主讲内容" map-options />
class="col-6 q-pb-lg q-pr-lg" <q-select filled stack-label option-value="Id" dense option-label="LessonName" v-model="addMsg.TrialLessonId"
emit-value :options="TrialList" label="试听课程" class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
map-options
/>
<q-select
filled
stack-label
option-value="TId"
option-label="TeacherName"
v-model="addMsg.TeacherId"
ref="TeacherId"
:options="TeacherList"
label="选择教师"
dense
class="col-6 q-pb-lg q-pr-lg"
emit-value
map-options
/>
</div> </div>
<div class="row wrap"> <div class="row wrap">
<q-select <q-field label="类型" filled dense stack-label class="col-6 q-pb-lg q-pr-lg" v-if="addMsg.ReserveType==1">
filled <template v-slot:control>
stack-label <div >跟班</div>
option-value="RoomId" </template>
dense </q-field>
option-label="RoomName" <!-- <q-field label="班级" filled dense stack-label class="col-6 q-pb-lg q-pr-lg" v-if="addMsg.ReserveType==1&&showObj.className">
v-model="addMsg.ClassRoomId" <template v-slot:control>
ref="ClassRoomId" <div>{{showObj.className}}</div>
:options="ClassRoomList" </template>
label="关联教室" </q-field> -->
class="col-6 q-pb-lg q-pr-lg" <q-field label="课程" filled dense stack-label class="col-6 q-pb-lg q-pr-lg" v-if="addMsg.ReserveType==1&&showObj.courseName">
emit-value <template v-slot:control>
map-options <div>{{showObj.courseName}}</div>
/> </template>
<q-select </q-field>
filled
stack-label
option-value="Id"
dense
option-label="LessonName"
v-model="addMsg.TrialLessonId"
:options="TrialList"
label="试听课程"
class="col-6 q-pb-lg q-pr-lg"
emit-value
map-options
/>
</div> </div>
<div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;"> <div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;">
<q-btn <q-btn label="关闭" flat color="accent q-mb-lg" size="md" style="margin-right:10px;" @click="closeClassForm" />
label="关闭" <q-btn label="保存" color="accent q-mb-lg" size="md" @click="saveAppointForm()" />
flat
color="accent q-mb-lg"
size="md"
style="margin-right:10px;"
@click="closeClassForm"
/>
<q-btn
label="保存"
color="accent q-mb-lg"
size="md"
@click="saveAppointForm()"
/>
</div> </div>
</template> </template>
<audition-form <ShitingCourseList-form v-if="isShowTeacher" @close="closeAuditForm" @getchildInfo="getchildInfo">
v-if="isShowTeacher" </ShitingCourseList-form>
@close="closeAuditForm"
@getchildInfo="getchildInfo"
></audition-form>
</div> </div>
</template> </template>
<script> <script>
import { SetVisitorReserve } from "../../../api/scheduling/schedu"; import {
import { SetVisitorReserve
} from "../../../api/scheduling/schedu";
import {
getTeacherDropDownList, getTeacherDropDownList,
queryClassRoomList, queryClassRoomList,
GetTrialLessonList GetTrialLessonList
} from "../../../api/school/index"; } from "../../../api/school/index";
import auditionForm from "../../schedul/audition-form"; // import auditionForm from "../../schedul/audition-form";
export default { import ShitingCourseListForm from "./shitingCourseList-form.vue"
export default {
components: { components: {
auditionForm // auditionForm,
ShitingCourseListForm
}, },
props: { props: {
saveObj: { saveObj: {
...@@ -173,7 +109,7 @@ export default { ...@@ -173,7 +109,7 @@ export default {
}, },
data() { data() {
return { return {
isShowReserve:false, isShowReserve: false,
addMsg: { addMsg: {
Id: 0, //编号 Id: 0, //编号
Visitor_Id: 0, //访客编号 Visitor_Id: 0, //访客编号
...@@ -184,13 +120,13 @@ export default { ...@@ -184,13 +120,13 @@ export default {
TeacherId: 0, //教师编号 TeacherId: 0, //教师编号
ClassRoomId: 0, //教室编号 ClassRoomId: 0, //教室编号
ClassContent: "", //主讲内容 ClassContent: "", //主讲内容
TrialLessonId: "" TrialLessonId: "",
ReserveType: 0,
ClassPlanId: 0,
}, },
ContentList: [ ContentList: [{
{
Id: 1, Id: 1,
Name: Name: "少儿类:主要以丰富可与时间和兴趣为主,要求课堂轻松活跃。趣味性十足"
"少儿类:主要以丰富可与时间和兴趣为主,要求课堂轻松活跃。趣味性十足"
}, },
{ {
Id: 2, Id: 2,
...@@ -198,8 +134,7 @@ export default { ...@@ -198,8 +134,7 @@ export default {
}, },
{ {
Id: 3, Id: 3,
Name: Name: "实用类:对于日语学习有一定的需求(考研、就业等),要求学习过程专业,干货多"
"实用类:对于日语学习有一定的需求(考研、就业等),要求学习过程专业,干货多"
}, },
{ {
Id: 4, Id: 4,
...@@ -210,7 +145,11 @@ export default { ...@@ -210,7 +145,11 @@ export default {
TeacherList: [], //教师列表 TeacherList: [], //教师列表
AllTeacherList: [], //全部教师列表 AllTeacherList: [], //全部教师列表
TrialList: [], //试听课程列表 TrialList: [], //试听课程列表
isShowTeacher: false //是否显示试听课弹窗 isShowTeacher: false, //是否显示试听课弹窗
showObj:{
className:"",
courseName:"",
}
}; };
}, },
created() { created() {
...@@ -272,8 +211,8 @@ export default { ...@@ -272,8 +211,8 @@ export default {
GetTeacherList() { GetTeacherList() {
getTeacherDropDownList({}).then(res => { getTeacherDropDownList({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.TeacherList = res.Data; this.TeacherList = JSON.parse(JSON.stringify(res.Data));
this.AllTeacherList = res.Data; this.AllTeacherList = JSON.parse(JSON.stringify(res.Data));
var obj = { var obj = {
TeacherName: "请选择", TeacherName: "请选择",
TId: 0 TId: 0
...@@ -294,6 +233,8 @@ export default { ...@@ -294,6 +233,8 @@ export default {
this.addMsg.ClassRoomId = 0; this.addMsg.ClassRoomId = 0;
this.addMsg.ClassContent = ""; this.addMsg.ClassContent = "";
this.addMsg.TrialLessonId = ""; this.addMsg.TrialLessonId = "";
this.addMsg.ReserveType = 0;
this.addMsg.ClassPlanId = 0;
}, },
//保存 //保存
saveAppointForm() { saveAppointForm() {
...@@ -353,7 +294,10 @@ export default { ...@@ -353,7 +294,10 @@ export default {
}, },
//子组件选中传值 //子组件选中传值
getchildInfo(obj) { getchildInfo(obj) {
console.log(364, obj)
if (obj) { if (obj) {
this.addMsg.ReserveType = obj.ReserveType;
this.addMsg.ClassPlanId = obj.ClassPlanId;
this.addMsg.TeacherId = obj.TeacherId; this.addMsg.TeacherId = obj.TeacherId;
this.addMsg.ClassRoomId = obj.ClassRoomId; this.addMsg.ClassRoomId = obj.ClassRoomId;
this.addMsg.ReserveClassId = obj.ReserveClassId; this.addMsg.ReserveClassId = obj.ReserveClassId;
...@@ -362,9 +306,17 @@ export default { ...@@ -362,9 +306,17 @@ export default {
this.addMsg.EndTime = obj.EndTime; this.addMsg.EndTime = obj.EndTime;
this.addMsg.ClassContent = obj.ClassContent; this.addMsg.ClassContent = obj.ClassContent;
this.addMsg.TrialLessonId = obj.TrialLessonId; this.addMsg.TrialLessonId = obj.TrialLessonId;
if (obj.ReserveType == 1) {
this.addMsg.TrialLessonId = obj.TrialLessonId ? obj.TrialLessonId : this.TrialList[0].Id
this.addMsg.ClassContent = obj.ClassContent ? obj.ClassContent : this.ContentList[0].Name
this.showObj.courseName=obj.courseName
this.showObj.className=obj.className
}
this.isShowReserve = true; this.isShowReserve = true;
} }
} }
} }
}; };
</script> </script>
<template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale" transition-hide="scale">
<q-card style="width: 800px;max-width:900px;">
<q-card-section>
<div class="text-h6">试听课信息</div>
</q-card-section>
<q-card-section>
<div class="row wrap">
<div class="col-3 q-pr-lg q-pb-lg">
<q-select @input="typeChange" filled option-value="Id" option-label="Name" v-model="typeId"
:options="typeList" emit-value map-options label="类型" clearable />
</div>
<div class="col-6 q-pb-lg q-pr-lg">
<q-field borderless>
<template v-slot:prepend>
<q-input filled v-model="msg.StartClassDate" mask="date" label="开始日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="StartClassDate" transition-show="scale" transition-hide="scale">
<q-date v-model="msg.StartClassDate" @input="getStarttime()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</template>
<template v-slot:append>
<q-input filled v-model="msg.EndClassDate" mask="date" label="结束日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="EndClassDate" transition-show="scale" transition-hide="scale">
<q-date v-model="msg.EndClassDate" @input="getEndTime()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</template>
</q-field>
</div>
<div class="col-3 q-pr-lg q-pb-lg">
<q-select @input="typeChange" filled option-value="TId" option-label="TeacherName" v-model="msg.TeacherId"
:options="TeacherList" emit-value map-options label="老师" clearable />
</div>
</div>
</q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" style="margin-top:20px;" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name" v-if="typeId == 0">
<template v-slot:top="props">
<div class="col-2 q-table__title"></div>
<q-space />
</template>
<template v-slot:body-cell-ClassTime="props">
<q-td :props="props">
{{ props.row.ClassTime }}-{{ props.row.EndTime }}
</q-td>
</template>
<template v-slot:body-cell-Id="props">
<q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" @click="getStuInfo(props.row)" style="font-weight:400"
label="报入" />
</q-td>
</template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount"
:input="true" @input="changePage" />
</template>
</q-table>
<q-table :pagination="SubMsg" :loading="loading" no-data-label="暂无相关数据" style="margin-top:20px;" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataListType2"
:columns="columnsType2" row-key="name" v-if="typeId == 1">
<template v-slot:top="props">
<div class="col-2 q-table__title"></div>
<q-space />
</template>
<template v-slot:body-cell-Time="props">
<q-td :props="props">
{{ props.row.StartTime }}-{{ props.row.EndTime }}
</q-td>
</template>
<template v-slot:body-cell-RoomNum="props">
<q-td :props="props">
{{ props.row.GuestList.length }}
</q-td>
</template>
<template v-slot:body-cell-progress="props">
<q-td :props="props">
{{ props.row.Ranks }}/{{ props.row.TotalPlanNum }}
</q-td>
</template>
<template v-slot:body-cell-Id="props">
<q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" @click="getStuInfo(props.row)" style="font-weight:400"
label="报入" />
</q-td>
</template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount"
:input="true" @input="changePage" />
</template>
</q-table>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
<q-btn label="关闭" flat color="grey-10" style="font-weight:400 !important" @click="closeSaveForm" />
</q-card-actions>
</q-card>
</q-dialog>
</template>
<script>
import {
GetReserveClassPage,
getToDayCoursePlanList
} from "../../../api/scheduling/schedu";
import {
getTeacherDropDownList
} from "../../../api/school/index";
export default {
components: {},
data() {
return {
persistent: true,
loading: false,
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
StartClassDate: "", //开始时间
EndClassDate: "", //结束时间
TeacherId: "", //教师编号
ClassRoomId: "", //教室编号
ReserveType :1
},
PageCount: 0,
columns: [{
name: "TeacherName",
label: "老师",
field: "TeacherName",
align: "left"
},
{
name: "ClassDateStr",
field: "ClassDateStr",
label: "日期",
align: "left"
},
{
name: "ClassTime",
field: "ClassTime",
label: "时间",
align: "left"
},
{
name: "LessonName",
label: "课程名称",
field: "LessonName",
align: "left"
},
{
name: "RoomName",
label: "教室",
field: "RoomName",
align: "left"
},
{
name: "RoomNum",
label: "人数",
field: "RoomNum",
align: "left"
},
{
name: "ClassContent",
label: "主讲内容",
field: "ClassContent",
align: "left"
},
{
name: "Id",
label: "操作"
}
],
TeacherList: [], //教师列表
dataList: [],
StuObj: {},
typeId: 0,
typeList: [{
Name: "正常",
Id: 0
},
{
Name: "跟班",
Id: 1
}
],
SubMsg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
StartDate: "", //开始时间
EndDate: "", //结束时间
TeacherId: 0
},
dataListType2: [],
columnsType2: [{
name: "TeacherName",
label: "老师",
field: "TeacherName",
align: "left"
},
{
name: "ClassDate",
field: "ClassDate",
label: "日期",
align: "left"
},
{
name: "Time",
field: "Time",
label: "时间",
align: "left"
},
{
name: "CourseName",
label: "课程名称",
field: "CourseName",
align: "left"
},
{
name: "RoomName",
label: "教室",
field: "RoomName",
align: "left"
},
{
name: "RoomNum",
label: "人数",
field: "RoomNum",
align: "left"
},
{
name: "progress",
label: "进度",
field: "",
align: "left"
},
{
name: "Id",
label: "操作"
}
]
};
},
created() {
this.GetTeacherList();
},
mounted() {
let nowDay = new Date();
var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
var currentDay =
year + "-" + (month < 10 ? "0" + month : month) + "-" + day;
this.msg.StartClassDate = currentDay;
this.getList();
},
methods: {
//获取教师下拉
GetTeacherList() {
getTeacherDropDownList({}).then(res => {
if (res.Code == 1) {
this.TeacherList = res.Data;
}
});
},
closeSaveForm() {
this.$emit("close");
this.persistent = false;
},
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getList();
},
changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
//获取课程系列分页列表
getList() {
GetReserveClassPage(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data.PageData;
this.PageCount = res.Data.PageCount;
}
});
},
//点击报入
getStuInfo(item) {
if (item) {
if (this.typeId == 0) {
this.StuObj.ReserveType=0
this.StuObj.ClassPlanId = item.ClassPlanId;
this.StuObj.ClassRoomId = item.ClassRoomId;
this.StuObj.TeacherId = item.TeacherId;
this.StuObj.ReserveClassId = item.ReserveClassId;
this.StuObj.ClassDateStr = item.ClassDateStr;
this.StuObj.ClassTime = item.ClassTime;
this.StuObj.EndTime = item.EndTime;
this.StuObj.ClassContent = item.ClassContent;
this.StuObj.TrialLessonId = item.TrialLessonId;
} else if (this.typeId == 1) {
this.StuObj.ReserveType=1
this.StuObj.ClassPlanId = item.ClassPlanId;
this.StuObj.ClassRoomId = item.ClassRoomId;
this.StuObj.TeacherId = item.TeacherId;
this.StuObj.ReserveClassId = 0;
this.StuObj.ClassDateStr = item.ClassDate;
this.StuObj.ClassTime = item.StartTime;
this.StuObj.EndTime = item.EndTime;
this.StuObj.ClassContent = 0;
this.StuObj.TrialLessonId = 0;
this.StuObj.courseName=item.CourseName
this.StuObj.className=item.ClassName
}
}
this.$emit("getchildInfo", this.StuObj);
this.closeSaveForm();
},
getStarttime() {
this.$refs.StartClassDate.hide();
this.typeChange();
},
getEndTime() {
this.$refs.EndClassDate.hide();
this.typeChange();
},
typeChange() {
if (this.typeId == 0) {
this.resetSearch();
} else if (this.typeId == 1) {
this.resetSearchType2();
}
},
getListType2() {
if(!this.msg.StartClassDate){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择日期`
})
return
}
this.SubMsg.StartDate = this.msg.StartClassDate;
this.SubMsg.EndDate = this.msg.EndClassDate || this.msg.StartClassDate;
this.SubMsg.TeacherId = this.msg.TeacherId || 0;
getToDayCoursePlanList(this.SubMsg).then(res => {
this.dataListType2 = res.Data;
});
},
resetSearchType2() {
this.SubMsg.pageIndex = 1;
this.getListType2();
}
}
};
</script>
<style></style>
...@@ -18,15 +18,9 @@ ...@@ -18,15 +18,9 @@
@click="isShowAdd = false" @click="isShowAdd = false"
/> />
</div> --> </div> -->
<reserveclass-form <reserveclass-form :saveObj="saveObj" @close="closeReserveForm" @success="closeReserveForm"
:saveObj="saveObj" v-if="!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1"></reserveclass-form>
@close="closeReserveForm" <span v-else class="text-grey-4 q-mb-md">学员已推送课程顾问,只能进行查看</span>
@success="closeReserveForm"
v-if="!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1"
></reserveclass-form>
<span v-else class="text-grey-4 q-mb-md"
>学员已推送课程顾问,只能进行查看</span
>
<div style="display:flex;flex:1;flex-direction: column;overflow:hidden;"> <div style="display:flex;flex:1;flex-direction: column;overflow:hidden;">
<div class="TimeLineDiv"> <div class="TimeLineDiv">
<q-timeline color="primary"> <q-timeline color="primary">
...@@ -34,10 +28,14 @@ ...@@ -34,10 +28,14 @@
<template v-slot:title> <template v-slot:title>
<div class="visit_Cont"> <div class="visit_Cont">
<div class="Log_Content"> <div class="Log_Content">
<q-chip color="primary" size="xs" text-color="white" style="position:absolute;:top:0;right:0" v-if="tItem.ReserveType==1">
跟班
</q-chip>
<div> <div>
预约时间:{{ tItem.ClassDateStr }} {{ tItem.ClassTime }}-{{ 预约时间:{{ tItem.ClassDateStr }} {{ tItem.ClassTime }}-{{
tItem.EndTime tItem.EndTime
}} }}
</div> </div>
<div class="StuCom_Remark"> <div class="StuCom_Remark">
<div style="flex-shrink:0">主讲内容:</div> <div style="flex-shrink:0">主讲内容:</div>
...@@ -49,11 +47,8 @@ ...@@ -49,11 +47,8 @@
<span class="StuCom_Left">教室</span>{{ tItem.RoomName }} <span class="StuCom_Left">教室</span>{{ tItem.RoomName }}
</div> </div>
</div> </div>
<div <div @click="DeleteVisitorReserve(tItem.Id)" style="margin-top:10px;"
@click="DeleteVisitorReserve(tItem.Id)" class="visit_delete text-negative">
style="margin-top:10px;"
class="visit_delete text-negative"
>
删除 删除
</div> </div>
</div> </div>
...@@ -69,31 +64,25 @@ ...@@ -69,31 +64,25 @@
</div> </div>
</div> </div>
<div style="margin:20px 0;"> <div style="margin:20px 0;">
<q-pagination <q-pagination class="full-width justify-end" v-model="qMsg.pageIndex" color="primary" :max="page_Count" input
class="full-width justify-end" @input="changePage" />
v-model="qMsg.pageIndex"
color="primary"
:max="page_Count"
input
@input="changePage"
/>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
SetVisitorReserve, SetVisitorReserve,
queryVisitorReservePage, queryVisitorReservePage,
RemoveVisitorReserve RemoveVisitorReserve
} from "../../../api/scheduling/schedu"; } from "../../../api/scheduling/schedu";
import { import {
getTeacherDropDownList, getTeacherDropDownList,
queryClassRoomList, queryClassRoomList,
GetTrialLessonList GetTrialLessonList
} from "../../../api/school/index"; } from "../../../api/school/index";
import reserveclassForm from "./reserveclass-form"; import reserveclassForm from "./reserveclass-form";
export default { export default {
meta: { meta: {
title: "" title: ""
}, },
...@@ -174,5 +163,6 @@ export default { ...@@ -174,5 +163,6 @@ export default {
this.getList(); this.getList();
} }
} }
}; };
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment