1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ManageEvaluation"],{"19a3":function(t,e,a){"use strict";var s=a("55b2"),n=a.n(s);n.a},4211:function(t,e,a){"use strict";var s=a("496b"),n=a.n(s);n.a},"496b":function(t,e,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"},[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:"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:"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),a("div",[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",{attrs:{type:"primary",round:"",size:"small"},on:{click:function(a){return t.submitReview(e)}}},[t._v("修改评价")]):t._e()]],2)}),1)],1),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),a("van-popup",{attrs:{position:"bottom"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}})],1)},n=[],i=(a("386d"),a("a481"),a("d678")),c=a("9afb"),o={name:"teacherList",components:{MEmpty:i["a"]},data:function(){return{str:"2020-01-23 12:12:12",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},courseList:[],loading:!1,finished:!1,refreshing:!1,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(){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 t=sessionStorage.getItem("evaluationList");t&&(this.search=JSON.parse(t),this.dateSection.showStartDate=this.timeFormat(new Date(this.search.startTime.replace(/-/g,"/"))),this.dateSection.currentDate=this.timeFormat(new Date(this.search.startTime.replace(/-/g,"/"))),this.dateEndSection.currentDate=this.timeFormat(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},changeStartTime:function(){},confirmStartTime:function(){this.dateSection.showStartDate=this.timeFormat(this.dateSection.currentDate),this.onRefresh(),this.dateSection.status=!1},confirmEndTime:function(){this.dateEndSection.showEndDate=this.timeFormat(this.dateEndSection.currentDate),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}},submitInfo:function(){this.onRefresh(),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.rows=20,Object(c["r"])(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})},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)}}},r=o,d=(a("4211"),a("2877")),u=Object(d["a"])(r,s,n,!1,null,"390b6d49",null);e["default"]=u.exports},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}},c=i,o=(a("19a3"),a("2877")),r=Object(o["a"])(c,s,n,!1,null,"67669af7",null);e["a"]=r.exports}}]);
|