chunk-5ea75314.c56d6a08.js 7.6 KB

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