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>
This diff is collapsed.
...@@ -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