|
@@ -94,10 +94,10 @@
|
|
|
<img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
|
|
|
</div>
|
|
|
<div>{{v.name}}</div>
|
|
|
- <div>{{v.waitCount}}份</div>
|
|
|
+ <div>{{v.waitCount}}/份</div>
|
|
|
<div class="tr-active">{{v.maxWaitTime}}</div>
|
|
|
- <div>{{v.totalCorrectTime}}</div>
|
|
|
- <div>{{v.respSpeed}}/份</div>
|
|
|
+ <div>{{v.totalCorrectTime}}/时</div>
|
|
|
+ <div>{{v.respSpeed}}</div>
|
|
|
<div>在线</div>
|
|
|
</div>
|
|
|
<!-- 离线 -->
|
|
@@ -112,8 +112,8 @@
|
|
|
<div>{{v.name}}</div>
|
|
|
<div>{{v.waitCount}}份</div>
|
|
|
<div>{{v.maxWaitTime}}</div>
|
|
|
- <div>{{v.totalCorrectTime}}</div>
|
|
|
- <div>{{v.respSpeed}}/份</div>
|
|
|
+ <div>{{v.totalCorrectTime}}/时</div>
|
|
|
+ <div>{{v.respSpeed}}</div>
|
|
|
<div>离线</div>
|
|
|
</div>
|
|
|
<!-- 封号 -->
|
|
@@ -128,8 +128,8 @@
|
|
|
<div>{{v.name}}</div>
|
|
|
<div>{{v.waitCount}}份</div>
|
|
|
<div>{{v.maxWaitTime}}</div>
|
|
|
- <div>{{v.totalCorrectTime}}</div>
|
|
|
- <div>{{v.respSpeed}}/份</div>
|
|
|
+ <div>{{v.totalCorrectTime}}/时</div>
|
|
|
+ <div>{{v.respSpeed}}</div>
|
|
|
<div>已封号</div>
|
|
|
</div>
|
|
|
<div class="tr-setNo" v-if="isDownindex === k && isDown && TeacherHomeworkList.list.length == 0">
|
|
@@ -153,12 +153,11 @@
|
|
|
<el-button @click="isShow(v,1)" type="success">去分配</el-button>
|
|
|
</div>
|
|
|
<div class="tr-sw180" v-if="v.status === 3 && v.isCheck ===1">
|
|
|
- <el-button type="info" plain>已检查</el-button>
|
|
|
+ <el-button type="info" plain><a style="text-decoration:none;color:#52cc60;" :href="'http://120.77.207.0:8081/kmt/index.html?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2">已检查</a></el-button>
|
|
|
<span style="color:red;font-size:12px;">报错{{v.wrongCount}}</span>
|
|
|
</div>
|
|
|
<div class="tr-sw180" v-if="v.status === 3 && v.isCheck ===0">
|
|
|
- <el-button type="" plain @click="ToAppovalOline(v)">去批改</el-button>
|
|
|
- <!-- <el-button type="warning" plain><a style="text-decoration:none;color:#52cc60;" :href="'http://120.77.207.0:8081/kmt/index.html?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2">去检查</a></el-button> -->
|
|
|
+ <el-button type="warning" plain><a style="text-decoration:none;color:#52cc60;" :href="'http://120.77.207.0:8081/kmt/index.html?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2">去检查</a></el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 分页显示 -->
|
|
@@ -175,7 +174,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 分页显示 -->
|
|
|
- <div v-if="parseInt(monitorTeacherList.pages) > 10">
|
|
|
<el-pagination
|
|
|
background
|
|
|
@size-change="handleSizeChange"
|
|
@@ -184,7 +182,6 @@
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
:total= parseInt(monitorTeacherList.pages)
|
|
|
></el-pagination>
|
|
|
- </div>
|
|
|
<div style="clear:both;"></div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -193,7 +190,7 @@
|
|
|
<el-col :span="18" class="main" v-if="modelindex == 1">
|
|
|
<el-row :gutter="20" class="main-header">
|
|
|
<el-col :span="5">
|
|
|
- <div class="main-header-item" @click="isShow(1)">今日报错总次数:{{DayTeacherList.wrongCount}}人</div>
|
|
|
+ <div class="main-header-item">今日报错总次数:{{DayTeacherList.wrongCount}}人</div>
|
|
|
</el-col>
|
|
|
<el-col :span="10" :offset="4">
|
|
|
<el-input placeholder="请输入老师名字" v-model="filters1.inputValue" class="input-with-select">
|
|
@@ -233,7 +230,7 @@
|
|
|
<el-date-picker
|
|
|
@change="InfoWatchDay"
|
|
|
v-model="filters1.MaxtimeValue"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
type="date"
|
|
|
placeholder="选择日期"
|
|
|
></el-date-picker>
|
|
@@ -291,7 +288,7 @@
|
|
|
<el-col :span="18" class="main" v-if="modelindex == 2">
|
|
|
<el-row :gutter="20" class="main-header">
|
|
|
<el-col :span="5">
|
|
|
- <div class="main-header-item" @click="isShow(1)">当月报错总次数:{{MothTeacherList.wrongCount}}人</div>
|
|
|
+ <div class="main-header-item">当月报错总次数:{{MothTeacherList.wrongCount}}人</div>
|
|
|
</el-col>
|
|
|
<el-col :span="10" :offset="4">
|
|
|
<el-input placeholder="请输入老师名字" v-model="filters2.inputValue" class="input-with-select">
|
|
@@ -331,31 +328,31 @@
|
|
|
<el-date-picker
|
|
|
@change="InfoWatchMoth"
|
|
|
v-model="filters2.MaxtimeValue"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- type="date"
|
|
|
- placeholder="选择日期"
|
|
|
+ type="month"
|
|
|
+ value-format="yyyy-MM"
|
|
|
+ placeholder="选择月"
|
|
|
></el-date-picker>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" class="main-header">
|
|
|
<el-col :span="3" :offset="1">
|
|
|
- <div class="main-header-item" @click="isShow(1)">月出勤率:{{MothTeacherList.attendanceRate}}</div>
|
|
|
+ <div class="main-header-item">月出勤率:{{MothTeacherList.attendanceRate}}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <div class="main-header-item" @click="isShow(1)">批改总份数:{{MothTeacherList.homeworkCount}}</div>
|
|
|
+ <div class="main-header-item">批改总份数:{{MothTeacherList.homeworkCount}}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <div class="main-header-item" @click="isShow(1)">批改总张数:{{MothTeacherList.homeworkPicCount}}</div>
|
|
|
+ <div class="main-header-item">批改总张数:{{MothTeacherList.homeworkPicCount}}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <div class="main-header-item" @click="isShow(1)">批改平均时间:{{MothTeacherList.avgTime}}</div>
|
|
|
+ <div class="main-header-item">批改平均时间:{{MothTeacherList.avgTime}}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <div class="main-header-item" @click="isShow(1)">平均满意度:{{MothTeacherList.satisfactionDegree}}</div>
|
|
|
+ <div class="main-header-item">平均满意度:{{MothTeacherList.satisfactionDegree}}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <div class="main-header-item" @click="isShow(1)">正确率:{{MothTeacherList.accuracyRate}}</div>
|
|
|
+ <div class="main-header-item">正确率:{{MothTeacherList.accuracyRate}}</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" class="main-header">
|
|
@@ -414,16 +411,21 @@
|
|
|
|
|
|
<!--可分配老师-->
|
|
|
<div class="showModel" @click="allShowModel(1)" v-if="hiddenModel"></div>
|
|
|
- <div class="model" style="width:40%" v-if="hiddenModel">
|
|
|
- <div class="model-text">
|
|
|
+ <div class="model" style="width:30%; height:40%;top:5%" v-if="hiddenModel">
|
|
|
+ <div class="model-text" >
|
|
|
<div class="model-text-head">
|
|
|
<div>可分配老师</div>
|
|
|
<div>{{allotList.Allotgarde}}{{allotList.Allotsubjct}}</div>
|
|
|
</div>
|
|
|
- <div class="tr-setNo" v-if="TeacherAllotList.list.length == 0">
|
|
|
+ <!-- <div class="tr-setNo" v-if="TeacherAllotList.list.length == 0">
|
|
|
暂无数据!
|
|
|
+<<<<<<< HEAD
|
|
|
+ </div> -->
|
|
|
+ <div class="model-itemss" style="margin:10px;" v-for="(v, k) in TeacherAllotList.list" :key="k">
|
|
|
+=======
|
|
|
</div>
|
|
|
<div class="allocation-items" v-for="(v, k) in TeacherAllotList.list" :key="k" >
|
|
|
+>>>>>>> 6a3419620148f4e66aa22d4c8ad3e9a27fb03927
|
|
|
<div class="model-items-left">
|
|
|
<div class="model-items-left-top">
|
|
|
<div>
|
|
@@ -477,9 +479,9 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<!-- UnallotHomeworkInfo -->
|
|
|
- <div class="tr-setNo" v-if="UnallotHomeworkInfo.list.length == 0">
|
|
|
+ <!-- <div class="tr-setNo" v-if="UnallotHomeworkInfo.list.length == 0">
|
|
|
暂无数据!
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="tr-set" v-for="(v, k) of UnallotHomeworkInfo.list" :key="k">
|
|
|
<div class="tr-secon">{{k+1}}</div>
|
|
|
<div class="tr-secon" style="width:50px;">
|
|
@@ -491,9 +493,9 @@
|
|
|
<div v-if="v.status === 1" class="tr-secon">未批改</div>
|
|
|
<div v-if="v.status === 2" class="tr-secon">批改中</div>
|
|
|
<div v-if="v.status === 3" class="tr-secon">已批改</div>
|
|
|
- <div class="tr-s">
|
|
|
+ <div class="">
|
|
|
<el-button type="success" plain><a style="text-decoration:none;color:#52cc60;" :href="'http://120.77.207.0:8081/kmt/index.html?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+1">去批改</a></el-button>
|
|
|
- <el-button type="success">去分配</el-button>
|
|
|
+ <el-button type="success" @click="isShow(v,5)">去分配</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="parseInt(UnallotHomeworkInfo.pages) > 10">
|
|
@@ -511,6 +513,58 @@
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!--所有未批改可分配老师列表弹框-->
|
|
|
+ <div class="showModel" @click="allShowModel(5)" v-if="NoAllotManagerModel"></div>
|
|
|
+ <div class="model" style="width:40%" v-if="NoAllotManagerModel">
|
|
|
+ <div class="model-text" style="padding: 0 10px">
|
|
|
+ <div class="model-manager">
|
|
|
+ <div>作业可分配老师</div>
|
|
|
+ <div>
|
|
|
+ <img src="../../assets/img/del@2x.png" alt @click="allShowModel(5)">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="allocation-items" v-for="(v, k) in TeacherAllotList.list" :key="k" >
|
|
|
+ <div class="model-items-left">
|
|
|
+ <div class="model-items-left-top">
|
|
|
+ <div>
|
|
|
+ <img
|
|
|
+ :src="BASE_URL + v.imgUrl"
|
|
|
+ v-if="v.imgUrl"
|
|
|
+ alt
|
|
|
+ class="model-items-left-top-img"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="../../assets/img/user.jpg"
|
|
|
+ v-if="!v.imgUrl"
|
|
|
+ alt
|
|
|
+ class="model-items-left-top-img"
|
|
|
+ >
|
|
|
+ <div style="display: inline-block;text-align: left;">
|
|
|
+ <div style="font-size: 24px;margin-left: 10px">{{v.name}}</div>
|
|
|
+ <div class="model-items-left-top-number">老师数量:{{v.teacherCount}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
|
|
|
+ <el-button
|
|
|
+ v-show="!v.type || v.type !== 1"
|
|
|
+ @click="GOtoTeacherAllotAppovar(v,k)"
|
|
|
+ type="success"
|
|
|
+ >分配</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChange6"
|
|
|
+ @current-change="pageChange6"
|
|
|
+ :page-sizes="[10]"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="parseInt(TeacherAllotList.pages)"
|
|
|
+ ></el-pagination>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 老师详情弹框 -->
|
|
|
<div class="showModel" @click="allShowModel(3)" v-if="ModelAppor"></div>
|
|
|
<div class="model" style="width:35%;left: 32.5%" v-if="ModelAppor">
|
|
@@ -595,6 +649,7 @@ export default {
|
|
|
modelindex: 0,
|
|
|
values: [],
|
|
|
arrGrade:[],
|
|
|
+ NoAllotManagerModel:false, //未批改作业可分配老师弹框
|
|
|
hiddenModel: false, //分配老师弹框
|
|
|
isPigai: false,//未批改作业弹框
|
|
|
ModelAppor:false,//批改老师详情信息弹框
|
|
@@ -717,6 +772,13 @@ export default {
|
|
|
pageSize: 10,
|
|
|
homeworkId: ""
|
|
|
},
|
|
|
+ allNoapprovalList:{
|
|
|
+ Allotgarde: "",
|
|
|
+ Allotsubjct: "",
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ homeworkId: ""
|
|
|
+ },
|
|
|
AllotButton: ""
|
|
|
};
|
|
|
},
|
|
@@ -755,7 +817,7 @@ export default {
|
|
|
let ApporhomeworkId = v.homeworkId
|
|
|
this.ApporhomeworkId = ApporhomeworkId
|
|
|
this.$store.dispatch("BeforetoTeacherAllot", {
|
|
|
- teacherId: localStorage.getItem("unionid"),
|
|
|
+ teacherId: localStorage.getItem("userId"),
|
|
|
homeworkId: v.homeworkId
|
|
|
});
|
|
|
},
|
|
@@ -862,6 +924,18 @@ export default {
|
|
|
pageSize: this.homeworkLIst.pageSize
|
|
|
});
|
|
|
},
|
|
|
+ // 未批改作业分配老师
|
|
|
+ async GOtoTeacherAllotAppovar(v, k) {
|
|
|
+ this.$store.dispatch("toTeacherAllot", {
|
|
|
+ teacherId: v.teacherId,
|
|
|
+ homeworkId: this.allNoapprovalList.homeworkId
|
|
|
+ });
|
|
|
+ v.type = 1;
|
|
|
+ this.$set(this.TeacherAllotList.list, k, v);
|
|
|
+ this.NoAllotManagerModel = false
|
|
|
+ this.UnallotHomework()
|
|
|
+ this.isPigai = true;
|
|
|
+ },
|
|
|
// 分配老师
|
|
|
async GOtoTeacherAllot(v, k) {
|
|
|
this.$store.dispatch("toTeacherAllot", {
|
|
@@ -931,6 +1005,35 @@ export default {
|
|
|
_this.ModelStudet = true;
|
|
|
this.GetStudentInfo(v)
|
|
|
}
|
|
|
+ else if (str == 5) {
|
|
|
+ this.allNoapprovalList.Allotgarde = v.grade;
|
|
|
+ this.allNoapprovalList.Allotsubjct = v.subject;
|
|
|
+ this.allNoapprovalList.homeworkId = v.homeworkId;
|
|
|
+ _this.NoAllotManagerModel = true;
|
|
|
+ _this.isPigai = false;
|
|
|
+ this.NoapporvalTeacherAllot(v);
|
|
|
+ // this.GetAllotManagerInfo()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 未批改作业可分配老师列表
|
|
|
+ async NoapporvalTeacherAllot(v) {
|
|
|
+ this.$store.dispatch("TeacherAllotList", {
|
|
|
+ grade: v.grade || this.allNoapprovalList.Allotgarde,
|
|
|
+ subject: v.subject || this.allNoapprovalList.Allotsubjct,
|
|
|
+ maxCreateTime: this.filters.MaxtimeValue,
|
|
|
+ pageNo: this.allNoapprovalList.pageNo,
|
|
|
+ pageSize: this.allNoapprovalList.pageSize
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 未批改作业可分配老师分页列表
|
|
|
+ async NoapporvalTeacherAllotfy() {
|
|
|
+ this.$store.dispatch("TeacherAllotList", {
|
|
|
+ grade: this.allNoapprovalList.Allotgarde,
|
|
|
+ subject: this.allNoapprovalList.Allotsubjct,
|
|
|
+ maxCreateTime: this.filters.MaxtimeValue,
|
|
|
+ pageNo: this.allNoapprovalList.pageNo,
|
|
|
+ pageSize: this.allNoapprovalList.pageSize
|
|
|
+ });
|
|
|
},
|
|
|
// 去分配
|
|
|
allocation(){
|
|
@@ -965,6 +1068,9 @@ export default {
|
|
|
else if (str == 4) {
|
|
|
_this.ModelStudet = false;
|
|
|
}
|
|
|
+ else if (str == 5) {
|
|
|
+ _this.NoAllotManagerModel = false;
|
|
|
+ }
|
|
|
},
|
|
|
// 数组去重
|
|
|
uniq(array){
|
|
@@ -1032,6 +1138,10 @@ export default {
|
|
|
this.allotList.pageSize = val;
|
|
|
this.TeacherAllotfy();
|
|
|
},
|
|
|
+ handleSizeChange6(val) {
|
|
|
+ this.allNoapprovalList.pageSize = val;
|
|
|
+ this.NoapporvalTeacherAllotfy();
|
|
|
+ },
|
|
|
// 分页
|
|
|
pageChange(val) {
|
|
|
this.filters.pageNo = val;
|
|
@@ -1053,6 +1163,10 @@ export default {
|
|
|
this.allotList.pageNo = val;
|
|
|
this.TeacherAllotfy();
|
|
|
},
|
|
|
+ pageChange6(val) {
|
|
|
+ this.allNoapprovalList.pageNo = val;
|
|
|
+ this.NoapporvalTeacherAllotfy();
|
|
|
+ },
|
|
|
// 排序
|
|
|
sortChange(sort) {
|
|
|
this.filters.orderField = sort.prop;
|
|
@@ -1342,6 +1456,12 @@ width: 60px;
|
|
|
display: inline-block;
|
|
|
width: 100%;
|
|
|
}
|
|
|
+.model-itemss{
|
|
|
+ padding: 10px 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
.model-items-left-top-img {
|
|
|
width: 68px;
|
|
|
height: 68px;
|