|
|
@@ -4,41 +4,33 @@
|
|
|
<!-- table 表格 -->
|
|
|
<el-row :gutter="20" class="main-items">
|
|
|
<!--数据监控-->
|
|
|
+ <el-col class="aside" :span="1" :offset="1" style="padding: 0 !important;">
|
|
|
+ <div></div>
|
|
|
+ </el-col>
|
|
|
<!--当天-->
|
|
|
- <el-col :span="20" :offset="2" class="main">
|
|
|
+ <el-col :span="20" class="main">
|
|
|
<el-row :gutter="20" class="main-header">
|
|
|
<el-col :span="5">
|
|
|
- <div class="main-header-item">今日报错总次数:<span style="color:red;">{{DayTeacherList.wrongCount}}次</span></div>
|
|
|
+ <div class="main-header-item">报错总次数:<span style="color:red;">{{errorWarningList.allErrorCount}}次</span></div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" class="main-header">
|
|
|
<el-col :span="24">
|
|
|
<div class="table">
|
|
|
<div class="table-head">
|
|
|
- <div>头像</div>
|
|
|
- <div>姓名</div>
|
|
|
- <div>被报错</div>
|
|
|
+ <div>时间</div>
|
|
|
+ <div>学生</div>
|
|
|
<div>科目</div>
|
|
|
- <div>批改总份数</div>
|
|
|
- <div>批改总张数</div>
|
|
|
- <div>平均批改时间</div>
|
|
|
- <div>出勤</div>
|
|
|
+ <div>查看报错详情</div>
|
|
|
</div>
|
|
|
- <div class="tr" v-for="(v, k) of DayTeacherList.list" :key="k">
|
|
|
+ <div class="tr" v-for="(v, k) of errorWarningList.list" :key="k">
|
|
|
<div class="tr-first">
|
|
|
- <div>
|
|
|
- <img :src="BASE_URL + v.imgUrl" alt class="table-img">
|
|
|
- </div>
|
|
|
- <div>{{v.name}}</div>
|
|
|
- <div v-if="v.wrongCount == 0">{{v.wrongCount}}次</div>
|
|
|
- <div style="color:red;" v-if="v.wrongCount > 0">{{v.wrongCount}}次</div>
|
|
|
- <div class="tr-active">{{v.subject}}</div>
|
|
|
- <div>{{v.homeworkCount}}</div>
|
|
|
- <div>{{v.homeworkPicCount}}/张</div>
|
|
|
- <div>{{v.avgTime}}</div>
|
|
|
- <div>{{v.attendance}}</div>
|
|
|
- <!-- <div v-if="v.attendance == 正常">{{v.attendance}}</div>
|
|
|
- <div style="color:#52cc60;" v-if="v.attendance == 未出勤">{{v.attendance}}</div> -->
|
|
|
+ <div>{{v.date}}</div>
|
|
|
+ <div>{{v.studentName}}</div>
|
|
|
+ <div>{{v.subject}}</div>
|
|
|
+ <div class="tr-seconds">
|
|
|
+ <span @click="groupDetail(v)" style="cursor: pointer;" class="tr-second-check">查看详情</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -49,13 +41,9 @@
|
|
|
@current-change="pageChange1"
|
|
|
:page-sizes="[10]"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="parseInt(DayTeacherList.pages)"
|
|
|
+ :total="parseInt(errorWarningList.pages)"
|
|
|
:hide-on-single-page="true"
|
|
|
></el-pagination>
|
|
|
- <!-- <div style="float:right;margin-left:15px;">
|
|
|
- <el-button @click="myVisible = false" size="small">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" @click="submit">确定</el-button>
|
|
|
- </div>-->
|
|
|
<div style="clear:both;"></div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -74,7 +62,11 @@ export default {
|
|
|
return {
|
|
|
// BASE_URL:'https://img.sharingschool.com', //正式环境图片地址
|
|
|
BASE_URL:'https://xtimg.sharingschool.com/',
|
|
|
- // BASE_URL: BASE_URL,
|
|
|
+ accessToken:localStorage.getItem("accessToken"), //token
|
|
|
+ filters1: {
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created(){
|
|
|
@@ -83,33 +75,46 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
- "DayTeacherList",
|
|
|
+ "errorWarningList"
|
|
|
])
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["setUser"]),
|
|
|
// 去批改前分配老师
|
|
|
// 获取校区管理员当天数据
|
|
|
- async InfoWatchDay() {
|
|
|
- this.$store.dispatch("InfoWatchDay", {
|
|
|
- grade: this.filters.OptionsValue,
|
|
|
- subject: this.filters.gradesValue,
|
|
|
- teacherName: this.filters1.inputValue,
|
|
|
- maxCreateTime: this.filters1.MaxtimeValue,
|
|
|
+ async GeterrorWarningLists() {
|
|
|
+ this.$store.dispatch("GeterrorWarning", {
|
|
|
pageNo: this.filters1.pageNo,
|
|
|
pageSize: this.filters1.pageSize,
|
|
|
- managerId:this.managerId || ''
|
|
|
+ accessToken: this.accessToken
|
|
|
});
|
|
|
},
|
|
|
+ handleSizeChange1(val) {
|
|
|
+ this.filters1.pageSize = val;
|
|
|
+ this.GeterrorWarningLists();
|
|
|
+ },
|
|
|
+ pageChange1(val) {
|
|
|
+ this.filters1.pageNo = val;
|
|
|
+ this.GeterrorWarningLists();
|
|
|
+ }, // 分页
|
|
|
+ //报错详情
|
|
|
+ groupDetail(str){
|
|
|
+ this.$router.push({
|
|
|
+ path: "/home/ModalCarouselPicture",
|
|
|
+ // query: {
|
|
|
+ // managerId: str
|
|
|
+ // }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.InfoWatchDay();
|
|
|
+ this.GeterrorWarningLists();
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
-<style>
|
|
|
+<style scoped>
|
|
|
html,
|
|
|
body {
|
|
|
height: 100%;
|
|
|
@@ -120,7 +125,7 @@ ul{
|
|
|
margin: 0 !important
|
|
|
}
|
|
|
.aside {
|
|
|
- background-color: #fff;
|
|
|
+ /* background-color: #fbfbfb; */
|
|
|
margin-top: 16px;
|
|
|
padding: 0;
|
|
|
min-height: 880px;
|