1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de5c2e9a"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=s(),l=e-n,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var s=Math.easeInOutQuad(c,n,l,t);o(s),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"2de7":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-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:"课程组名称"},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",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},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",{attrs:{prop:"status"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"是否有教务老师"},model:{value:e.searchForm.hasEducationalTeacherId,callback:function(t){e.$set(e.searchForm,"hasEducationalTeacherId","string"===typeof t?t.trim():t)},expression:"searchForm.hasEducationalTeacherId"}},[a("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"指导老师"},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId","string"===typeof t?t.trim():t)},expression:"searchForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],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:"educationalTeacherName",label:"教务老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"coursesStartDate",label:"开课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.coursesStartDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"coursesExpireDate",label:"结束时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.coursesExpireDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupStatus",label:"课程组状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("courseGroup")(t.row.groupStatus)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookCrouse(t.row)}}},[e._v("查看")]),e._v(" "),"NORMAL"==t.row.groupStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"practiceGroupManage/cancelGroup",expression:"'practiceGroupManage/cancelGroup'"}],attrs:{type:"text"},on:{click:function(a){return e.closeCrouse(t.row)}}},[e._v("关闭")]):e._e()],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),e._v(" "),a("el-dialog",{attrs:{title:"关闭课程组",width:"400px",visible:e.closeVisible},on:{"update:visible":function(t){e.closeVisible=t}}},[a("el-form",{ref:"closeForm",attrs:{model:e.closeForm,"label-position":"right","label-width":"80px;",inline:!0}},[a("el-form-item",{attrs:{label:"是否退费",prop:"isBasck"}},[a("el-radio",{attrs:{label:!0},model:{value:e.closeForm.isBack,callback:function(t){e.$set(e.closeForm,"isBack",t)},expression:"closeForm.isBack"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.closeForm.isBack,callback:function(t){e.$set(e.closeForm,"isBack",t)},expression:"closeForm.isBack"}},[e._v("否")])],1),e._v(" "),e.closeForm.isBack?a("el-form-item",{attrs:{label:"退费金额",prop:"money"}},[a("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.closeForm.money,callback:function(t){e.$set(e.closeForm,"money","string"===typeof t?t.trim():t)},expression:"closeForm.money"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.closeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submieCloseCrouse}},[e._v("确 定")])],1)],1)],1)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("网管课列表\n ")])}],s=(a("386d"),a("333d")),n=a("1cc7"),l={components:{pagination:s["a"]},data:function(){return{searchForm:{search:null,status:null,teacherId:null,organIdList:null},closeForm:{isBack:!1,money:null},closeVisible:!1,activeRow:null,organList:[],statusList:[],teacherList:[],tableData:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){this.$route.query.searchForm&&(this.$route.query.searchForm instanceof Object?this.searchForm=this.$route.query.searchForm:this.searchForm=JSON.parse(this.$route.query.searchForm)),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.init()},mounted:function(){},activated:function(){this.init()},methods:{init:function(){var e=this;Object(n["O"])().then((function(t){200==t.code&&(e.organList=t.data)})),Object(n["ib"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),this.getList()},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,status:null,teacherId:null,organIdList:null},this.search()},getList:function(){var e=this,t={search:this.searchForm.search||null,teacherId:this.searchForm.teacherId||null,organId:this.searchForm.organIdList||null,page:this.rules.page,rows:this.rules.limit,hasEducationalTeacherId:this.searchForm.hasEducationalTeacherId||null};Object(n["Bb"])(t).then((function(t){200==t.code&&(e.tableData=t.data.rows,e.rules.total=t.data.total)}))},lookCrouse:function(e){var t=JSON.stringify(this.rules),a=JSON.stringify(this.searchForm);this.$router.push({path:"/business/accompanys",query:{id:e.id,rules:t,searchForm:a}})},closeCrouse:function(e){this.activeRow=e,this.closeVisible=!0},courseVisibleClose:function(){},submieCloseCrouse:function(){var e=this;if(this.closeForm.isBack){if(!this.closeForm.money)return void this.$message.error("请输入退费金额")}else this.closeForm.money=null;Object(n["j"])({groupId:this.activeRow.id,groupType:"PRACTICE",refundAmount:this.closeForm.money}).then((function(t){200==t.code&&(e.$message.success("关闭成功"),e.getList(),e.closeVisible=!1)}))}},watch:{closeVisible:function(e){e||(console.log(e),this.activeRow=null,this.closeForm={isBack:!1,money:null},this.$refs.closeForm.resetFields(),this.closeVisible=!1)}}},i=l,c=a("2877"),u=Object(c["a"])(i,r,o,!1,null,null,null);t["default"]=u.exports},"333d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},o=[],s=(a("c5f6"),a("09f4")),n={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(s["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(s["a"])(0,800)}}},l=n,i=(a("c0b9"),a("2877")),c=Object(i["a"])(l,r,o,!1,null,"31cb099a",null);t["a"]=c.exports},c0b9:function(e,t,a){"use strict";var r=a("de4e"),o=a.n(r);o.a},de4e:function(e,t,a){}}]);
|