Commit 826f47e1 authored by 黄奎's avatar 黄奎

页面修改

parent cb105912
...@@ -869,7 +869,6 @@ export default { ...@@ -869,7 +869,6 @@ export default {
} }
}, },
downloadFile(i) { downloadFile(i) {
console.log(846, i);
const a = document.createElement("a"); const a = document.createElement("a");
a.setAttribute("download", ""); a.setAttribute("download", "");
a.setAttribute("href", i.url); a.setAttribute("href", i.url);
......
...@@ -132,7 +132,6 @@ export default { ...@@ -132,7 +132,6 @@ export default {
}; };
}, },
mounted() { mounted() {
console.log(85, this.setObj);
if (this.setObj) { if (this.setObj) {
if (this.setObj.STUID) { if (this.setObj.STUID) {
this.msg.StuId = this.setObj.STUID; this.msg.StuId = this.setObj.STUID;
...@@ -168,7 +167,6 @@ export default { ...@@ -168,7 +167,6 @@ export default {
this.msg.EventContent = ""; this.msg.EventContent = "";
this.msg.EventPicList = []; this.msg.EventPicList = [];
} }
console.log(109, this.msg);
this.$forceUpdate(); this.$forceUpdate();
}, },
methods: { methods: {
...@@ -177,7 +175,6 @@ export default { ...@@ -177,7 +175,6 @@ export default {
this.persistent = false; this.persistent = false;
}, },
save() { save() {
console.log(89, this.msg);
this.saveLoading = true; this.saveLoading = true;
addEvent(this.msg) addEvent(this.msg)
.then((res) => { .then((res) => {
......
...@@ -175,7 +175,6 @@ export default { ...@@ -175,7 +175,6 @@ export default {
}, },
getList() { getList() {
getClassCheckPageList(this.msg).then((res) => { getClassCheckPageList(this.msg).then((res) => {
console.log(83, res);
if (res.Code === 1) { if (res.Code === 1) {
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
......
...@@ -563,20 +563,6 @@ export default { ...@@ -563,20 +563,6 @@ export default {
initialIndex: 0, initialIndex: 0,
}; };
}, },
// watch: {
// selected: {
// handler(val) {
// console.log(302, val)
// },
// deep: true
// },
// selectedStu: {
// handler(val) {
// console.log(353, val)
// },
// deep: true
// }
// },
mounted() { mounted() {
let u = Lockr.get("loginUserInfo"); let u = Lockr.get("loginUserInfo");
if (u) { if (u) {
......
...@@ -345,14 +345,11 @@ export default { ...@@ -345,14 +345,11 @@ export default {
fileTypeNumber = x.type; fileTypeNumber = x.type;
} }
}); });
// let newArr = [];
// newArr.push(file.file);
this.$message.info(this.$t("tips.shangchuanzhong")); this.$message.info(this.$t("tips.shangchuanzhong"));
UploadSelfFile( UploadSelfFile(
"Temporary", "Temporary",
file.file, file.file,
(x) => { (x) => {
console.log(306, x);
if (x.Code == 1) { if (x.Code == 1) {
this.saveMsg.push({ this.saveMsg.push({
Content: x.FileUrl, Content: x.FileUrl,
......
...@@ -2108,12 +2108,9 @@ ...@@ -2108,12 +2108,9 @@
let minute = myDate.getMinutes() < 10 ? "0" + myDate.getMinutes() : myDate.getMinutes(); let minute = myDate.getMinutes() < 10 ? "0" + myDate.getMinutes() : myDate.getMinutes();
let second = myDate.getSeconds() < 10 ? "0" + myDate.getSeconds() : myDate.getSeconds(); let second = myDate.getSeconds() < 10 ? "0" + myDate.getSeconds() : myDate.getSeconds();
this.timer = hour + ':' + minute + ':' + second; this.timer = hour + ':' + minute + ':' + second;
// this.financeinfo_post_GetList(TCID);
if (this.$route.query.edit) { if (this.$route.query.edit) {
// 编辑 // 编辑
this.msg.FrID = this.$route.query.FrID; this.msg.FrID = this.$route.query.FrID;
console.log(this.$route.query.FrID,'财务单据id')
if( this.msg.FrID>0){ if( this.msg.FrID>0){
this.costmode= false this.costmode= false
} }
......
<style> <style>
.studentManage .el-input { .studentManage .el-input {
width: 100%; width: 100%;
border: none; border: none;
background-color: transparent; background-color: transparent;
} }
.studentManage .el-input__inner { .studentManage .el-input__inner {
width: 100%; width: 100%;
border: none; border: none;
...@@ -12,462 +11,466 @@ ...@@ -12,462 +11,466 @@
} }
</style> </style>
<template> <template>
<div class="page-body studentManage"> <div class="page-body studentManage">
<div class="page-search row items-center " > <div class="page-search row items-center ">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-select @input="getClass" standout="bg-primary text-white" option-value="SId" option-label="SName" <q-select @input="getClass" 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 class="col-3"> <div class="col-3">
<q-select @input="getClass" standout="bg-primary text-white" option-value="CourseId" <q-select @input="getClass" standout="bg-primary text-white" option-value="CourseId" option-label="CourseName"
option-label="CourseName" v-model="msg.CouseId" :options="CourseList" emit-value map-options label="课程" @change="" v-model="msg.CouseId" :options="CourseList" emit-value map-options label="课程" use-input
use-input @filter="filterCourse"> @filter="filterCourse">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
未找到相关数据 未找到相关数据
</q-item-section> </q-item-section>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="refreshPage" standout="bg-primary text-white" option-value="ClassId" <q-select @input="refreshPage" standout="bg-primary text-white" option-value="ClassId"
option-label="ClassName" v-model="msg.ClassId" :options="ClassList" emit-value map-options label="班级" option-label="ClassName" v-model="msg.ClassId" :options="ClassList" emit-value map-options label="班级"
use-input @filter="filterClass" /> use-input @filter="filterClass" />
</div> </div>
<div class="col-3 Sysuser_Date"> <div class="col-3 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="msg.StartDate" type="date" placeholder="开始日期" value-format="yyyy-MM-dd" :picker-options="option" :clearable ='false' <el-date-picker v-model="msg.StartDate" type="date" placeholder="开始日期" value-format="yyyy-MM-dd"
@change="resetSearch"> :picker-options="option" :clearable='false' @change="resetSearch">
</el-date-picker>     </el-date-picker>    
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学生名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学生名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="Name" <q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="msg.CheckStatus" :options="AttendanceList2" emit-value map-options label="出勤状态" /> v-model="msg.CheckStatus" :options="AttendanceList2" emit-value map-options label="出勤状态" />
</div>
</div> </div>
</div> </div>
<div class="page-content"> </div>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <div class="page-content">
class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
row-key="name"> class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns"
<template v-slot:top="props"> row-key="name">
<div class="col-2 q-table__title">学员管理</div> <template v-slot:top="props">
<q-space /> <div class="col-2 q-table__title">学员管理</div>
<div class="page-option"> <q-space />
<q-btn color="accent" size="sm" class="q-mr-md" label="导出" @click="getexport()" /> <div class="page-option">
</div> <q-btn color="accent" size="sm" class="q-mr-md" label="导出" @click="getexport()" />
</template> </div>
<template v-slot:body-cell-GuestName="props"> </template>
<q-td :props="props" style="padding-right:0px"> <template v-slot:body-cell-GuestName="props">
<div v-for="x in props.row.GuestList"> <q-td :props="props" style="padding-right:0px">
<div class="border-bottom" > <div v-for="x in props.row.GuestList">
{{ x.GuestName }} <div class="border-bottom">
</div> {{ x.GuestName }}
</div>
<div v-if="!props.row.GuestList || props.row.GuestList.length == 0">
<div class="remark-font">暂无</div>
</div>
</q-td>
</template>
<template v-slot:body-cell-CurrentDeductionHours="props">
<q-td :props="props" >
<div v-for="x in props.row.GuestList">
<div class="border-bottom" >
{{ x.CurrentDeductionHours }}
</div>
</div>
<div v-if="!props.row.GuestList || props.row.GuestList.length == 0">
<div class="remark-font">暂无</div>
</div> </div>
</q-td> </div>
</template> <div v-if="!props.row.GuestList || props.row.GuestList.length == 0">
<template v-slot:body-cell-CheckStatus="props"> <div class="remark-font">暂无</div>
<q-td :props="props" > </div>
<div v-for="x in props.row.GuestList"> </q-td>
<div class="border-bottom" > </template>
<span v-if="x.CheckStatus == 0">正常</span> <template v-slot:body-cell-CurrentDeductionHours="props">
<span v-if="x.CheckStatus == 1">缺席</span> <q-td :props="props">
<span v-if="x.CheckStatus == 2">请假</span> <div v-for="x in props.row.GuestList">
</div> <div class="border-bottom">
{{ x.CurrentDeductionHours }}
</div> </div>
<div v-if="!props.row.GuestList || props.row.GuestList.length == 0"> </div>
<div class="remark-font">暂无</div> <div v-if="!props.row.GuestList || props.row.GuestList.length == 0">
<div class="remark-font">暂无</div>
</div>
</q-td>
</template>
<template v-slot:body-cell-CheckStatus="props">
<q-td :props="props">
<div v-for="x in props.row.GuestList">
<div class="border-bottom">
<span v-if="x.CheckStatus == 0">正常</span>
<span v-if="x.CheckStatus == 1">缺席</span>
<span v-if="x.CheckStatus == 2">请假</span>
</div> </div>
</q-td> </div>
</template> <div v-if="!props.row.GuestList || props.row.GuestList.length == 0">
<template v-slot:bottom> <div class="remark-font">暂无</div>
<!-- <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" </div>
</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" /> --> :input="true" @input="changePage" /> -->
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props" > <q-td :props="props">
<div v-for="x in props.row.GuestList"> <div v-for="x in props.row.GuestList">
<div class="border-bottom" > <div class="border-bottom">
<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(x,props.row)" /> @click="EditCourse(x,props.row)" />
</div>
</div> </div>
</div>
</q-td> </q-td>
</template>
</template> </q-table>
</q-table>
</div>
<!-- 修改状态 -->
<q-dialog v-model="IsShowDialog" persistent transition-show="scale"
transition-hide="scale">
<q-card style="width: 400px;max-width:500px;">
<q-card-section>
<div class="text-h6">修改出勤状态</div>
</q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-select standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="editMsg.CheckStatus" :options="AttendanceList" emit-value map-options label="出勤状态" />
</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="IsShowDialog=false" />
<q-btn label="立即提交" color="accent" class="q-px-md" style="font-weight:400 !important"
@click="saveAttendance" />
</q-card-actions>
</q-card>
</q-dialog>
</div> </div>
</template> <!-- 修改状态 -->
<script> <q-dialog v-model="IsShowDialog" persistent transition-show="scale" transition-hide="scale">
import { <q-card style="width: 400px;max-width:500px;">
<q-card-section>
<div class="text-h6">修改出勤状态</div>
</q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-select standout="bg-primary text-white" option-value="Id" option-label="Name" v-model="editMsg.CheckStatus"
:options="AttendanceList" emit-value map-options label="出勤状态" />
</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="IsShowDialog=false" />
<q-btn label="立即提交" color="accent" class="q-px-md" style="font-weight:400 !important"
@click="saveAttendance" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
import {
addClassCheck addClassCheck
} from '../../api/course/class'; } from '../../api/course/class';
import { import {
queryCourseDropdownList, queryCourseDropdownList,
} from '../../api/course/index' //课程下拉 } from '../../api/course/index' //课程下拉
//获取校区列表 //获取校区列表
import { import {
getSchoolDropdown, getSchoolDropdown,
deleteClass, deleteClass,
getClassDropDownList getClassDropDownList
} from '../../api/school/index'; } from '../../api/school/index';
import{ import {
getStudentAttendanceDayStatistics getStudentAttendanceDayStatistics
} from "../../api/stuMan/index" } from "../../api/stuMan/index"
import selectTree from "../../components/common/select-tree"; import selectTree from "../../components/common/select-tree";
import { openURL } from "quasar"; import {
import { openURL
EduDownLoad, } from "quasar";
} from '../../api/common/common'; import {
export default { EduDownLoad,
meta: { } from '../../api/common/common';
title: "学员管理" export default {
}, meta: {
components: { title: "学员管理"
selectTree, },
}, components: {
data() { selectTree,
return { },
columns: [ data() {
return {
{ columns: [
name: "ClassName", {
required: true, name: "ClassName",
label: "班级", required: true,
align: "left", label: "班级",
field: row => row.ClassName align: "left",
}, field: row => row.ClassName
{
name: "CourseName",
required: true,
label: "课程",
align: "left",
field: row => row.CourseName
},
{
name: "TeacherName",
required: true,
label: "老师",
align: "left",
field: row => row.TeacherName
},
{
name: "ClassDate",
required: true,
label: "上课日期",
align: "left",
field: row => row.ClassDate
},
{
name: "TimeBucket",
required: true,
label: "上课时间段",
align: "left",
field: row => row.TimeBucket
},
{
name: "GuestName",
required: true,
label: "学生",
align: "left",
field: row => row.GuestName
},
{
name: "CurrentDeductionHours",
required: true,
label: "课时",
align: "left",
field: row => row.CurrentDeductionHours
},
{
name: "CheckStatus",
required: true,
label: "状态",
align: "left",
field: row => row.CheckStatus
},
{
name: "optioned",
label: "操作",
align: "left",
field: row => row.optioned
}
],
data: [],
loading: true,
ShowOpts: [{
label: "全部",
value: "-1"
},
{
label: "正常",
value: "0"
},
{
label: "删除",
value: "1"
}
],
msg: {
StartDate:'2021-07-20',
School_Id:-1,
CouseId:0,
ClassId:0,
OrderGuestId:'',
GuestName:'',
CheckStatus:-1,
}, },
IsShowDialog:false, {
//课程分类树形列表 name: "CourseName",
TreeCategoryList: [], required: true,
returnString: [], //默认值 label: "课程",
CourseList: [], //关联课程下拉数据 align: "left",
AllCourseList: [], field: row => row.CourseName
ClassList: [], //班级下拉
allClassList: [],
AttendanceList2:[{Name:'全部',Id:-1},{Name:'缺席',Id:1},{Name:'请假',Id:2},],
AttendanceList:[{Name:'正常',Id:0},{Name:'缺席',Id:1},{Name:'请假',Id:2},],
option:{
disabledDate:(time)=> {
return time.getTime() > Date.now()
}
}, },
schoolList: [], {
editMsg:{//修改的对象 name: "TeacherName",
CheckStatus:0, required: true,
StudyNum:0, label: "老师",
align: "left",
field: row => row.TeacherName
}, },
iseditjurisdiction:false, {
}; name: "ClassDate",
}, required: true,
label: "上课日期",
mounted() { align: "left",
let userinfo = this.getLocalStorage(); field: row => row.ClassDate
userinfo.ActionMenuList.map(x=>{//判断权限 },
if(x.FunctionCode == "Student_Attendance"){//判断是否有修改状态的权限 {
this.iseditjurisdiction = true; name: "TimeBucket",
required: true,
label: "上课时间段",
align: "left",
field: row => row.TimeBucket
},
{
name: "GuestName",
required: true,
label: "学生",
align: "left",
field: row => row.GuestName
},
{
name: "CurrentDeductionHours",
required: true,
label: "课时",
align: "left",
field: row => row.CurrentDeductionHours
},
{
name: "CheckStatus",
required: true,
label: "状态",
align: "left",
field: row => row.CheckStatus
},
{
name: "optioned",
label: "操作",
align: "left",
field: row => row.optioned
} }
],
}) data: [],
let d = new Date(); loading: true,
let year = d.getFullYear(); ShowOpts: [{
let month = d.getMonth() + 1; label: "全部",
month = month < 10 ? '0' + month : month; value: "-1"
let day = d.getDate(); },
day = day < 10 ? '0' + day : day; {
let today = year + '-' + month + '-' + day; label: "正常",
this.msg.StartDate = today; value: "0"
this.getlist(); },
this.getSchool() {
this.getClass() label: "删除",
this.getCourseList() value: "1"
}, }
methods: { ],
//获取校区列表 msg: {
getSchool() { StartDate: '2021-07-20',
getSchoolDropdown({}).then(res => { School_Id: -1,
if (res.Code == 1) { CouseId: 0,
var tempArray = res.Data; ClassId: 0,
if (!tempArray) { OrderGuestId: '',
tempArray = []; GuestName: '',
} CheckStatus: -1,
tempArray.unshift({
SId: -1,
SName: "不限"
})
this.schoolList = tempArray;
}
})
}, },
//获取课程 IsShowDialog: false,
getCourseList() { //课程分类树形列表
queryCourseDropdownList({ TreeCategoryList: [],
IsQPrice: 1 returnString: [], //默认值
}).then(res => { CourseList: [], //关联课程下拉数据
if (res.Code == 1) { AllCourseList: [],
this.CourseList = res.Data; ClassList: [], //班级下拉
var obj = { allClassList: [],
CourseName: '不限', AttendanceList2: [{
CourseId: 0 Name: '全部',
} Id: -1
this.CourseList.unshift(obj); }, {
this.AllCourseList = JSON.parse(JSON.stringify(this.CourseList)); Name: '缺席',
} Id: 1
}) }, {
Name: '请假',
Id: 2
}, ],
AttendanceList: [{
Name: '正常',
Id: 0
}, {
Name: '缺席',
Id: 1
}, {
Name: '请假',
Id: 2
}, ],
option: {
disabledDate: (time) => {
return time.getTime() > Date.now()
}
}, },
//筛选课程 schoolList: [],
filterCourse(val, update) { editMsg: { //修改的对象
update(() => { CheckStatus: 0,
if (val === '') { StudyNum: 0,
this.CourseList = JSON.parse(JSON.stringify(this.AllCourseList))
} else {
const needle = val.toLowerCase();
this.CourseList = this.AllCourseList.filter(v => v.CourseName.toLowerCase().indexOf(needle) > -1);
}
})
}, },
//获取班级下拉 iseditjurisdiction: false,
getClass() { };
},
getClassDropDownList({ mounted() {
CourseId: this.msg.CouseId, let userinfo = this.getLocalStorage();
SchoolId:this.msg.School_Id, userinfo.ActionMenuList.map(x => { //判断权限
IsAddDefault: 0, //添加默认选项 if (x.FunctionCode == "Student_Attendance") { //判断是否有修改状态的权限
}).then(res => { this.iseditjurisdiction = true;
if (res.Code == 1) { }
var jsonData = res.Data; })
jsonData.unshift({ let d = new Date();
ClassId: 0, let year = d.getFullYear();
ClassName: "不限" let month = d.getMonth() + 1;
}) month = month < 10 ? '0' + month : month;
if (jsonData && jsonData.length > 0) { let day = d.getDate();
this.ClassList = JSON.parse(JSON.stringify(jsonData)); day = day < 10 ? '0' + day : day;
this.allClassList = JSON.parse(JSON.stringify(jsonData));; let today = year + '-' + month + '-' + day;
} this.msg.StartDate = today;
this.msg.ClassId = 0 this.getlist();
this.refreshPage() this.getSchool()
this.getClass()
this.getCourseList()
},
methods: {
//获取校区列表
getSchool() {
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
} }
}); tempArray.unshift({
}, SId: -1,
//筛选班级 SName: "不限"
filterClass(val, update) { })
update(() => { this.schoolList = tempArray;
if (val === '') { }
this.ClassList = JSON.parse(JSON.stringify(this.allClassList)) })
} else { },
const needle = val.toLowerCase() //获取课程
this.ClassList = this.allClassList.filter(v => v.ClassName.toLowerCase().indexOf(needle) > -1) getCourseList() {
queryCourseDropdownList({
IsQPrice: 1
}).then(res => {
if (res.Code == 1) {
this.CourseList = res.Data;
var obj = {
CourseName: '不限',
CourseId: 0
} }
}) this.CourseList.unshift(obj);
}, this.AllCourseList = JSON.parse(JSON.stringify(this.CourseList));
}
//重新查询 })
resetSearch() { },
this.getlist(); //筛选课程
}, filterCourse(val, update) {
update(() => {
//获取菜单分页列表 if (val === '') {
getlist() { this.CourseList = JSON.parse(JSON.stringify(this.AllCourseList))
this.loading = true; } else {
getStudentAttendanceDayStatistics(this.msg) const needle = val.toLowerCase();
.then(res => { this.CourseList = this.AllCourseList.filter(v => v.CourseName.toLowerCase().indexOf(needle) > -1);
this.loading = false; }
this.data = res.Data; })
},
//获取班级下拉
getClass() {
getClassDropDownList({
CourseId: this.msg.CouseId,
SchoolId: this.msg.School_Id,
IsAddDefault: 0, //添加默认选项
}).then(res => {
if (res.Code == 1) {
var jsonData = res.Data;
jsonData.unshift({
ClassId: 0,
ClassName: "不限"
}) })
.catch(() => { if (jsonData && jsonData.length > 0) {
this.loading = false; this.ClassList = JSON.parse(JSON.stringify(jsonData));
}); this.allClassList = JSON.parse(JSON.stringify(jsonData));;
},
//刷新页面
refreshPage() {
this.getlist();
},
EditCourse(x,row){
console.log(row)
this.editMsg.CheckStatus = x.CheckStatus;
this.editMsg.StudyNum = x.StudyNum;
this.editMsg.ClassDate = row.ClassDate ;
this.editMsg.ClassRoomId = row.ClassRoomId ;
this.editMsg.ClassTimeId = x.ClassTimeId ;
this.editMsg.OrderGuestId = x.OrderGuestId ;
this.editMsg.School_Id = row.School_Id ;
this.editMsg.TeacherId = row.TeacherId ;
this.editMsg.classId = row.ClassId ;
this.IsShowDialog = true
},
//跳转至我的课程
goMycourse(obj) {
var tempStr = window.location.origin +"/#/course/courseinfo?CourseId=" + obj.CourseId;
openURL(tempStr)
},
saveAttendance(){//修改出勤状态
let signMsg = []
signMsg.push(this.editMsg)
addClassCheck(signMsg).then(res => {
if (res.Code == 1) {
this.getlist();
this.IsShowDialog = false
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
} }
this.msg.ClassId = 0
this.refreshPage()
}
});
},
//筛选班级
filterClass(val, update) {
update(() => {
if (val === '') {
this.ClassList = JSON.parse(JSON.stringify(this.allClassList))
} else {
const needle = val.toLowerCase()
this.ClassList = this.allClassList.filter(v => v.ClassName.toLowerCase().indexOf(needle) > -1)
}
})
},
//重新查询
resetSearch() {
this.getlist();
},
//获取菜单分页列表
getlist() {
this.loading = true;
getStudentAttendanceDayStatistics(this.msg)
.then(res => {
this.loading = false;
this.data = res.Data;
}) })
}, .catch(() => {
getexport(){//导出 this.loading = false;
});
},
var msg = JSON.parse(JSON.stringify(this.msg)); //刷新页面
EduDownLoad("/stu/GetStudentAttendanceDayStatisticsToExcel", msg, '学员出勤管理') refreshPage() {
}, this.getlist();
} },
}; EditCourse(x, row) {
this.editMsg.CheckStatus = x.CheckStatus;
</script> this.editMsg.StudyNum = x.StudyNum;
<style scoped> this.editMsg.ClassDate = row.ClassDate;
.border-bottom { this.editMsg.ClassRoomId = row.ClassRoomId;
border-bottom: 1px dashed #EEE; this.editMsg.ClassTimeId = x.ClassTimeId;
padding-bottom: 5px; this.editMsg.OrderGuestId = x.OrderGuestId;
margin-bottom: 5px; this.editMsg.School_Id = row.School_Id;
this.editMsg.TeacherId = row.TeacherId;
this.editMsg.classId = row.ClassId;
this.IsShowDialog = true
},
//跳转至我的课程
goMycourse(obj) {
var tempStr = window.location.origin + "/#/course/courseinfo?CourseId=" + obj.CourseId;
openURL(tempStr)
},
saveAttendance() { //修改出勤状态
let signMsg = []
signMsg.push(this.editMsg)
addClassCheck(signMsg).then(res => {
if (res.Code == 1) {
this.getlist();
this.IsShowDialog = false
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
}
})
},
getexport() { //导出
var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad("/stu/GetStudentAttendanceDayStatisticsToExcel", msg, '学员出勤管理')
},
} }
};
</style>
<style lang="sass"> </script>
@import url('~assets/css/table.sass') <style scoped>
</style> .border-bottom {
border-bottom: 1px dashed #EEE;
\ No newline at end of file padding-bottom: 5px;
margin-bottom: 5px;
}
</style>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
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