ManageEvaluation.4a7c5f39.js 9.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ManageEvaluation"],{"19a3":function(t,e,a){"use strict";var s=a("55b2"),i=a.n(s);i.a},4822:function(t,e,a){"use strict";var s=a("9d25"),i=a.n(s);i.a},"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)},i=[],n=a("6e6e"),c=a("d678"),o=a("ff51"),r=a("530a"),d={name:"teacherList",components:{MHeader:n["a"],MEmpty:c["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(o["b"])().android||Object(o["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(r["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)}}},l=d,u=(a("4822"),a("2877")),h=Object(u["a"])(l,s,i,!1,null,"8ffc05bc",null);e["default"]=h.exports},"9d25":function(t,e,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:"暂无内容"))])])},i=[],n={name:"mempty",props:{icon:String,msg:String}},c=n,o=(a("19a3"),a("2877")),r=Object(o["a"])(c,s,i,!1,null,"67669af7",null);e["a"]=r.exports}}]);