Commit 093d8041 authored by 黄奎's avatar 黄奎

页面修改

parent 2acd9dce
...@@ -52,7 +52,8 @@ ...@@ -52,7 +52,8 @@
height: 120px; height: 120px;
} }
.lesson_Form .el-calendar-table:not(.is-range) td.next, .lesson_Form .el-calendar-table:not(.is-range) td.prev{ .lesson_Form .el-calendar-table:not(.is-range) td.next,
.lesson_Form .el-calendar-table:not(.is-range) td.prev {
pointer-events: none; pointer-events: none;
} }
...@@ -172,9 +173,11 @@ ...@@ -172,9 +173,11 @@
.lesson_Form .el-calendar__header { .lesson_Form .el-calendar__header {
display: none; display: none;
} }
.lesson_Form .on-left{
margin-right:5px; .lesson_Form .on-left {
margin-right: 5px;
} }
</style> </style>
<template> <template>
<div v-if="!isShowSign"> <div v-if="!isShowSign">
...@@ -182,9 +185,6 @@ ...@@ -182,9 +185,6 @@
<div class="calenderHeader"> <div class="calenderHeader">
<div> <div>
<el-radio-group v-model="checkedType" size="mini"> <el-radio-group v-model="checkedType" size="mini">
<!-- <el-radio-button label="日"></el-radio-button>
<el-radio-button label="月"></el-radio-button>
<el-radio-button style="margin-left:20px;border-left:1px solid #DCDFE6;" label="今天"></el-radio-button> -->
<el-radio-button :label="1">列表模式</el-radio-button> <el-radio-button :label="1">列表模式</el-radio-button>
<el-radio-button :label="2">日历模式</el-radio-button> <el-radio-button :label="2">日历模式</el-radio-button>
</el-radio-group> </el-radio-group>
...@@ -246,10 +246,10 @@ ...@@ -246,10 +246,10 @@
@change="getClassPlan()" placeholder="选择月"> @change="getClassPlan()" placeholder="选择月">
</el-date-picker> </el-date-picker>
</div> </div>
<template v-if="checkedType===1"> <template v-if="checkedType===1">
<q-table style="margin:20px;" :pagination="msg" no-data-label="暂无相关数据" flat class="sticky-column-table sticky-right-column-table" <q-table style="margin:20px;" :pagination="msg" no-data-label="暂无相关数据" flat
separator="none" :data="calendarData" :columns="columns" row-key="name"> class="sticky-column-table sticky-right-column-table" separator="none" :data="calendarData" :columns="columns"
row-key="name">
<template v-slot:body-cell-TimeList="props"> <template v-slot:body-cell-TimeList="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<div v-for="(item,index) in props.row.TimeList"> <div v-for="(item,index) in props.row.TimeList">
...@@ -259,7 +259,9 @@ ...@@ -259,7 +259,9 @@
</template> </template>
<template v-slot:body-cell-CheckNum="props"> <template v-slot:body-cell-CheckNum="props">
<q-td> <q-td>
<span style="color:green;">{{props.row.CheckNum}}</span>/<span style="color:red;">{{props.row.NoCheckNum}}</span> <div v-for="(item,index) in props.row.TimeList">
<span style="color:green;">{{item.CheckNum}}</span>/<span style="color:red;">{{item.NoCheckNum}}</span>
</div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
...@@ -318,12 +320,16 @@ ...@@ -318,12 +320,16 @@
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</q-btn> </q-btn>
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" style="font-weight:400" label="查看"
@click.stop="getClicked(props.row)"></q-btn>
<q-btn flat size="xs" icon="edit" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="edit" color="negative" style="font-weight:400" label="删除"
@click.stop="delInfo(props.row)"></q-btn> @click.stop="delInfo(props.row)"></q-btn>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-signUser="props">
<div v-for="(item,index) in props.row.TimeList">
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" style="font-weight:400" label="签到"
@click.stop="getClicked(props.row,item)"></q-btn>
</div>
</template>
<template v-slot:bottom> <template v-slot:bottom>
</template> </template>
</q-table> </q-table>
...@@ -334,7 +340,7 @@ ...@@ -334,7 +340,7 @@
<template slot="dateCell" slot-scope="{date, data}"> <template slot="dateCell" slot-scope="{date, data}">
<!--自定义内容--> <!--自定义内容-->
<div class="calendar-day">{{ data.day.split('-').slice(2).join('-') }}</div> <div class="calendar-day">{{ data.day.split('-').slice(2).join('-') }}</div>
<div v-for="item in calendarData" @click="getClicked(item)"> <div v-for="item in calendarData" >
<div v-if="item.ClassDateStr==data.day"> <div v-if="item.ClassDateStr==data.day">
<div class="calendarTop"> <div class="calendarTop">
<div>{{item.RoomName}}</div> <div>{{item.RoomName}}</div>
...@@ -397,7 +403,7 @@ ...@@ -397,7 +403,7 @@
</div> </div>
</div> </div>
<div class="calendarInner"> <div class="calendarInner">
<div v-for="(subItem,subIndex) in item.TimeList"> <div v-for="(subItem,subIndex) in item.TimeList" @click="getClicked(item,subItem)">
{{subIndex+1}}节课 {{subItem.StartTime}}-{{subItem.EndTime}} {{subIndex+1}}节课 {{subItem.StartTime}}-{{subItem.EndTime}}
</div> </div>
</div> </div>
...@@ -554,17 +560,22 @@ ...@@ -554,17 +560,22 @@
ClassRoomList: [], //教室下拉数据 ClassRoomList: [], //教室下拉数据
isShowMenu: false, //是否显示弹出 isShowMenu: false, //是否显示弹出
isShowEdit: false, //是否显示修改弹出 isShowEdit: false, //是否显示修改弹出
isShowCanlder: false, //是否显示日历修改日期
isShowSign: false, isShowSign: false,
dayMsg: { //获取某一天的计划信息请求 dayMsg: { //获取某一天的计划信息请求
ClassPlanId: 0, ClassPlanId: 0,
School_Id: 0, School_Id: 0,
ClassId: 0 ClassId: 0,
ClassTimeId: 0, //签到的第几节课
}, },
dayObj: {}, dayObj: {},
isShowSignBtn: false, //是否显示签到提交按钮 isShowSignBtn: false, //是否显示签到提交按钮
comChecked: {}, //点击选中复制 comChecked: {
ClassDate: "",
ClassRoomId: 0,
TeacherId: 0,
ClassTimeId: 0,
}, //点击选中复制
isSigned: true, isSigned: true,
columns: [{ columns: [{
name: 'RoomName', name: 'RoomName',
...@@ -600,6 +611,12 @@ ...@@ -600,6 +611,12 @@
label: '操作', label: '操作',
field: 'QuestionId', field: 'QuestionId',
align: 'center' align: 'center'
},
{
name: 'signUser',
label: '签到',
field: 'signUser',
align: 'center'
} }
], ],
msg: { msg: {
...@@ -609,7 +626,6 @@ ...@@ -609,7 +626,6 @@
ClassId: 0, ClassId: 0,
QMonth: '' QMonth: ''
}, },
columns2: [{ columns2: [{
name: 'GuestName', name: 'GuestName',
label: '学生姓名', label: '学生姓名',
...@@ -649,14 +665,12 @@ ...@@ -649,14 +665,12 @@
} }
}, },
mounted() { mounted() {
//this.initData();
var d = new Date(); var d = new Date();
this.comMsg.QMonth = d.getFullYear() + '-' + (d.getMonth() + 1); this.comMsg.QMonth = d.getFullYear() + '-' + (d.getMonth() + 1);
this.GetTeacherList(); this.GetTeacherList();
this.getClassRoomList(); this.getClassRoomList();
this.addMsg.TeacherId = this.setingObj.Teacher_Id; this.addMsg.TeacherId = this.setingObj.Teacher_Id;
this.addMsg.ClassDate = this.setingObj.OpenTime; this.addMsg.ClassDate = this.setingObj.OpenTime;
this.getClassPlan(); this.getClassPlan();
}, },
methods: { methods: {
...@@ -812,13 +826,17 @@ ...@@ -812,13 +826,17 @@
}); });
}, },
//点击日历 //点击日历
getClicked(item) { getClicked(item, subItem) {
if (item.IsEndDate) { if (item.IsEndDate) {
this.isShowSign = true; this.isShowSign = true;
this.dayMsg.ClassPlanId = item.ClassPlanId; this.dayMsg.ClassPlanId = item.ClassPlanId;
this.dayMsg.School_Id = this.setingObj.School_Id; this.dayMsg.School_Id = this.setingObj.School_Id;
this.dayMsg.ClassId = this.setingObj.ClassId; this.dayMsg.ClassId = this.setingObj.ClassId;
this.comChecked = item; this.dayMsg.ClassTimeId = subItem.ClassTimeId;
this.comChecked.ClassDate = item.ClassDateStr;
this.comChecked.ClassRoomId = item.ClassRoomId;
this.comChecked.TeacherId = item.TeacherId;
this.comChecked.ClassTimeId = subItem.ClassTimeId;
this.getDayClassPlan(); this.getDayClassPlan();
} }
}, },
...@@ -871,13 +889,14 @@ ...@@ -871,13 +889,14 @@
this.dayObj.GuestList.forEach(x => { this.dayObj.GuestList.forEach(x => {
let obj = { let obj = {
classId: this.setingObj.ClassId, classId: this.setingObj.ClassId,
ClassDate: this.comChecked.ClassDateStr, ClassDate: this.comChecked.ClassDate,
ClassRoomId: this.comChecked.ClassRoomId, ClassRoomId: this.comChecked.ClassRoomId,
School_Id: this.setingObj.School_Id, School_Id: this.setingObj.School_Id,
TeacherId: this.comChecked.TeacherId, TeacherId: this.comChecked.TeacherId,
OrderGuestId: x.Id, OrderGuestId: x.Id,
CheckStatus: x.IsCheck, CheckStatus: x.IsCheck,
StudyNum: x.StudyNum == '' ? 0 : x.StudyNum StudyNum: x.StudyNum == '' ? 0 : x.StudyNum,
ClassTimeId: this.comChecked.ClassTimeId,
} }
signMsg.push(obj); signMsg.push(obj);
}) })
......
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