1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-001e19b8"],{"442d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.evaluateList?a("el-tab-pane",{attrs:{label:"月报",name:"1"}},[1==e.activeIndex?a("evaluateList"):e._e()],1):e._e(),e._v(" "),e.permissionList.networkList?a("el-tab-pane",{attrs:{label:"网管课评价",name:"2"}},[2==e.activeIndex?a("networkList"):e._e()],1):e._e(),e._v(" "),e.permissionList.vipEvaluateList?a("el-tab-pane",{attrs:{label:"vip课评价",name:"3"}},[3==e.activeIndex?a("vipEvaluateList"):e._e()],1):e._e()],1)],1)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("评论管理\n ")])}],l=(a("7f7f"),a("8cb9")),o=a("74db"),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"commentManager-vipEvaluateList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"请输入课程组名称 ID"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择分部",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("remote-search",{attrs:{commit:"setTeachers","aria-placeholder":"请选择指导老师",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"乐团主管"},model:{value:e.searchForm.eduTeacherId,callback:function(t){e.$set(e.searchForm,"eduTeacherId","string"===typeof t?t.trim():t)},expression:"searchForm.eduTeacherId"}},e._l(e.selects.roles.EDUCATION,(function(t,s){return a("el-option",{key:s,attrs:{value:t.userId,label:t.userName}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.userId))])])})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"老师评价",clearable:""},model:{value:e.searchForm.hasReview,callback:function(t){e.$set(e.searchForm,"hasReview",t)},expression:"searchForm.hasReview"}},[a("el-option",{attrs:{label:"评价",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"未评价",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"布置训练",clearable:""},model:{value:e.searchForm.assignHomework,callback:function(t){e.$set(e.searchForm,"assignHomework",t)},expression:"searchForm.assignHomework"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{clearable:!1,type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.searchForm.month,callback:function(t){e.$set(e.searchForm,"month",t)},expression:"searchForm.month"}},[e._v("\n >")])],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),e.tableData.length>0?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/courseReviews",expression:"'export/courseReviews'"}],attrs:{type:"primary"},on:{click:e.netWorkExport}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.organName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.id)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseName",label:"课程名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.courseName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseName",label:"上课日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.classDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.teacherName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"eduTeacherName",label:"乐团主管"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.eduTeacherName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.reviewId>0?"评价":"未评价"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"布置训练"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.assignHomework?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.reviewId?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"commentManager-vipEvaluateList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"vip评价详情",visible:e.netWorkVisible,width:"800px"},on:{"update:visible":function(t){e.netWorkVisible=t}}},[a("div",{staticClass:"wrap"},[a("div",{staticClass:"commitLeft"},[e.teacherClassHeadInfo?a("div",{staticClass:"leftCell"},[a("p",[e._v("课程班名称")]),e._v(" "),a("p",[e._v(e._s(e.teacherClassHeadInfo.classGroupName))])]):e._e(),e._v(" "),e.teacherClassHeadInfo?a("div",{staticClass:"leftCell"},[a("p",[e._v("上课时间")]),e._v(" "),a("p",[e._v("\n "+e._s(e.teacherClassHeadInfo.classDate+" "+e.teacherClassHeadInfo.startClassTime+"-"+e.teacherClassHeadInfo.endClassTime)+"\n ")])]):e._e(),e._v(" "),e.teacherClassHeadInfo?a("div",{staticClass:"leftCell"},[a("p",[e._v("乐器")]),e._v(" "),a("p",[e._v(e._s(e.teacherClassHeadInfo.subjectNames))])]):e._e(),e._v(" "),e.teacherClassHeadInfo?a("div",{staticClass:"leftCell"},[a("p",[e._v("指导老师")]),e._v(" "),a("p",[e._v(e._s(e.teacherClassHeadInfo.bishopTeacher))])]):e._e(),e._v(" "),e.teacherClassHeadInfo?a("div",{staticClass:"leftCell"},[a("p",[e._v("学员")]),e._v(" "),a("p",[e._v(e._s(e.teacherClassHeadInfo.studentNames))])]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"leftCell"},[a("p",[e._v("回访日期")]),e._v(" "),a("p",[e._v(e._s(e.courseScheduleReview.createTime.substring(0,10)))])]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"leftCell"},[a("p",[e._v("是否提交训练")]),e._v(" "),a("p",[e._v(e._s(e.courseScheduleReview.handHomework?"是":"否"))])]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"leftCell"},[a("p",[e._v("乐团主管")]),e._v(" "),a("p",[e._v(e._s(e.courseScheduleReview.eduTeacherName))])]):e._e(),e._v(" "),a("div",{staticClass:"leftCell"},[a("p",[e._v("课程评价")]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("el-tag",{attrs:{type:"好"==e.mychiose?"danger":"info"},on:{click:function(t){e.courseScheduleReview.courseReview="好"}}},[e._v("好")]),e._v(" "),a("el-tag",{attrs:{type:"中"==e.mychiose?"danger":"info"},on:{click:function(t){e.courseScheduleReview.courseReview="中"}}},[e._v("中")]),e._v(" "),a("el-tag",{attrs:{type:"差"==e.mychiose?"danger":"info"},on:{click:function(t){e.courseScheduleReview.courseReview="差"}}},[e._v("差")])],1)])]),e._v(" "),a("div",{staticClass:"commitRight"},[e.courseScheduleComplaints?a("div",e._l(e.courseScheduleComplaints,(function(t,s){return a("div",{key:s},[a("div",{staticClass:"rightCell"},[a("p",[e._v(e._s(t.username))]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("el-rate",{attrs:{disabled:"","text-color":"#ff9900"},model:{value:t.score,callback:function(a){e.$set(t,"score",a)},expression:"item.score"}})],1)]),e._v(" "),a("el-input",{attrs:{type:"textarea",disabled:""},model:{value:t.reason,callback:function(a){e.$set(t,"reason",a)},expression:"item.reason"}})],1)})),0):e._e(),e._v(" "),e.courseScheduleReview?a("div",[e.courseScheduleReview?a("div",{staticClass:"rightCell"},[a("p",[e._v("教材内容")])]):e._e(),e._v(" "),a("el-input",{attrs:{type:"textarea",disabled:""},model:{value:e.teachingMaterial,callback:function(t){e.teachingMaterial=t},expression:"teachingMaterial"}}),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"leftCell"},[a("p",[e._v("曲目")]),e._v(" "),a("p",[e._v(e._s(e.courseScheduleReview.song))])]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"rightCell"},[a("p",[e._v("发音")]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("el-rate",{attrs:{disabled:"","text-color":"#ff9900"},model:{value:e.courseScheduleReview.pronunciation,callback:function(t){e.$set(e.courseScheduleReview,"pronunciation",t)},expression:"courseScheduleReview.pronunciation"}})],1)]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"rightCell"},[a("p",[e._v("节奏")]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("el-rate",{attrs:{disabled:"","text-color":"#ff9900"},model:{value:e.courseScheduleReview.tempo,callback:function(t){e.$set(e.courseScheduleReview,"tempo",t)},expression:"courseScheduleReview.tempo"}})],1)]):e._e(),e._v(" "),e.courseScheduleReview?a("div",{staticClass:"rightCell"},[a("p",[e._v("乐理")]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("el-rate",{attrs:{disabled:"","text-color":"#ff9900"},model:{value:e.courseScheduleReview.musicTheory,callback:function(t){e.$set(e.courseScheduleReview,"musicTheory",t)},expression:"courseScheduleReview.musicTheory"}})],1)]):e._e(),e._v(" "),a("div",{staticClass:"rightCell"},[a("p",[e._v("评价备注")])]),e._v(" "),e.courseScheduleReview?a("el-input",{attrs:{type:"textarea",disabled:""},model:{value:e.courseScheduleReview.memo,callback:function(t){e.$set(e.courseScheduleReview,"memo",t)},expression:"courseScheduleReview.memo"}}):e._e()],1):e._e()])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.netWorkVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNetwork}},[e._v("确定")])],1)])],1)},n=[],c=(a("386d"),a("c80c")),u=(a("96cf"),a("3b8d")),h=a("5f87"),d=a("4328"),v=a.n(d),m=a("bc3a"),p=a.n(m),f=a("333d"),_=a("92e3"),b=a("1cc7"),g={components:{pagination:f["a"]},data:function(){return{netWorkVisible:!1,searchForm:{organId:null,teacherId:null,eduTeacherId:null,isFree:null,studentReview:null,hasHandHomework:null,hasReview:null,courseReview:null,hasArrived:null,homeWorkReplied:null,assignHomework:null,month:[],practiceGroupType:null},practiceGroupType:_["P"],organList:[],teacherList:[],educationList:[],tableData:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},value:null,teacherClassHeadInfo:null,courseScheduleReview:null,courseScheduleComplaints:null,activeId:null}},created:function(){},mounted:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$store.dispatch("setBranchs"),e.next=3,this.$store.dispatch("setOrganRole");case 3:this.init();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),activated:function(){this.init()},methods:{init:function(){if(this.searchForm.month.length<=0){var e=new Date,t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10);this.searchForm.month=[],this.searchForm.month.push(t),this.searchForm.month.push(a),console.log(this.searchForm.month)}this.getList()},getList:function(){var e=this,t={};t.organId=this.searchForm.organId||null,t.teacherId=this.searchForm.teacherId||null,t.eduTeacherId=this.searchForm.eduTeacherId||null,t.isFree=this.searchForm.isFree||null,t.studentReview=this.searchForm.studentReview||null,t.hasHandHomework=this.searchForm.hasHandHomework||null,t.hasReview=this.searchForm.hasReview||null,t.courseReview=this.searchForm.courseReview||null,t.hasArrived=this.searchForm.hasArrived||null,t.homeWorkReplied=this.searchForm.homeWorkReplied||null,t.assignHomework=this.searchForm.assignHomework||null,t.search=this.searchForm.search,t.practiceGroupType=this.searchForm.practiceGroupType||null,this.searchForm.month&&this.searchForm.month.length>0?(t.startTime=this.searchForm.month[0],t.endTime=this.searchForm.month[1],t.page=this.rules.page,t.rows=this.rules.limit,Object(b["Yb"])(t).then((function(t){200==t.code&&(e.tableData=t.data.rows,e.rules.total=t.data.total)}))):this.$message.error("请选择时间范围")},lookDetail:function(e){var t=this;this.activeId=e.reviewId,Object(b["Cb"])({id:this.activeId}).then((function(e){200==e.code&&(t.teacherClassHeadInfo=e.data.teacherClassHeadInfo,t.courseScheduleReview=e.data.courseScheduleReview,t.courseScheduleComplaints=e.data.courseScheduleComplaints,t.netWorkVisible=!0)}))},submitNetwork:function(){var e=this;this.courseScheduleReview.courseReview?Object(b["Vc"])({id:this.activeId,courseReview:this.courseScheduleReview.courseReview}).then((function(t){200==t.code&&(e.$message.success("评价成功"),e.netWorkVisible=!1,e.getList())})):this.$message.error("请评价课程")},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.rules.page=1,this.searchForm={organId:null,teacherId:null,educationalTeacherId:null,isFree:null,studentReview:null,hasHandHomework:null,hasReview:null,courseReview:null,month:null,hasArrived:null,homeWorkReplied:null,assignHomework:null,practiceGroupType:null};var e=new Date,t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10);this.searchForm.month=[],this.searchForm.month.push(t),this.searchForm.month.push(a),this.getList()},netWorkExport:function(){var e="/api-web/export/courseReviews",t={};if(this.searchForm.organId&&(t.organId=this.searchForm.organId),this.searchForm.teacherId&&(t.teacherId=this.searchForm.teacherId),this.searchForm.eduTeacherId&&(t.eduTeacherId=this.searchForm.eduTeacherId),this.searchForm.isFree&&(t.isFree=this.searchForm.isFree),this.searchForm.studentReview&&(t.studentReview=this.searchForm.studentReview),this.searchForm.hasHandHomework&&(t.hasHandHomework=this.searchForm.hasHandHomework),this.searchForm.hasReview&&(t.hasReview=this.searchForm.hasReview),this.searchForm.courseReview&&(t.courseReview=this.searchForm.courseReview),this.searchForm.search&&(t.search=this.searchForm.search),this.searchForm.hasArrived&&(t.hasArrived=this.searchForm.hasArrived),this.searchForm.homeWorkReplied&&(t.homeWorkReplied=this.searchForm.homeWorkReplied),this.searchForm.assignHomework&&(t.assignHomework=this.searchForm.assignHomework),this.searchForm.month&&this.searchForm.month.length>0){t.startTime=this.searchForm.month[0],t.endTime=this.searchForm.month[1],this.searchForm.practiceGroupType&&(t.practiceGroupType=this.searchForm.practiceGroupType);var a={method:"POST",headers:{Authorization:Object(h["b"])(),tenantId:Object(h["a"])()},data:v.a.stringify(t),url:e,responseType:"blob"};this.$confirm("您确定导出评价列表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p()(a).then((function(e){var t=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=URL.createObjectURL(t),s=document.createElement("a"),r=new Date,l=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),o=+l+"网管评价.xls";s.href=a,s.setAttribute("download",o),document.body.appendChild(s),s.click()}))})).catch((function(){}))}else this.$message.error("请选择时间范围")}},filters:{studentReviewFilter:function(e){var t=["未评价","1星","2星","3星","4星","5星"];return t[e]}},computed:{teachingMaterial:function(){return this.courseScheduleReview&&this.courseScheduleReview.teachingMaterial?this.courseScheduleReview.teachingMaterial:""},mychiose:function(){return this.courseScheduleReview&&this.courseScheduleReview.courseReview?this.courseScheduleReview.courseReview:""}}},w=g,F=(a("4b4b"),a("2877")),k=Object(F["a"])(w,i,n,!1,null,"46d47138",null),y=k.exports,R=a("ec8a"),S={components:{evaluateList:l["default"],networkList:o["default"],vipEvaluateList:y},data:function(){this.$route.query;return{activeIndex:"1",permissionList:{evaluateList:Object(R["a"])("/evaluateList"),networkList:Object(R["a"])("/networkList"),vipEvaluateList:Object(R["a"])("/vipEvaluateList")}}},created:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.$route.query.activeIndex?this.activeIndex=this.$route.query.activeIndex:this.activeIndex},handleClick:function(e){this.activeIndex=e.name}}},I=S,C=Object(F["a"])(I,s,r,!1,null,"3a345629",null);t["default"]=C.exports},"4b4b":function(e,t,a){"use strict";a("7d67")},"7d67":function(e,t,a){},"8cb9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,"save-key":"commentManager-evaluateList"},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"请输入课程组名称 ID"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择分部",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择状态",clearable:""},model:{value:e.searchForm.isOver,callback:function(t){e.$set(e.searchForm,"isOver",t)},expression:"searchForm.isOver"}},[a("el-option",{attrs:{label:"已完成",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("remote-search",{attrs:{commit:"setTeachers","aria-placeholder":"请选择指导老师",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"是否完成评价",clearable:""},model:{value:e.searchForm.hasReport,callback:function(t){e.$set(e.searchForm,"hasReport",t)},expression:"searchForm.hasReport"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{clearable:!1,type:"month","value-format":"yyyy-MM",placeholder:"选择年月"},model:{value:e.searchForm.month,callback:function(t){e.$set(e.searchForm,"month",t)},expression:"searchForm.month"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程组编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.id)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.organName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"收费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.buyMonths>0?"付费":"免费"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.coursesExpireDate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.evaluateStatus?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"evaluateList/look"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.row.evaluateStatus,expression:"scope.row.evaluateStatus"}],attrs:{type:"text"},on:{click:function(a){return e.gotoEvakuateDetail(t.row)}}},[e._v("查看")])],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"commentManager-evaluateList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)},r=[],l=(a("386d"),a("db72")),o=a("333d"),i=a("1cc7"),n={components:{pagination:o["a"]},data:function(){return{searchForm:{organId:null,isOver:"",teacherId:null,hasReport:"",month:null,search:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableData:[],teacherList:[],subjectList:[],organList:[]}},created:function(){},mounted:function(){this.init(),this.$store.dispatch("setBranchs")},methods:{init:function(){var e=this;if(!this.searchForm.month){var t=new Date;this.searchForm.month=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())).toISOString().slice(0,7)}Object(i["gb"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.getList()},getList:function(){var e=this;Object(i["Db"])(Object(l["a"])({},this.searchForm)).then((function(t){200==t.code&&(e.tableData=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={organId:null,isOver:"",teacherId:null,hasReport:"",month:null,search:null};var e=new Date;this.searchForm.month=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,7),this.search()},gotoEvakuateDetail:function(e){var t=e.id,a=e.evaluateId,s=JSON.stringify(this.searchForm),r=JSON.stringify(this.rules);this.$router.push({path:"/business/evaluateDetail",query:{id:t,evaluateId:a,search:s,rules:r}})}},filters:{coursesStatus:function(e){return(new Date).getTime()-new Date(e)>0?"已完成":"进行中"}}},c=n,u=a("2877"),h=Object(u["a"])(c,s,r,!1,null,null,null);t["default"]=h.exports}}]);
|