1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3aedde54"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,n){var o=s(),l=e-o,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var s=Math.easeInOutQuad(c,o,l,t);a(s),c<t?r(e):n&&"function"===typeof n&&n()};u()}},fdde7: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:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[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.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},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:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],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",prop:"organName",label:"分部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"username",label:"学员名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"username",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"totalCourseMinutes",label:"总时长"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.totalCourseMinutes)+"分钟")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"usedCourseMinutes",label:"消耗时长"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.usedCourseMinutes)+"分钟")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"freeCourseMinutes",label:"未消耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.freeCourseMinutes)+"分钟")])]}}])})],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 ")])}],s=(n("386d"),n("c80c")),o=n("db72"),l=(n("96cf"),n("3b8d")),i=(n("bc3a"),n("5f87"),n("333d")),c=(n("3908"),n("8179")),u={components:{pagination:i["a"]},data:function(){return{searchForm:{search:null,organId:null},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var e=Object(l["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["e"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{rows:this.rules.limit,page:this.rules.page}));case 3:t=e.sent,this.rules.total=t.data.total,this.tableList=t.data.rows,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null},this.search()}}},d=u,p=n("2877"),m=Object(p["a"])(d,r,a,!1,null,"737bbd1a",null);t["default"]=m.exports}}]);
|