Commit 0eea08ee authored by 黄奎's avatar 黄奎

页面修改

parent 9c594f54
<style> <style>
.classLog{ .classLog {
margin:0 20px; margin: 0 20px;
height:600px; height: 600px;
overflow:auto; overflow: auto;
} }
.classLog::-webkit-scrollbar { .classLog::-webkit-scrollbar {
width: 3px; width: 3px;
height: 3px; height: 3px;
background-color: #F5F5F5; background-color: #F5F5F5;
} }
/*!*定义滚动条轨道 内阴影+圆角*!*/ /*!*定义滚动条轨道 内阴影+圆角*!*/
.classLog::-webkit-scrollbar-track { .classLog::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px; border-radius: 10px;
background-color: #F5F5F5; background-color: #F5F5F5;
} }
/*!*定义滑块 内阴影+圆角*!*/ /*!*定义滑块 内阴影+圆角*!*/
.classLog::-webkit-scrollbar-thumb { .classLog::-webkit-scrollbar-thumb {
border-radius: 10px; border-radius: 10px;
-webkit-box-shadow: -webkit-gradient(linear, 0 0, 0 100%, color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.5, transparent), to(transparent)); -webkit-box-shadow: -webkit-gradient(linear, 0 0, 0 100%, color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.5, transparent), to(transparent));
background-color: #0ae; background-color: #0ae;
} }
.classLog_Title{
font-size:14px; .classLog_Title {
font-size: 14px;
font-weight: bold; font-weight: bold;
color:#2D2D2D; color: #2D2D2D;
} }
</style> </style>
<template> <template>
<div class="classLog" style="margin:0 20px;"> <div class="classLog" style="margin:0 20px;">
...@@ -68,15 +73,14 @@ ...@@ -68,15 +73,14 @@
dataList: [], dataList: [],
} }
}, },
created() { created() {},
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
},
mounted() { mounted() {
this.getClassLog(); this.getClassLog();
}, },
methods: { methods: {
getClassLog() { getClassLog() {
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
queryClassLogPageList(this.msg).then(res => { queryClassLogPageList(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
...@@ -84,6 +88,11 @@ ...@@ -84,6 +88,11 @@
}) })
}, },
}, },
watch: {
setingObj: function (val, oldval) {
this.getClassLog();
}
}
} }
</script> </script>
......
...@@ -122,7 +122,6 @@ ...@@ -122,7 +122,6 @@
align: 'left' align: 'left'
} }
], ],
stuMsg: { stuMsg: {
}, },
...@@ -149,24 +148,16 @@ ...@@ -149,24 +148,16 @@
} }
}, },
created() { created() {
},
mounted() {
this.getStudentData(); this.getStudentData();
this.getStudentList(); this.getStudentList();
}, },
mounted() {},
methods: { methods: {
//获取学员信息 //获取学员信息
getStudentData() { getStudentData() {
queryClassStudent({ this.studentList = [];
ClassId: this.setingObj.ClassId,
School_Id: this.setingObj.School_Id
}).then(res => {
if (res.Code == 1) {
this.studentList = res.Data;
}
})
},
//获取学员信息
getStudentData() {
queryClassStudent({ queryClassStudent({
ClassId: this.setingObj.ClassId, ClassId: this.setingObj.ClassId,
School_Id: this.setingObj.School_Id School_Id: this.setingObj.School_Id
...@@ -254,6 +245,12 @@ ...@@ -254,6 +245,12 @@
} }
} }
}, },
watch: {
setingObj: function (val, oldval) {
this.getStudentData();
this.getStudentList();
}
}
} }
</script> </script>
...@@ -87,63 +87,77 @@ ...@@ -87,63 +87,77 @@
text-align: center; text-align: center;
border-radius: 50%; border-radius: 50%;
} }
.StudentInfo_List{
.StudentInfo_List {
display: flex; display: flex;
width:100%; width: 100%;
margin:0 20px; margin: 0 20px;
padding:0 40px 0 20px; padding: 0 40px 0 20px;
justify-content: space-between; justify-content: space-between;
border-bottom:1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
} }
.Show_SignBack{
margin:20px; .Show_SignBack {
color:#2961FE; margin: 20px;
color: #2961FE;
} }
.Lessicon_Edit:hover{
color:red; .Lessicon_Edit:hover {
color: red;
} }
.Less_Close:hover{
color:red; .Less_Close:hover {
color: red;
} }
.lessStudentList{
margin-top:10px; .lessStudentList {
margin-top: 10px;
} }
.lessStuTitle{
margin:20px; .lessStuTitle {
padding-left:20px; margin: 20px;
font-size:12px; padding-left: 20px;
font-size: 12px;
} }
.lessStuInnerList{
display:flex; .lessStuInnerList {
margin:0 40px; display: flex;
margin: 0 40px;
min-height: 300px; min-height: 300px;
} }
.lessList{
width:90px; .lessList {
height:110px; width: 90px;
border:1px solid #d1d1d1; height: 110px;
border: 1px solid #d1d1d1;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
margin-right:10px; margin-right: 10px;
cursor: pointer; cursor: pointer;
box-shadow: 4px 4px 5px #d1d1d1; box-shadow: 4px 4px 5px #d1d1d1;
} }
.less_Isout{
font-size:12px; .less_Isout {
color:#2961FE; font-size: 12px;
color: #2961FE;
} }
.classQue{
.classQue {
background-color: rgb(63, 196, 255); background-color: rgb(63, 196, 255);
} }
.classChu{
.classChu {
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.classChu .commonLessName{
color:#000; .classChu .commonLessName {
color: #000;
} }
.classQue .commonLessName{
color:#fff; .classQue .commonLessName {
color: #fff;
} }
</style> </style>
<template> <template>
<div v-if="!isShowSign"> <div v-if="!isShowSign">
...@@ -178,8 +192,8 @@ ...@@ -178,8 +192,8 @@
v-model="isSetMore" /> v-model="isSetMore" />
<template v-if="isSetMore==1"> <template v-if="isSetMore==1">
<q-select filled stack-label option-value="RoomId" option-label="RoomName" <q-select filled stack-label option-value="RoomId" option-label="RoomName"
v-model="addMsg.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室" :dense="false" v-model="addMsg.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室"
class="col-6 q-pb-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg" emit-value map-options />
<div style="display:flex;justify-content:flex-end;margin-bottom:20px;"> <div style="display:flex;justify-content:flex-end;margin-bottom:20px;">
<q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" /> <q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
...@@ -189,8 +203,8 @@ ...@@ -189,8 +203,8 @@
ref="StartTime" class="col-6 q-pr-lg q-pb-lg" label="" :rules="[val => !!val || '请填写开始时间']" /> ref="StartTime" class="col-6 q-pr-lg q-pb-lg" label="" :rules="[val => !!val || '请填写开始时间']" />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="subItem.EndTime" ref="EndTime" <q-input filled stack-label maxlength="20" :dense="false" v-model="subItem.EndTime"
class="col-6 q-pr-lg q-pb-lg" label="" :rules="[val => !!val || '请填写开始时间']" /> ref="EndTime" class="col-6 q-pr-lg q-pb-lg" label="" :rules="[val => !!val || '请填写开始时间']" />
</div> </div>
<div class="delBtnStyle"> <div class="delBtnStyle">
<i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i> <i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i>
...@@ -198,7 +212,8 @@ ...@@ -198,7 +212,8 @@
</div> </div>
</template> </template>
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowMenu=false" style="font-weight:400 !important" /> <q-btn label="取消" flat color="grey-10" @click="isShowMenu=false"
style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveSteps" /> <q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveSteps" />
</q-card-actions> </q-card-actions>
</div> </div>
...@@ -223,8 +238,8 @@ ...@@ -223,8 +238,8 @@
<div class="calenderDialog"> <div class="calenderDialog">
<div style="margin:10px 0 15px 0;">{{item.ClassDateStr}}课程安排</div> <div style="margin:10px 0 15px 0;">{{item.ClassDateStr}}课程安排</div>
<q-select filled stack-label option-value="TId" option-label="TeacherName" <q-select filled stack-label option-value="TId" option-label="TeacherName"
v-model="addMsg.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" :dense="false" v-model="addMsg.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师"
class="col-6 q-pb-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg" emit-value map-options />
<!-- <div class="calenderClassDate"> <!-- <div class="calenderClassDate">
<div>上课时间:{{item.ClassDateStr}}</div> <div>上课时间:{{item.ClassDateStr}}</div>
<div> <div>
...@@ -247,7 +262,8 @@ ...@@ -247,7 +262,8 @@
v-model="addMsg.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室" v-model="addMsg.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室"
:dense="false" class="col-6 q-pb-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg" emit-value map-options />
<div style="display:flex;justify-content:flex-end;margin-bottom:20px;"> <div style="display:flex;justify-content:flex-end;margin-bottom:20px;">
<q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" /> <q-btn @click="addStep()" size="10px" round color="primary"
icon="iconfont icon-img_haha" />
</div> </div>
<div class="row wrap" style="position:relative;" <div class="row wrap" style="position:relative;"
v-for="(subItem,subIndex) in addMsg.PlanTimeList"> v-for="(subItem,subIndex) in addMsg.PlanTimeList">
...@@ -348,10 +364,8 @@ ...@@ -348,10 +364,8 @@
</div> </div>
</div> </div>
<q-card-actions align="right" class="bg-white" v-if="isShowSignBtn&&isSigned"> <q-card-actions align="right" class="bg-white" v-if="isShowSignBtn&&isSigned">
<q-btn label="取消" flat color="grey-10" <q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="isShowSign=false" />
style="font-weight:400 !important" @click="isShowSign=false" /> <q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveSign()" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important"
@click="saveSign()" />
</q-card-actions> </q-card-actions>
</div> </div>
...@@ -409,19 +423,26 @@ ...@@ -409,19 +423,26 @@
isShowEdit: false, //是否显示修改弹出 isShowEdit: false, //是否显示修改弹出
isShowCanlder: false, //是否显示日历修改日期 isShowCanlder: false, //是否显示日历修改日期
isShowSign:false, isShowSign: false,
dayMsg:{ //获取某一天的计划信息请求 dayMsg: { //获取某一天的计划信息请求
ClassPlanId:0, ClassPlanId: 0,
School_Id:0, School_Id: 0,
ClassId:0 ClassId: 0
}, },
dayObj:{}, dayObj: {},
isShowSignBtn:false, //是否显示签到提交按钮 isShowSignBtn: false, //是否显示签到提交按钮
comChecked:{}, //点击选中复制 comChecked: {}, //点击选中复制
isSigned:true isSigned: true
} }
}, },
created() { created() {
},
mounted() {
this.initData();
},
methods: {
initData() {
this.$nextTick(() => { this.$nextTick(() => {
// 点击上个月 // 点击上个月
let prevBtn1 = document.querySelector('.el-calendar__button-group .el-button-group>button:nth-child(1)'); let prevBtn1 = document.querySelector('.el-calendar__button-group .el-button-group>button:nth-child(1)');
...@@ -442,12 +463,10 @@ ...@@ -442,12 +463,10 @@
prevBtn3.addEventListener('click', () => { prevBtn3.addEventListener('click', () => {
var d = new Date(this.value); var d = new Date(this.value);
var datetime = d.getFullYear() + '-' + (d.getMonth() + 1); var datetime = d.getFullYear() + '-' + (d.getMonth() + 1);
this.getClassPlan(datetime); this.getClassPlan(datetime);
}) })
}) })
},
mounted() {
var day2 = new Date(); var day2 = new Date();
day2.setTime(day2.getTime()); day2.setTime(day2.getTime());
var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1); var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1);
...@@ -457,7 +476,6 @@ ...@@ -457,7 +476,6 @@
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;
}, },
methods: {
//获取第一个字 //获取第一个字
GetFirst(val) { GetFirst(val) {
if (val) { if (val) {
...@@ -564,9 +582,9 @@ ...@@ -564,9 +582,9 @@
}); });
}, },
//点击日历 //点击日历
getClicked(item){ getClicked(item) {
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;
...@@ -575,68 +593,73 @@ ...@@ -575,68 +593,73 @@
} }
}, },
//获取某一天的计划信息 //获取某一天的计划信息
getDayClassPlan(){ getDayClassPlan() {
GetDayClassPlan(this.dayMsg).then(res => { GetDayClassPlan(this.dayMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.dayObj = res.Data; this.dayObj = res.Data;
var d = new Date(); var d = new Date();
var datetime = d.getFullYear() + '-' + (d.getMonth() + 1)+ '-'+ d.getDate(); var datetime = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate();
if(this.dayObj.ClassDate==datetime){ if (this.dayObj.ClassDate == datetime) {
this.isShowSignBtn=true; this.isShowSignBtn = true;
}else{ } else {
this.isShowSignBtn=false; this.isShowSignBtn = false;
} }
var count=0; var count = 0;
this.dayObj.GuestList.forEach(x=>{ this.dayObj.GuestList.forEach(x => {
if(x.IsCheck==-1){ if (x.IsCheck == -1) {
count++; count++;
} }
}) })
if(count==this.dayObj.GuestList.length){ if (count == this.dayObj.GuestList.length) {
this.isSigned=true; this.isSigned = true;
}else{ } else {
this.isSigned=false; this.isSigned = false;
} }
this.dayObj.GuestList.forEach(x=>{ this.dayObj.GuestList.forEach(x => {
if(this.isShowSignBtn&&x.IsCheck==-1){ if (this.isShowSignBtn && x.IsCheck == -1) {
x.IsCheck=0; x.IsCheck = 0;
} }
}) })
} }
}) })
}, },
//点击切换签到 //点击切换签到
changeStatus(item){ changeStatus(item) {
if(this.isShowSignBtn){ if (this.isShowSignBtn) {
if(item.IsCheck==0){ if (item.IsCheck == 0) {
item.IsCheck=1; item.IsCheck = 1;
}else{ } else {
item.IsCheck=0; item.IsCheck = 0;
} }
} }
}, },
//点击签到 //点击签到
saveSign(){ saveSign() {
let signMsg = []; let signMsg = [];
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.ClassDateStr,
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
} }
signMsg.push(obj); signMsg.push(obj);
}) })
addClassCheck(signMsg).then(res => { addClassCheck(signMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.isShowSign=false; this.isShowSign = false;
} }
}) })
} }
}, },
watch: {
setingObj: function (val, oldval) {
this.initData();
}
}
} }
</script> </script>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
background: #ffffff; background: #ffffff;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
color:#fff; color: #fff;
} }
.cicle1:first-child { .cicle1:first-child {
...@@ -43,23 +43,28 @@ ...@@ -43,23 +43,28 @@
padding-left: 20px; padding-left: 20px;
background-color: #F0F5FB; background-color: #F0F5FB;
} }
.recordForm .reCordRed{
color:#FDD5dc; .recordForm .reCordRed {
color: #FDD5dc;
background-color: #F72E52; background-color: #F72E52;
} }
.recordForm .reCordBlue{
color:#2961FE; .recordForm .reCordBlue {
color: #2961FE;
background-color: #D4DFFF; background-color: #D4DFFF;
} }
.recordForm .reCordOrange{
color:#F28C1D; .recordForm .reCordOrange {
color: #F28C1D;
background-color: #FCE8D2; background-color: #FCE8D2;
} }
.timecenter_Line{
border-left:1px solid #366595; .timecenter_Line {
position:absolute; border-left: 1px solid #366595;
left:130px; position: absolute;
} left: 130px;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -72,7 +77,8 @@ ...@@ -72,7 +77,8 @@
</div> </div>
</div> </div>
<div> <div>
<div class="col-10" style="margin-top:30px;display:flex;" v-if="dataList.resultList&&dataList.resultList.length>0"> <div class="col-10" style="margin-top:30px;display:flex;"
v-if="dataList.resultList&&dataList.resultList.length>0">
<div class="col-4" id="timeleft"> <div class="col-4" id="timeleft">
<div v-for="item in dataList.resultList"> <div v-for="item in dataList.resultList">
{{item.YearStr}}-{{item.MonthStr}}-{{item.DayStr}} {{item.YearStr}}-{{item.MonthStr}}-{{item.DayStr}}
...@@ -132,16 +138,17 @@ ...@@ -132,16 +138,17 @@
} }
}, },
created() { created() {
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
this.msg.TeacherId = this.setingObj.Teacher_Id;
this.getRecord();
}, },
mounted() { mounted() {
this.getRecord();
this.GetTeacherList(); this.GetTeacherList();
}, },
methods: { methods: {
getRecord() { getRecord() {
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
this.msg.TeacherId = this.setingObj.Teacher_Id;
GetClassPlanLogPageList(this.msg).then(res => { GetClassPlanLogPageList(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
...@@ -169,10 +176,16 @@ ...@@ -169,10 +176,16 @@
getTop(index) { getTop(index) {
return index * 77 + 'px'; return index * 77 + 'px';
}, },
getHeight(data){ getHeight(data) {
return (data.length-1)*80+'px' return (data.length - 1) * 80 + 'px'
} }
}, },
watch: {
setingObj: function (val, oldval) {
this.getRecord();
this.GetTeacherList();
}
}
} }
</script> </script>
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
<q-select @input="getClassList" standout="bg-primary text-white" option-value="SId" option-label="SName" <q-select @input="getClassList" standout="bg-primary text-white" option-value="SId" option-label="SName"
v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" /> v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" />
</div> </div>
</div> </div> </div>
</div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
separator="none" :data="data" :columns="columns" row-key="name"> separator="none" :data="data" :columns="columns" row-key="name">
...@@ -70,7 +71,8 @@ ...@@ -70,7 +71,8 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="订单中心" @click="gotoOrder(props.row)"></q-btn> <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="订单中心"
@click="gotoOrder(props.row)"></q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="收支明细"></q-btn> <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="收支明细"></q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditCourse(props.row)" /> @click="EditCourse(props.row)" />
...@@ -276,6 +278,8 @@ ...@@ -276,6 +278,8 @@
}, },
//点击班级名称 //点击班级名称
getClassInfo(obj) { getClassInfo(obj) {
this.classObjOption = null;
this.isShowClassInfo = false;
this.classObjOption = obj; this.classObjOption = obj;
this.isShowClassInfo = true; this.isShowClassInfo = true;
} }
......
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