1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ManageEvaluation"],{"581c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrap"},[n("div",{staticClass:"searchSection"},[n("div",{staticClass:"searchDate"},[n("div",{staticClass:"date startDate",on:{click:function(e){t.dateSection.status=!0}}},[t._v("\n 开始\n "),n("span",[t._v(t._s(t.dateSection.showStartDate))])]),t._v("-\n "),n("div",{staticClass:"date endDate",on:{click:function(e){t.dateEndSection.status=!0}}},[t._v("\n 结束\n "),n("span",[t._v(t._s(t.dateEndSection.showEndDate))])])]),n("van-dropdown-menu",{attrs:{"active-color":"#14928A"}},[n("van-dropdown-item",{ref:"item",attrs:{title:"筛选"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},[n("div",{staticClass:"dropItem"},[n("p",{staticClass:"dropTitle"},[t._v("评价进度")]),n("div",{staticClass:"radioGroup"},[n("span",{class:0==t.search.hasReview?"actived":"",on:{click:function(e){t.search.hasReview=0}}},[t._v("待完成")]),n("span",{class:1==t.search.hasReview?"actived":"",on:{click:function(e){t.search.hasReview=1}}},[t._v("已完成")])])]),n("div",{staticClass:"dropItem"},[n("p",{staticClass:"dropTitle"},[t._v("提交作业")]),n("div",{staticClass:"radioGroup"},[n("span",{class:1==t.search.hasHandHomework?"actived":"",on:{click:function(e){t.search.hasHandHomework=1}}},[t._v("是")]),n("span",{class:0==t.search.hasHandHomework?"actived":"",on:{click:function(e){t.search.hasHandHomework=0}}},[t._v("否")])])]),n("div",{staticClass:"dropItem"},[n("p",{staticClass:"dropTitle"},[t._v("完成双向沟通")]),n("div",{staticClass:"radioGroup"},[n("span",{class:1==t.search.hasLiaison?"actived":"",on:{click:function(e){t.search.hasLiaison=1}}},[t._v("是")]),n("span",{class:0==t.search.hasLiaison?"actived":"",on:{click:function(e){t.search.hasLiaison=0}}},[t._v("否")])])]),n("div",{staticClass:"btnGroup"},[n("div",{staticClass:"btn btn-reset",on:{click:t.resetSerach}},[t._v("重置")]),n("div",{staticClass:"btn btn-sure",on:{click:t.submitInfo}},[t._v("确定")])])])],1)],1),n("div",[n("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,a){return n("van-cell",{key:a,staticClass:"cellGroup",attrs:{title:t._f("filterClass")(e.classDate),"title-class":"sectionTitle","value-class":"sectionValue"}},[[n("p",{staticClass:"content van-ellipsis"},[t._v(t._s(e.courseName))]),0==e.reviewId?n("van-button",{attrs:{type:"primary",round:"",size:"small"},on:{click:function(n){return t.submitReview(e)}}},[t._v("提交评价")]):t._e(),e.reviewId>0?n("van-button",{attrs:{type:"primary",round:"",size:"small"},on:{click:function(n){return t.submitReview(e)}}},[t._v("修改评价")]):t._e()]],2)}),1)],1),n("van-popup",{attrs:{position:"bottom"},model:{value:t.dateSection.status,callback:function(e){t.$set(t.dateSection,"status",e)},expression:"dateSection.status"}},[n("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),n("van-popup",{attrs:{position:"bottom"},model:{value:t.dateEndSection.status,callback:function(e){t.$set(t.dateEndSection,"status",e)},expression:"dateEndSection.status"}},[n("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),n("van-popup",{attrs:{position:"bottom"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}})],1)},r=[],i=(n("386d"),n("a481"),n("9afb")),s={name:"teacherList",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(),n=t.getMonth()+1,a=t.getDate();return e+"/"+n+"/"+a},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(i["r"])(this.search).then(function(e){var n=e.data;t.loading=!1,200==n.code?(sessionStorage.setItem("evaluationList",JSON.stringify(t.search)),t.page=n.data.pageNo,t.courseList=t.courseList.concat(n.data.rows),t.page>=n.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)}}},o=s,u=(n("eb08"),n("2877")),c=Object(u["a"])(o,a,r,!1,null,"38e7b9b7",null);e["default"]=c.exports},"89ce":function(t,e,n){},"9afb":function(t,e,n){"use strict";n.d(e,"w",function(){return o}),n.d(e,"B",function(){return u}),n.d(e,"x",function(){return c}),n.d(e,"I",function(){return h}),n.d(e,"i",function(){return d}),n.d(e,"M",function(){return l}),n.d(e,"h",function(){return f}),n.d(e,"k",function(){return p}),n.d(e,"C",function(){return v}),n.d(e,"D",function(){return g}),n.d(e,"E",function(){return S}),n.d(e,"g",function(){return w}),n.d(e,"L",function(){return D}),n.d(e,"A",function(){return y}),n.d(e,"v",function(){return b}),n.d(e,"c",function(){return k}),n.d(e,"o",function(){return C}),n.d(e,"n",function(){return R}),n.d(e,"d",function(){return E}),n.d(e,"f",function(){return _}),n.d(e,"F",function(){return L}),n.d(e,"G",function(){return I}),n.d(e,"y",function(){return T}),n.d(e,"z",function(){return G}),n.d(e,"K",function(){return x}),n.d(e,"l",function(){return m}),n.d(e,"p",function(){return H}),n.d(e,"u",function(){return A}),n.d(e,"a",function(){return F}),n.d(e,"H",function(){return $}),n.d(e,"j",function(){return z}),n.d(e,"t",function(){return j}),n.d(e,"q",function(){return B}),n.d(e,"b",function(){return q}),n.d(e,"r",function(){return V}),n.d(e,"m",function(){return M}),n.d(e,"e",function(){return J}),n.d(e,"J",function(){return N}),n.d(e,"s",function(){return O});var a=n("4328"),r=n.n(a),i=n("981f").default,s="/api-teacher",o=function(t){return i({url:s+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return i({url:s+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return i({url:s+"/snaker/task/queryProcessedList",method:"get",params:t})},d=function(t){return i({url:s+"/subject/findTeacherSubjets",method:"get",params:t})},h=function(t){return i({url:s+"/subject/findSubSubjects",method:"get",params:t})},l=function(t){return i({url:s+"/vipGroupCategory/queryAll",method:"get",params:t})},f=function(t){return i({url:s+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},p=function(t){return i({url:s+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return i({url:s+"/school/findVipSchoolByTeacher2",method:"get",params:t})},v=function(t){return i({url:s+"/school/add",method:"post",data:r.a.stringify(t)})},g=function(t){return i({url:s+"/school/del",method:"post",data:r.a.stringify(t)})},S=function(t){return i({url:s+"/school/update",method:"post",data:r.a.stringify(t)})},w=function(t){return i({url:s+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},D=function(t){return i({url:s+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},y=function(t){return i({url:s+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},b=function(t){return i({url:s+"/leaveCategory/queryPage",method:"post",data:t})},k=function(t){return i({url:s+"/teacherLeaveRecord/askForLeave",method:"post",data:r.a.stringify(t)})},C=function(t){return i({url:s+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},R=function(t){return i({url:s+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},E=function(t){return i({url:s+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:r.a.stringify(t)})},_=function(t){return i({url:s+"/teacherCourseSchedule/courseSwap",method:"post",data:r.a.stringify(t)})},L=function(t){return i({url:s+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},I=function(t){return i({url:s+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},T=function(t){return i({url:s+"/teacher/queryStudentApply",method:"get",params:t})},G=function(t){return i({url:s+"/teacher/querySubByMusicGroupId",method:"get",params:t})},x=function(t){return i({url:s+"/studentRegistration/updateSubject",method:"post",data:r.a.stringify(t)})},H=function(){return i({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},A=function(){return i({url:"/api-web/api/practiceSum",method:"get"})},F=function(t){return i({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},q=function(t){return i({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},$=function(t){return i({url:"/api-teacher/studyReport/info",method:"get",params:t})},j=function(t){return i({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},z=function(t){return i({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},B=function(t){return i({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},V=function(t){return i({url:"/api-teacher/courseReview/getPracticeGroup",method:"get",params:t})},M=function(t){return i({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},J=function(t){return i({url:"/api-teacher/courseReview/add",method:"post",data:r.a.stringify(t)})},N=function(t){return i({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:r.a.stringify(t)})},O=function(t){return i({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})}},eb08:function(t,e,n){"use strict";var a=n("89ce"),r=n.n(a);r.a}}]);
|