chunk-5ea75314.09a9cb4b.js 7.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ea75314"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(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 o(e,t,r){var o=s(),u=e-o,c=20,i=0;t="undefined"===typeof t?500:t;var l=function e(){i+=c;var s=Math.easeInOutQuad(i,o,u,t);n(s),i<t?a(e):r&&"function"===typeof r&&r()};l()}},"7d66":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 未在班级学员\n "),e.permission("/main/notClassStudent")?r("filter-search",{attrs:{keys:["hasCourse"],moreKeys:["organId"]},on:{reload:e.reloadSearch}}):e._e()],1),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchFrom",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"musicGroupSearch"}},[r("el-input",{attrs:{clearable:"",placeholder:"乐团名称/编号"},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.musicGroupSearch,callback:function(t){e.$set(e.searchForm,"musicGroupSearch","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupSearch"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"studentSearch"}},[r("el-input",{attrs:{clearable:"",placeholder:"学员姓名/编号"},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.studentSearch,callback:function(t){e.$set(e.searchForm,"studentSearch","string"===typeof t?t.trim():t)},expression:"searchForm.studentSearch"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"organIds"}},[r("el-select",{attrs:{placeholder:"请选择分部",clearable:""},model:{value:e.searchForm.organIds,callback:function(t){e.$set(e.searchForm,"organIds",t)},expression:"searchForm.organIds"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),r("auth",{attrs:{auths:["export/noClassGroupStudentList"]}},[r("el-button",{attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",label:"分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.groupId))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.groupName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.studentId))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.studentName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学员声部",prop:"subjectName"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("auth",{attrs:{auths:["notClassStudent/nowLook","/resetTeaming"],mulit:""}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.showDetail(t.row)}}},[e._v("立即处理")])],1)]}}])})],1),e._v(" "),r("pagination",{attrs:{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)])},n=[],s=r("c80c"),o=r("db72"),u=(r("96cf"),r("3b8d")),c=(r("c5f6"),r("333d")),i=r("8179"),l=r("adb21"),d=r("e3eb"),p=r.n(d),m=r("ec8a"),h=r("4328"),f=r.n(h),b={components:{pagination:c["a"]},data:function(){return{searchForm:{musicGroupSearch:null,studentSearch:null,organIds:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e=this.$route.query;e.organId&&(this.searchForm.organIds=Number(e.organId)),this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchFrom"].resetFields(),this.getList()},getList:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var t,r,a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object.assign({},this.searchForm),r=Object(o["a"])(Object(o["a"])({},t),{},{hasCourse:this.$route.query.hasCourse,page:this.rules.page,rows:this.rules.limit}),e.next=5,Object(i["w"])(r);case 5:a=e.sent,this.tableList=a.data.rows,this.rules.total=a.data.total,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](0);case 12:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}(),showDetail:function(e){this.$router.push({path:"/business/resetTeaming",query:{type:"resetTeam",status:"PROGRESS",team_status:"PROGRESS",id:e.groupId,name:e.groupName,organId:e.organId,tabrouter:5}})},onExport:function(){var e=Object.assign({},this.searchForm),t=Object(o["a"])(Object(o["a"])({},e),{},{hasCourse:this.$route.query.hasCourse,page:this.rules.page,rows:this.rules.limit});Object(l["a"])(this,{url:"/api-web/export/noClassGroupStudentList",fileName:"未在班级学员.xls",method:"post",params:f.a.stringify(p()(t))},"您确定导出未在班级学员?")},permission:function(e,t){return Object(m["a"])(e,t)}}},g=b,v=r("2877"),y=Object(v["a"])(g,a,n,!1,null,"fb4380c2",null);t["default"]=y.exports},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var a=r("bc3a"),n=r.n(a),s=(r("4328"),r("5f87")),o=r("3908"),u=r("e3eb"),c=r.n(u),i=function(e,t,r,a){var u=t.url,i={method:t.method?t.method:"get",headers:{Authorization:Object(s["b"])(),tenantId:Object(s["a"])()},url:u,responseType:"blob"};"post"==i.method?i.data=t.params:i.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),n()(c()(i)).then((function(r){var n=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(n).text();s.then((function(r){if(-1!=r.indexOf("code")){var s=JSON.parse(r);if(403==s.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==s.code?e.$message.success(s.msg):e.$message.error(s.msg),a&&a()}else{var o=URL.createObjectURL(n),u=document.createElement("a"),c=t.fileName||"导出文件.xls";u.href=o,u.setAttribute("download",c),document.body.appendChild(u),u.click(),a&&a()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}}}]);