Commit 225190a1 authored by zhengke's avatar zhengke

1

parents f14c2013 ad3f3fe3
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
style="margin-left:5px;font-size:10px" /> style="margin-left:5px;font-size:10px" />
<q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType == 3" <q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType == 3"
style="margin-left:5px;font-size:10px" /> style="margin-left:5px;font-size:10px" />
<q-badge rounded color="orange" label="跟班" v-if="subItem.ClassType == 2&&subItem.ReserveType==1"
style="margin-left:5px;font-size:10px" />
<span style="color:red;margin:0 5px;">{{ <span style="color:red;margin:0 5px;">{{
subItem.TeacherName subItem.TeacherName
}}</span> }}</span>
...@@ -51,7 +53,7 @@ ...@@ -51,7 +53,7 @@
</span> </span>
</div> </div>
</div> </div>
<template v-if="subItem.ClassType == 3"> <template v-if="subItem.ClassType == 3||subItem.ClassType == 2">
<div class="plan_Inner" style="align-items:center;"> <div class="plan_Inner" style="align-items:center;">
<div class="plan_LeftTitle">课程进度:</div> <div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
......
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
<div>{{ saveObj.CourseName }}</div> <div>{{ saveObj.CourseName }}</div>
</template> </template>
</q-field> </q-field>
<q-field <q-field filled label="班级" stack-label class="col-6" v-if="saveObj.ClassType !== 3">
filled
label="班级"
stack-label
class="col-6"
v-if="saveObj.ClassType !== 3"
>
<template v-slot:control> <template v-slot:control>
<div>{{ saveObj.ClassName }}</div> <div>
{{ saveObj.ClassName }}
<span v-if="saveObj.ClassType === 2">
<span v-if="saveObj.ReserveType === 0">(正常试听)</span>
<span v-if="saveObj.ReserveType === 1">(跟班试听)</span>
</span>
</div>
</template> </template>
</q-field> </q-field>
<!-- <q-field <!-- <q-field
...@@ -41,9 +41,8 @@ ...@@ -41,9 +41,8 @@
<q-field filled label="类型" stack-label class="col-6"> <q-field filled label="类型" stack-label class="col-6">
<template v-slot:control> <template v-slot:control>
<div> <div>
<span v-if="saveObj.ClassType == 1">跟班</span <span v-if="saveObj.ClassType == 1">跟班</span><span v-if="saveObj.ClassType == 2">试听课</span><span
><span v-if="saveObj.ClassType == 2">试听课</span v-if="saveObj.ClassType == 3">约课</span>
><span v-if="saveObj.ClassType == 3">约课</span>
</div> </div>
</template> </template>
</q-field> </q-field>
...@@ -56,59 +55,28 @@ ...@@ -56,59 +55,28 @@
<template v-slot:control> <template v-slot:control>
<div> <div>
{{ saveObj.Ranks }}/{{ saveObj.TotalPlanNum }} {{ saveObj.Ranks }}/{{ saveObj.TotalPlanNum }}
<span class="q-ml-sm" v-if="saveObj.ClassType == 3" <span class="q-ml-sm" v-if="saveObj.ClassType == 3">({{ saveObj.CourseGradeName }})</span>
>({{ saveObj.CourseGradeName }})</span
>
</div> </div>
</template> </template>
</q-field> </q-field>
<q-field <q-field filled label="预约状态:" stack-label class="col-6" v-if="saveObj.ClassType == 3">
filled
label="预约状态:"
stack-label
class="col-6"
v-if="saveObj.ClassType == 3"
>
<template v-slot:control> <template v-slot:control>
<div> <div>
<span v-if="saveObj.AppointState == 1" style="color:#ef5350" <span v-if="saveObj.AppointState == 1" style="color:#ef5350">待确认</span><span
>待确认</span v-if="saveObj.AppointState == 2" style="color:#21ba45">已确认</span>
><span v-if="saveObj.AppointState == 2" style="color:#21ba45"
>已确认</span
>
</div> </div>
<q-btn <q-btn color="accent" size="xs" label="确认" v-if="
color="accent"
size="xs"
label="确认"
v-if="
saveObj.AppointState == 1 && saveObj.AppointState == 1 &&
saveObj.GuestList.length >= saveObj.ScrollMinNum && saveObj.GuestList.length >= saveObj.ScrollMinNum &&
auth.IsEdit auth.IsEdit
" " @click="confirmSub" class="q-ml-md" />
@click="confirmSub" <q-badge rounded color="red" label="未成班" style="position:absolute;top:0;right:0" class="q-ml-sm" v-if="
class="q-ml-md"
/>
<q-badge
rounded
color="red"
label="未成班"
style="position:absolute;top:0;right:0"
class="q-ml-sm"
v-if="
saveObj.AppointState == 1 && saveObj.AppointState == 1 &&
isShowTag(saveObj.GuestList, saveObj.ScrollMinNum) isShowTag(saveObj.GuestList, saveObj.ScrollMinNum)
" " />
/>
</template> </template>
</q-field> </q-field>
<q-field <q-field filled label="最小成班人数:" stack-label class="col-6" v-if="saveObj.ClassType == 3">
filled
label="最小成班人数:"
stack-label
class="col-6"
v-if="saveObj.ClassType == 3"
>
<template v-slot:control> <template v-slot:control>
<div>{{ saveObj.ScrollMinNum }}</div> <div>{{ saveObj.ScrollMinNum }}</div>
</template> </template>
...@@ -124,55 +92,20 @@ ...@@ -124,55 +92,20 @@
<div>{{ saveObj.ScrollMaxNum }}</div> <div>{{ saveObj.ScrollMaxNum }}</div>
</template> </template>
</q-field> --> </q-field> -->
<q-field <q-field filled label="已约学员:" stack-label class="col-12" v-if="saveObj.ClassType == 3">
filled
label="已约学员:"
stack-label
class="col-12"
v-if="saveObj.ClassType == 3"
>
<template v-slot:control> <template v-slot:control>
<div v-if="saveObj.AppointState == 1 && auth.IsEdit"> <div v-if="saveObj.AppointState == 1 && auth.IsEdit">
<div class="q-mt-sm flex justify-start"> <div class="q-mt-sm flex justify-start">
<q-btn <q-btn color="accent" size="xs" label="调课" @click="showChangeCourse" :disable="checkStuType2.length == 0"
color="accent" class="q-mr-sm" />
size="xs" <q-btn color="accent" size="xs" label="取消预约" @click="cancelSub()" :disable="checkStuType2.length == 0"
label="调课" class="q-mr-sm" />
@click="showChangeCourse" <q-btn color="accent" size="xs" label="补课" @click="showRelenishDig = true" style="margin-left:440px" />
:disable="checkStuType2.length == 0" <q-btn color="accent" size="xs" label="重学" @click="showReStudyDig = true" class="q-ml-sm" />
class="q-mr-sm"
/>
<q-btn
color="accent"
size="xs"
label="取消预约"
@click="cancelSub()"
:disable="checkStuType2.length == 0"
class="q-mr-sm"
/>
<q-btn
color="accent"
size="xs"
label="补课"
@click="showRelenishDig = true"
style="margin-left:440px"
/>
<q-btn
color="accent"
size="xs"
label="重学"
@click="showReStudyDig = true"
class="q-ml-sm"
/>
</div> </div>
<div class="row"> <div class="row">
<q-checkbox <q-checkbox v-model="checkStuType2" v-for="(x, y) in saveObj.GuestList" :key="y" :val="x.AppointmentId">
v-model="checkStuType2"
v-for="(x, y) in saveObj.GuestList"
:key="y"
:val="x.AppointmentId"
>
{{ x.GuestName }} {{ x.GuestName }}
<span v-if="x.AppointType == 2">(补)</span> <span v-if="x.AppointType == 2">(补)</span>
<span v-if="x.AppointType == 3">(重)</span> <span v-if="x.AppointType == 3">(重)</span>
...@@ -188,13 +121,7 @@ ...@@ -188,13 +121,7 @@
</div> </div>
</template> </template>
</q-field> </q-field>
<q-field <q-field filled label="学员名单:" stack-label class="col-12" v-if="saveObj.ClassType !== 3">
filled
label="学员名单:"
stack-label
class="col-12"
v-if="saveObj.ClassType !== 3"
>
<template v-slot:control> <template v-slot:control>
<div> <div>
<span v-for="(x, y) in saveObj.GuestList" :key="y"> <span v-for="(x, y) in saveObj.GuestList" :key="y">
...@@ -206,34 +133,20 @@ ...@@ -206,34 +133,20 @@
</template> </template>
</q-field> </q-field>
</div> </div>
<ChangeCourse <ChangeCourse v-model="showChangeDig" :saveObj="CourseObj" @success="ChangeCourseSuccessHandle" />
v-model="showChangeDig" <ReStudy v-model="showReStudyDig" :saveObj="saveObj" :date="dateObj.date" @success="ReStudyHandle"></ReStudy>
:saveObj="CourseObj" <Relenish v-model="showRelenishDig" :saveObj="saveObj" :date="dateObj.date" @success="RelenishHandle"></Relenish>
@success="ChangeCourseSuccessHandle"
/>
<ReStudy
v-model="showReStudyDig"
:saveObj="saveObj"
:date="dateObj.date"
@success="ReStudyHandle"
></ReStudy>
<Relenish
v-model="showRelenishDig"
:saveObj="saveObj"
:date="dateObj.date"
@success="RelenishHandle"
></Relenish>
</div> </div>
</template> </template>
<script> <script>
import { import {
CancelAppointment, CancelAppointment,
SetSureAppointment SetSureAppointment
} from "../../../api/studyabroad/subscribe.js"; } from "../../../api/studyabroad/subscribe.js";
import ChangeCourse from "./changeCourse"; import ChangeCourse from "./changeCourse";
import ReStudy from "./reStudy"; import ReStudy from "./reStudy";
import Relenish from "./replenish.vue"; import Relenish from "./replenish.vue";
export default { export default {
components: { components: {
ChangeCourse, ChangeCourse,
ReStudy, ReStudy,
...@@ -369,5 +282,6 @@ export default { ...@@ -369,5 +282,6 @@ export default {
} }
} }
} }
}; };
</script> </script>
...@@ -10,7 +10,13 @@ ...@@ -10,7 +10,13 @@
<span v-if="subItem.TimeStr==='早上'" class="commonTimeStr greenTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='早上'" class="commonTimeStr greenTime">{{subItem.TimeStr}}</span>
<span v-if="subItem.TimeStr==='下午'" class="commonTimeStr blueTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='下午'" class="commonTimeStr blueTime">{{subItem.TimeStr}}</span>
<span v-if="subItem.TimeStr==='晚上'" class="commonTimeStr orangeTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='晚上'" class="commonTimeStr orangeTime">{{subItem.TimeStr}}</span>
<span v-if="subItem.Type===0&&subItem.ClassType==2">试听课</span> <!-- <span v-if="subItem.Type===0&&subItem.ClassType==2">试听课</span> -->
<q-badge rounded color="orange" label="试听课" v-if="subItem.ClassType==2"
style="margin-left:5px;font-size:10px" />
<q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType==3"
style="margin-left:5px;font-size:10px" />
<q-badge rounded color="orange" label="跟班" v-if="subItem.ClassType == 2&&subItem.ReserveType===1"
style="margin-left:5px;font-size:10px" />
<span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span> <span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span>
<span>[{{subItem.RoomName}}]</span> <span>[{{subItem.RoomName}}]</span>
</div> </div>
...@@ -34,12 +40,37 @@ ...@@ -34,12 +40,37 @@
<span style="margin-right:10px;" v-for="tItem in subItem.GuestList">{{tItem.GuestName}}</span> <span style="margin-right:10px;" v-for="tItem in subItem.GuestList">{{tItem.GuestName}}</span>
</div> </div>
</div> </div>
<div class="plan_Inner" style="align-items:center;" v-if="subItem.CompleteProgress>=0"> <div class="plan_Inner" style="align-items:center;" v-if="subItem.ClassType===1&&subItem.CompleteProgress>=0">
<div class="plan_LeftTitle">课程进度:</div> <div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
<el-progress :percentage="subItem.CompleteProgress"></el-progress> <el-progress :percentage="subItem.CompleteProgress"></el-progress>
</div> </div>
</div> </div>
<div class="plan_Inner" style="align-items:center;" v-if="subItem.ClassType!==1&&subItem.Ranks&&subItem.TotalPlanNum">
<div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner">
{{subItem.Ranks}}/{{subItem.TotalPlanNum}}
</div>
</div>
<template v-if="subItem.ClassType == 3">
<div class="plan_Inner">
<div class="plan_LeftTitle">课程状态:</div>
<div class="plan_RightInner" style="color: rgb(239, 83, 80);" v-if="subItem.AppointState == 1">
待确认
</div>
<div class="plan_RightInner" style="color: rgb(33, 186, 69);" v-if="subItem.AppointState == 2">
已确认
</div>
</div>
<div class="plan_Inner" v-if="subItem.ScrollMinNum">
<div class="plan_LeftTitle">最小成班:</div>
<div class="plan_RightInner">
<span style="color: rgb(33, 186, 69);">{{
subItem.ScrollMinNum
}}</span>
</div>
</div>
</template>
</div> </div>
</el-collapse-item> </el-collapse-item>
......
...@@ -101,7 +101,13 @@ ...@@ -101,7 +101,13 @@
<div class="detailValue">{{ __item.CourseName }}</div> <div class="detailValue">{{ __item.CourseName }}</div>
</div> </div>
<div class="flex no-wrap"> <div class="flex no-wrap">
<span class="detailLabel">班级:</span><span>{{ __item.ClassName }}</span> <span class="detailLabel">班级:</span>
<span>{{ __item.ClassName }}
<span v-if="__item.ClassType===2">
<span v-if="__item.ReserveType===0">(正常试听)</span>
<span v-if="__item.ReserveType===1">(跟班试听)</span>
</span>
</span>
</div> </div>
<div class="flex no-wrap"> <div class="flex no-wrap">
<span class="detailLabel">时间:</span><span>{{ __item.StartTime }}-{{ __item.EndTime }}</span> <span class="detailLabel">时间:</span><span>{{ __item.StartTime }}-{{ __item.EndTime }}</span>
...@@ -170,7 +176,13 @@ ...@@ -170,7 +176,13 @@
<span class="detailLabel">课程:</span><span>{{ __item.CourseName }}</span> <span class="detailLabel">课程:</span><span>{{ __item.CourseName }}</span>
</div> </div>
<div class="flex no-wrap"> <div class="flex no-wrap">
<span class="detailLabel">班级:</span><span>{{ __item.ClassName }}</span> <span class="detailLabel">班级:</span>
<span>{{ __item.ClassName }}
<span v-if="__item.ClassType===2">
<span v-if="__item.ReserveType===0">(正常试听)</span>
<span v-if="__item.ReserveType===1">(跟班试听)</span>
</span>
</span>
</div> </div>
<div class="flex no-wrap"> <div class="flex no-wrap">
<span class="detailLabel">时间:</span><span>{{ __item.StartTime }}-{{ __item.EndTime }}</span> <span class="detailLabel">时间:</span><span>{{ __item.StartTime }}-{{ __item.EndTime }}</span>
...@@ -296,7 +308,7 @@ ...@@ -296,7 +308,7 @@
Id: 0 Id: 0
}, },
{ {
label: "跟班", label: "跟班",
Id: 1 Id: 1
}, },
{ {
...@@ -304,7 +316,7 @@ ...@@ -304,7 +316,7 @@
Id: 2 Id: 2
}, },
{ {
label: "约课", label: "约课",
Id: 3 Id: 3
} }
], ],
......
...@@ -10,8 +10,12 @@ ...@@ -10,8 +10,12 @@
<span v-if="subItem.TimeStr==='早上'" class="commonTimeStr greenTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='早上'" class="commonTimeStr greenTime">{{subItem.TimeStr}}</span>
<span v-if="subItem.TimeStr==='下午'" class="commonTimeStr blueTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='下午'" class="commonTimeStr blueTime">{{subItem.TimeStr}}</span>
<span v-if="subItem.TimeStr==='晚上'" class="commonTimeStr orangeTime">{{subItem.TimeStr}}</span> <span v-if="subItem.TimeStr==='晚上'" class="commonTimeStr orangeTime">{{subItem.TimeStr}}</span>
<q-badge rounded color="orange" label="试听课" v-if="subItem.ClassType==2" style="margin-left:5px;font-size:10px"/> <q-badge rounded color="orange" label="试听课" v-if="subItem.ClassType==2"
<q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType==3" style="margin-left:5px;font-size:10px"/> style="margin-left:5px;font-size:10px" />
<q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType==3"
style="margin-left:5px;font-size:10px" />
<q-badge rounded color="orange" label="跟班" v-if="subItem.ClassType == 2&&subItem.ReserveType==1"
style="margin-left:5px;font-size:10px" />
<span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span> <span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span>
<span>[{{subItem.RoomName}}]</span> <span>[{{subItem.RoomName}}]</span>
<template v-if=" <template v-if="
...@@ -41,15 +45,37 @@ ...@@ -41,15 +45,37 @@
<div class="plan_Inner" v-if="subItem.GuestList&&subItem.GuestList.length>0"> <div class="plan_Inner" v-if="subItem.GuestList&&subItem.GuestList.length>0">
<div class="plan_LeftTitle">学生名称:</div> <div class="plan_LeftTitle">学生名称:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
<span style="margin-right:10px;" v-for="tItem in subItem.GuestList">{{tItem.GuestName}}</span> <span style="margin-right:10px;" v-for="tItem in subItem.GuestList">{{tItem.GuestName}}
<span v-if="tItem.AppointType == 2">(补)</span>
<span v-if="tItem.AppointType == 3">(重)</span>
</span>
</div> </div>
</div> </div>
<div class="plan_Inner" style="align-items:center;" v-if="subItem.CompleteProgress>=0"> <div class="plan_Inner" style="align-items:center;">
<div class="plan_LeftTitle">课程进度:</div> <div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
{{subItem.Ranks}}/{{subItem.TotalPlanNum}} {{subItem.Ranks}}/{{subItem.TotalPlanNum}}
</div> </div>
</div> </div>
<template v-if="subItem.ClassType == 3">
<div class="plan_Inner">
<div class="plan_LeftTitle">课程状态:</div>
<div class="plan_RightInner" style="color: rgb(239, 83, 80);" v-if="subItem.AppointState == 1">
待确认
</div>
<div class="plan_RightInner" style="color: rgb(33, 186, 69);" v-if="subItem.AppointState == 2">
已确认
</div>
</div>
<div class="plan_Inner" v-if="subItem.ScrollMinNum">
<div class="plan_LeftTitle">最小成班:</div>
<div class="plan_RightInner">
<span style="color: rgb(33, 186, 69);">{{
subItem.ScrollMinNum
}}</span>
</div>
</div>
</template>
</div> </div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
......
...@@ -15,6 +15,14 @@ ...@@ -15,6 +15,14 @@
{{ props.row.StartTime }}-{{ props.row.EndTime }} {{ props.row.StartTime }}-{{ props.row.EndTime }}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-ClassName="props">
<q-td auto-width :props="props">
{{ props.row.ClassName }}
<span v-if="props.row.ClassType==2">
<span v-if="props.row.ReserveType==0">(正常试听)</span><span v-if="props.row.ReserveType==1">(跟班试听)</span>
</span>
</q-td>
</template>
<template v-slot:body-cell-TotalPlanNum="props"> <template v-slot:body-cell-TotalPlanNum="props">
<q-td> {{ props.row.Ranks }}/{{ props.row.TotalPlanNum }} </q-td> <q-td> {{ props.row.Ranks }}/{{ props.row.TotalPlanNum }} </q-td>
</template> </template>
......
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