1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4041894e"],{"442d":function(e,t,a){"use strict";a.r(t);var r=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("el-tabs",{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"}},[a("el-tab-pane",{attrs:{label:"月报",name:"1"}},[1==e.activeIndex?a("evaluateList"):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"网管课评价",name:"2"}},[2==e.activeIndex?a("networkList"):e._e()],1)],1)],1)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("评论管理\n ")])}],s=a("8cb9"),n=a("74db"),o={components:{evaluateList:s["default"],networkList:n["default"]},data:function(){return{activeIndex:"1"}},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(){}}},i=o,c=a("2877"),u=Object(c["a"])(i,r,l,!1,null,"0b3df294",null);t["default"]=u.exports},"8cb9":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入课程组名称 ID"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null: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.organList,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("el-select",{attrs:{placeholder:"请选择指导老师",clearable:"",filterable:""},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}},e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})}),1)],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:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[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:"课程组编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),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(e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes))])]}}])}),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("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"evaluateList/look",expression:"'evaluateList/look'"},{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),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"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)},l=[],s=(a("386d"),a("333d")),n=a("1cc7"),o={components:{pagination:s["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(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;if(this.$route.query.search&&(this.$route.query.search instanceof Object?this.searchForm=this.$route.query.search:this.searchForm=JSON.parse(this.$route.query.search)),this.$route.query.rules&&(this.$route.query.rules instanceof Object?this.rules=this.$route.query.rules:this.rules=JSON.parse(this.$route.query.rules)),!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(n["kb"])({}).then(function(t){200==t.code&&(e.teacherList=t.data)}),Object(n["N"])().then(function(t){200==t.code&&(e.organList=t.data)}),this.getList()},getList:function(){var e=this,t={};t.hasReport=this.searchForm.hasReport||null,t.isOver=this.searchForm.isOver||null,t.month=this.searchForm.month||null,t.organId=this.searchForm.organId||null,t.page=this.rules.page,t.rows=this.rules.limit,t.search=this.searchForm.search||null,t.teacherId=this.searchForm.teacherId||null,Object(n["db"])(t).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)},gotoEvakuateDetail:function(e){var t=e.id,a=e.evaluateId,r=JSON.stringify(this.searchForm),l=JSON.stringify(this.rules);this.$router.push({path:"/operateManager/evaluateDetail",query:{id:t,evaluateId:a,search:r,rules:l}})}},filters:{coursesStatus:function(e){return(new Date).getTime()-new Date(e)>0?"已完成":"进行中"}}},i=o,c=a("2877"),u=Object(c["a"])(i,r,l,!1,null,null,null);t["default"]=u.exports}}]);
|