Commit af4a4fa6 authored by 青山's avatar 青山

今日需召回人数及全勤人数

parent 5118289e
......@@ -93,6 +93,14 @@
<span v-if="item.is_start_course === 1">{{item.work_rate}}</span>
</div>
</div>
<div class="over_work">
<div class="header bg-h">全勤人数</div>
<el-button size="mini" type="text" @click="showOverWorkDetail(scope.row)">{{data.need_recall_user_num}}</el-button>
</div>>
<div class="recall">
<div class="header bg-h">今日需召回人数</div>
<el-button size="mini" type="text" @click="showRecallDetail(scope.row)">{{data.need_recall_user_num}}</el-button>
</div>
</div>
</div>
......@@ -302,7 +310,7 @@
</div>
</template>
<script>
import {task1Api,getWatchUserApi,task2Api,task3Api,addPeriodsClassUserDescApi,getUserDescListApi,changeAddTeacherApi,editUserWeightApi,editUserViewCourseApi} from "../../service/api";
import {task1Api,getWatchUserApi,task2Api,task3Api,getOverWatchListApi,getRecallListApi,addPeriodsClassUserDescApi,getUserDescListApi,changeAddTeacherApi,editUserWeightApi,editUserViewCourseApi} from "../../service/api";
export default {
name: "task",
props:[
......@@ -324,6 +332,16 @@
list:[],
weight:''
},
recallDetail:{
show:false,
list:[],
weight:''
},
overWorkDetail:{
show:false,
list:[],
weight:''
},
descDialog:{
show:false,
id:'',
......@@ -360,7 +378,30 @@
this.task3Detail.loading = false;
this.task3Detail.list = res
})
getRecallListApi(data.periods_id,this.id,json).then(res=>{
this.task3Detail.loading = false;
this.task3Detail.list = res
})
getOverWatchListApi(data.periods_id,this.id,json).then(res=>{
this.task3Detail.loading = false;
this.task3Detail.list = res
})
},
showOverWorkDetail(data){
this.overWorkDetail={
show:true,
list:data.detail,
weight:data.weight
}
},
showRecallDetail(data)
{
this.recallDetail={
show:true,
list:data.detail,
weight:data.weight
}
},
editComment(id) {
this.$prompt('', '添加备注', {
confirmButtonText: '确定',
......@@ -393,6 +434,16 @@
this.task3Detail.show = true;
this.task3Detail.list = res
})
getOverWatchListApi(this.task3Detail.periods_id,this.id,json).then(res=>{
this.task3Detail.loading = false;
this.task3Detail.show = true;
this.task3Detail.list = res
})
getRecallListApi(this.task3Detail.periods_id,this.id,json).then(res=>{
this.task3Detail.loading = false;
this.task3Detail.show = true;
this.task3Detail.list = res
})
},
showTask2Detail(data){
this.task2Detail={
......
......@@ -905,6 +905,18 @@ export const task3Api = function (id) {
return Vue.prototype.$fetch(task3Url + id)
};
// 取出当前老师当前期数全勤的用户
const getOverWatchListUrl = `/api/admin/class/user/over/watch/list/`;
export const getOverWatchListApi = function (periods_id, teacher_id, json) {
return Vue.prototype.$fetch(`${getOverWatchListUrl}${periods_id}/${teacher_id}`,json)
};
// 需要召回的用户(今日没看且去除前两天都没看的用户)
const getRecallUrl = `/api/admin/class/user/recall/list/`;
export const getRecallListApi = function (periods_id, teacher_id, json) {
return Vue.prototype.$fetch(`${getRecallUrl}${periods_id}/${teacher_id}`,json)
};
//通过用户是否看课取出用户
const getWatchUserUrl = `/api/admin/class/user/watch/list/`;
export const getWatchUserApi = function (periods_id, teacher_id, json) {
......
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