ManageEvaluation.5dd1ed80.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ManageEvaluation"],{"19a3":function(t,e,a){"use strict";var s=a("55b2"),n=a.n(s);n.a},3354:function(t,e,a){},5115:function(t,e,a){"use strict";var s=a("3354"),n=a.n(s);n.a},"530a":function(t,e,a){"use strict";a.d(e,"e",function(){return c}),a.d(e,"d",function(){return o}),a.d(e,"b",function(){return d}),a.d(e,"i",function(){return u}),a.d(e,"j",function(){return l}),a.d(e,"c",function(){return h}),a.d(e,"h",function(){return m}),a.d(e,"f",function(){return p}),a.d(e,"k",function(){return f}),a.d(e,"g",function(){return v}),a.d(e,"a",function(){return S});var s=a("4328"),n=a.n(s),i=a("981f").default,r="/api-teacher",c=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},o=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},d=function(t){return i({url:r+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:n.a.stringify(t)})},u=function(t){return i({url:r+"/teacherSalaryComplaints/add",method:"post",data:n.a.stringify(t)})},l=function(t){return i({url:r+"/teacherSalaryComplaints/get",method:"get",params:t})},h=function(t){return i({url:r+"/teacherSalaryComplaints/findByMonth",method:"post",data:n.a.stringify(t)})},m=function(t){return i({url:r+"/teacherSalaryComplaints/repealComplaints",method:"post",data:n.a.stringify(t)})},p=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},f=function(t){return i({url:r+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return i({url:r+"/courseReview/getOnlineCourse",method:"get",params:t})},S=function(t){return i({url:r+"/courseReview/addHomeWork",method:"post",data:n.a.stringify(t)})}},"55b2":function(t,e,a){},"581c":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap"},[t.headerStatus?a("m-header"):t._e(),a("div",{staticClass:"searchSection"},[a("div",{staticClass:"searchDate"},[a("div",{staticClass:"date startDate",on:{click:function(e){t.dateSection.status=!0}}},[t._v("\n 开始\n "),a("span",[t._v(t._s(t.dateSection.showStartDate))])]),t._v("-\n "),a("div",{staticClass:"date endDate",on:{click:function(e){t.dateEndSection.status=!0}}},[t._v("\n 结束\n "),a("span",[t._v(t._s(t.dateEndSection.showEndDate))])])]),a("van-dropdown-menu",{attrs:{"active-color":"#14928A"}},[a("van-dropdown-item",{ref:"item",attrs:{title:"筛选"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},[a("div",{staticClass:"dropList"},[a("div",{staticClass:"dropItem"},[a("p",{staticClass:"dropTitle"},[t._v("课程类型")]),a("div",{staticClass:"radioGroup"},[a("span",{class:"PRACTICE"==t.search.type?"actived":"",on:{click:function(e){t.search.type="PRACTICE"}}},[t._v("网管课")]),a("span",{class:"VIP"==t.search.type?"actived":"",on:{click:function(e){t.search.type="VIP"}}},[t._v("VIP课")]),a("span",{class:0==t.search.type?"actived":"",staticStyle:{"margin-top":".08rem"},on:{click:function(e){t.search.type=0}}},[t._v("全部")])])]),a("div",{staticClass:"dropItem"},[a("p",{staticClass:"dropTitle"},[t._v("评价进度")]),a("div",{staticClass:"radioGroup"},[a("span",{class:0==t.search.hasReview?"actived":"",on:{click:function(e){t.search.hasReview=0}}},[t._v("待完成")]),a("span",{class:1==t.search.hasReview?"actived":"",on:{click:function(e){t.search.hasReview=1}}},[t._v("已完成")])])]),a("div",{staticClass:"dropItem"},[a("p",{staticClass:"dropTitle"},[t._v("提交作业")]),a("div",{staticClass:"radioGroup"},[a("span",{class:1==t.search.hasHandHomework?"actived":"",on:{click:function(e){t.search.hasHandHomework=1}}},[t._v("是")]),a("span",{class:0==t.search.hasHandHomework?"actived":"",on:{click:function(e){t.search.hasHandHomework=0}}},[t._v("否")])])]),a("div",{staticClass:"dropItem"},[a("p",{staticClass:"dropTitle"},[t._v("完成双向沟通")]),a("div",{staticClass:"radioGroup"},[a("span",{class:1==t.search.hasLiaison?"actived":"",on:{click:function(e){t.search.hasLiaison=1}}},[t._v("是")]),a("span",{class:0==t.search.hasLiaison?"actived":"",on:{click:function(e){t.search.hasLiaison=0}}},[t._v("否")])])]),a("div",{staticClass:"dropItem"},[a("p",{staticClass:"dropTitle"},[t._v("学生是否到课")]),a("div",{staticClass:"radioGroup"},[a("span",{class:1==t.search.hasArrived?"actived":"",on:{click:function(e){t.search.hasArrived=1}}},[t._v("是")]),a("span",{class:0==t.search.hasArrived?"actived":"",on:{click:function(e){t.search.hasArrived=0}}},[t._v("否")])])])]),a("div",{staticClass:"btnGroup"},[a("div",{staticClass:"btn btn-reset",on:{click:t.resetSerach}},[t._v("重置")]),a("div",{staticClass:"btn btn-sure",on:{click:t.submitInfo}},[t._v("确定")])])])],1)],1),t.dataShow?a("div",{key:"data"},[a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.courseList,function(e,s){return a("van-cell",{key:s,staticClass:"cellGroup",attrs:{title:t._f("filterClass")(e.classDate),"title-class":"sectionTitle","value-class":"sectionValue"}},[[a("p",{staticClass:"content van-ellipsis"},[t._v(t._s(e.courseName))]),0==e.reviewId?a("van-button",{attrs:{type:"primary",round:"",size:"small"},on:{click:function(a){return t.submitReview(e)}}},[t._v("提交评价")]):t._e(),e.reviewId>0?a("van-button",{staticClass:"van-update",attrs:{type:"primary",round:"",size:"small"},on:{click:function(a){return t.submitReview(e)}}},[t._v("修改评价")]):t._e()]],2)}),1)],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无数据"}}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.dateSection.status,callback:function(e){t.$set(t.dateSection,"status",e)},expression:"dateSection.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.dateSection.minDate,"max-date":t.dateSection.maxDate,formatter:t.formatter},on:{confirm:function(e){return t.confirmStartTime()},cancel:function(e){return t.cancelTime()}},model:{value:t.dateSection.currentDate,callback:function(e){t.$set(t.dateSection,"currentDate",e)},expression:"dateSection.currentDate"}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.dateEndSection.status,callback:function(e){t.$set(t.dateEndSection,"status",e)},expression:"dateEndSection.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.dateSection.minDate,"max-date":t.dateSection.maxDate,formatter:t.formatter},on:{confirm:function(e){return t.confirmEndTime()},cancel:function(e){return t.cancelTime()}},model:{value:t.dateEndSection.currentDate,callback:function(e){t.$set(t.dateEndSection,"currentDate",e)},expression:"dateEndSection.currentDate"}})],1)],1)},n=[],i=a("6e6e"),r=a("d678"),c=a("ff51"),o=a("530a"),d={name:"teacherList",components:{MHeader:i["a"],MEmpty:r["a"]},data:function(){return{headerStatus:!0,dateSection:{status:!1,minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:null,showStartDate:null},dateEndSection:{status:!1,minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:null,showEndDate:null},search:{status:!1,hasReview:null,hasHandHomework:null,hasLiaison:null,hasArrived:null,type:null},courseList:[],loading:!1,finished:!1,dataShow:!0,page:1}},created:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization)))},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),(Object(c["b"])().android||Object(c["b"])().iPhone)&&(this.headerStatus=!1),this.dateSection.currentDate=new Date,this.dateSection.showStartDate=this.timeFormat(this.dateSection.currentDate),this.dateEndSection.currentDate=new Date,this.dateEndSection.showEndDate=this.timeFormat(this.dateEndSection.currentDate);var e=sessionStorage.getItem("evaluationList");e&&(this.search=JSON.parse(e),this.dateSection.showStartDate=this.timeFormat(new Date(this.search.startTime.replace(/-/g,"/"))),this.dateSection.currentDate=new Date(this.search.startTime.replace(/-/g,"/")),this.dateEndSection.currentDate=new Date(this.search.endTime.replace(/-/g,"/")),this.dateEndSection.showEndDate=this.timeFormat(new Date(this.search.endTime.replace(/-/g,"/"))))},methods:{formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"==t?"".concat(e,"日"):e},confirmStartTime:function(){this.dateSection.showStartDate=this.timeFormat(this.dateSection.currentDate),this.dataShow=!0,this.page=1,this.onRefresh(),this.dateSection.status=!1},confirmEndTime:function(){this.dateEndSection.showEndDate=this.timeFormat(this.dateEndSection.currentDate),this.dataShow=!0,this.page=1,this.onRefresh(),this.dateEndSection.status=!1},cancelTime:function(){this.dateEndSection.status=!1,this.dateSection.status=!1},timeFormat:function(t){var e=t.getFullYear(),a=t.getMonth()+1,s=t.getDate();return e+"/"+a+"/"+s},resetSerach:function(){this.search={status:!1,hasReview:null,hasHandHomework:null,hasLiaison:null,hasArrived:null,type:null}},submitInfo:function(){this.onRefresh(),this.dataShow=!0,this.page=1,this.search.status=!1,this.$refs.item.toggle()},getList:function(){var t=this;this.loading=!0,this.search.startTime=this.dateSection.showStartDate.replace(/\//g,"-")+" 00:00:00",this.search.endTime=this.dateEndSection.showEndDate.replace(/\//g,"-")+" 23:59:59",this.search.page=this.page,this.search.type=this.search.type?this.search.type:null,this.search.rows=20,Object(o["g"])(this.search).then(function(e){var a=e.data;t.loading=!1,200==a.code?(sessionStorage.setItem("evaluationList",JSON.stringify(t.search)),t.page=a.data.pageNo,t.courseList=t.courseList.concat(a.data.rows),t.page>=a.data.totalPage&&(t.finished=!0),t.page++):t.finished=!0,t.courseList.length<=0&&(t.dataShow=!1)})},onRefresh:function(){this.finished=!1,this.page=1,this.loading=!1,this.courseList=[],this.getList()},submitReview:function(t){this.$router.push({path:"/courseEvaluation",query:{id:t.id,reviewId:t.reviewId,isInside:!0}})}},filters:{filterClass:function(t){return t.substring(0,10)}}},u=d,l=(a("d5c6"),a("2877")),h=Object(l["a"])(u,s,n,!1,null,"2a4d7de4",null);e["default"]=h.exports},"6e6e":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},r=i,c=(a("5115"),a("2877")),o=Object(c["a"])(r,s,n,!1,null,"61d0e2e4",null);e["a"]=o.exports},9062:function(t,e,a){},d5c6:function(t,e,a){"use strict";var s=a("9062"),n=a.n(s);n.a},d678:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty"},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},n=[],i={name:"mempty",props:{icon:String,msg:String}},r=i,c=(a("19a3"),a("2877")),o=Object(c["a"])(r,s,n,!1,null,"67669af7",null);e["a"]=o.exports}}]);