trainStatistics.e579ba26.js 35 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["trainStatistics"],{"01b6":function(t,e,r){},"0781":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAk1BMVEUAAAAAwbQBwbUBwrUCwrYBwbUAwrYAzbMBwrUBwbUBwrUCwbUCwrUAwbUAwrYAwrYBwbYBwrUBwbUBwrYBwbUAwrYAwrUAwbYAwLQAvrgAv68BwrYBwrUCwrUAwrUAwrYAw7cAw7cAw7gAwbUAw7kBwrYBwbUCwrcAwbUAw7cAwbYAwbUAwLMAxbcBwbYCwbQBwbVBksG5AAAAMHRSTlMAEfvtmdluBPbp4Z+SfGhP9PDPzckvKR4bCgixrad1Yl1LRSMYwLqJgnFXPjo20aSMH9xxAAABIklEQVQoz3WS13KDMBQFhSimOQEbbOMa957s/39dhC0GEZF90RntiFsG0TC7LuJQukW6HQiLaSJpiL/+2iDEpJiacuChGA3v+0N5+8mB6GHo2vpboXFSCfmk/TKwrETLLgffaVoOlRUdniGkOifgV6LLBuT+/ViCrmtQgNdUHguLT3BfYQFDW88zKOvgw0PYnOC1vAymPTqBdX1KcHp0qmvmMOnRKwjqcwSfPXqsrz3wbHsAZnrCqLL0Gr7fE0Y9gzsuXN/xA7LSbiye65/BV7k7+oV6KZoyg+huLDQBXKfdvwRWevpqE1Mzav3OReF7w/V5EaI4dv3+hIEb1P0yNpa9O0oto7O6trw43C5ekgbPgcraFyrbtH4i/mfjLruvbX4BnUcqUEVerZEAAAAASUVORK5CYII="},1576:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return o}));var n=r("2b7c"),a=function(t){return Object(n["a"])({url:"/cloudStudy/countStudentTrain",method:"get",params:t})},o=function(t){return Object(n["a"])({url:"/cloudStudy/queryMusicCompareRecord",method:"get",params:t})}},"62b4":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r("2b7c"),a=(r("981f").default,function(t){return Object(n["a"])({url:"/sysTenantConfig/queryAll",method:"get",params:t})})},"675c":function(t,e,r){},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=o,c=(r("70bb"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"10a70108",null);e["a"]=s.exports},"70bb":function(t,e,r){"use strict";r("c905")},7421:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"visitList"},[n("van-sticky",[t.headerStatus?n("m-header",{attrs:{isFixed:!1}}):t._e(),n("van-tabs",{staticClass:"van-hairline--bottom",attrs:{"title-active-color":"#000000","title-inactive-color":"#808080",color:"#01C1B5"},on:{change:t.tabChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-tab",{attrs:{title:"全部学员",name:"all"}},[n("train-model",{ref:"trainModel1",attrs:{active:t.active,defaultTime:0},on:{onLoad:t.onLoad}})],1),n("van-tab",{attrs:{title:"待回访学员",name:"visited"}},[n("train-model",{ref:"trainModel2",attrs:{playTime:t.playTime,trainNum:t.trainNum,active:t.active,defaultTime:-1},on:{onLoad:t.onLoad}})],1)],1)],1),t.dataShow?n("van-list",{attrs:{finished:t.finished,"finished-text":"- 没有更多了 -","immediate-check":!1},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,a){return n("van-cell-group",{key:a,staticClass:"data-content",attrs:{border:!1},on:{click:function(r){return t.onHref(e)}}},[n("van-cell",{staticStyle:{padding:"16px 12px"},attrs:{center:!0},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"teacher_info"},[e.avatar?n("img",{staticClass:"logo",attrs:{src:e.avatar,alt:""}}):n("img",{staticClass:"logo",attrs:{src:r("a7ed"),alt:""}}),n("p",{staticStyle:{color:"#1a1a1a","font-size":".14rem"}},[t._v(t._s(e.username))])])]},proxy:!0}],null,!0)},[n("p",{staticStyle:{"font-size":"14px",color:"#333","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.musicGroupName))])]),n("van-cell",{staticStyle:{padding:"12px 12px 16px"},attrs:{"is-link":"",clickable:!1,center:""},scopedSlots:t._u([{key:"title",fn:function(){return[n("van-grid",{attrs:{border:!1,"column-num":"4",clickable:!0}},[n("van-grid-item",{attrs:{text:"训练时长"},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v(t._s(e.totalPlayTime)+"分钟")]},proxy:!0}],null,!0)}),n("van-grid-item",{attrs:{text:"训练次数"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("span",{staticStyle:{color:"#01C1B5"}},[t._v(t._s(e.trainNum)+"次")])]},proxy:!0}],null,!0)}),n("van-grid-item",{attrs:{text:"训练天数"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("span",{staticStyle:{color:"#FF802C"}},[t._v(t._s(e.trainDay)+"天")])]},proxy:!0}],null,!0)}),n("van-grid-item",{attrs:{text:"评测次数"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("span",{staticStyle:{color:"#F79C00"}},[t._v(t._s(e.recordNum)+"次")])]},proxy:!0}],null,!0)})],1)]},proxy:!0}],null,!0)})],1)})),1):n("m-empty",{attrs:{msg:"暂无训练统计"}})],1)},a=[],o=r("6e6e"),i=r("d678"),c=r("ff51"),s=r("1576"),u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"trainModel"},[r("div",{directives:[{name:"show",rawName:"v-show",value:"visited"==t.activeType,expression:"activeType == 'visited'"}],staticClass:"visit-tips"},[r("span",[t._v("上周训练时长不足"+t._s(t.playTime)+"分钟或训练次数小于"+t._s(t.trainNum)+"次的学员"),r("br"),t._v("\n 需在每周三24:00前完成回访")])]),r("search",{attrs:{placeholder:"学生姓名或手机号"},on:{onSearch:t.onSearch},scopedSlots:t._u([{key:"left",fn:function(){return[r("van-dropdown-menu",{staticStyle:{"padding-right":".1rem"},attrs:{"close-on-click-outside":!1,"active-color":"#01C1B5"}},[r("van-dropdown-item",{ref:"item",staticClass:"visitTime",attrs:{title:"筛选"}},[r("van-cell",{attrs:{title:"日期","is-link":"","title-style":"font-size: .14rem;",value:t.calendarValue,"value-class":"calendarColor"},on:{click:function(e){t.showCalendar=!0}}})],1)],1)]},proxy:!0}])}),r("van-row",{staticClass:"searchArray"},[r("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(0)}}},[t._v("\n 训练时长\n "),r("div",[r("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[0]},staticStyle:{"margin-bottom":".03rem"}}),r("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[0]}})])]),r("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(1)}}},[t._v("\n 训练次数\n "),r("div",[r("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[1]},staticStyle:{"margin-bottom":".03rem"}}),r("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[1]}})])]),r("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(2)}}},[t._v("\n 训练天数\n "),r("div",[r("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[2]},staticStyle:{"margin-bottom":".03rem"}}),r("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[2]}})])]),r("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(3)}}},[t._v("\n 评测次数\n "),r("div",[r("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[3]},staticStyle:{"margin-bottom":".03rem"}}),r("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[3]}})])])],1),r("van-calendar",{attrs:{minDate:t.minDate,"default-date":t.defaultDate,"first-day-of-week":1,formatter:t.formatterDay,color:"#01C1B5",type:"range","get-container":"body"},on:{select:t.selectDate,confirm:t.onConfirm,close:t.onClose},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}})],1)},l=[],f=r("c106"),h=r("5a0c"),d=r.n(h);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){return w(t)||b(t,e)||m(t,e)||y()}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t,e){if(t){if("string"===typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done);i=!0)if(o.push(n.value),e&&o.length===e)break}catch(s){c=!0,a=s}finally{try{i||null==r["return"]||r["return"]()}finally{if(c)throw a}}return o}}function w(t){if(Array.isArray(t))return t}function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof f?e:f,o=Object.create(a.prototype),i=new k(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return D()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=A(i,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=s;var l={};function f(){}function h(){}function d(){}var v={};c(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==e&&r.call(m,a)&&(v=m);var g=d.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(a,o,i,c){var s=u(t[a],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(s.arg)}var a;this._invoke=function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:void 0,done:!0}}return h.prototype=d,c(g,"constructor",d),c(d,"constructor",h),h.displayName=c(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,i,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new w(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),c(g,i,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function A(t,e,r,n,a,o,i){try{var c=t[o](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,a)}function S(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(t){A(o,n,a,i,c,"next",t)}function c(t){A(o,n,a,i,c,"throw",t)}i(void 0)}))}}var L={props:{active:{type:String,default:"all"},defaultTime:{type:Number,default:0},trainNum:{type:[Number,String],default:0},playTime:{type:[Number,String],default:0}},components:{Search:f["a"]},data:function(){return{showCalendar:!1,minDate:new Date(2e3,0,1),defaultDate:[],startDay:null,endDay:null,search:null,searchArray:[null,null,null,null],searchType:{totalPlayTime:null,trainNum:null,trainDay:null,recordNum:null}}},mounted:function(){var t=S(x().mark((function t(){var e,r,n,a;return x().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.defaultTime,r=7*e,n=new Date,a=new Date,r>0?(n=Object(c["e"])(d()().add(r,"day").format("YYYY-MM-DD")),a=Object(c["f"])(d()().add(r,"day").format("YYYY-MM-DD"))):(n=Object(c["e"])(d()().subtract(Math.abs(r),"day").format("YYYY-MM-DD")),a=Object(c["f"])(d()().subtract(Math.abs(r),"day").format("YYYY-MM-DD"))),this.defaultDate=[new Date(n),new Date(a)],this.startDay=n,this.endDay=a,this.onSort();case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{calendarValue:function(){return"".concat(d()(this.startDay).format("YYYY/MM/DD")," - ").concat(d()(this.endDay).format("YYYY/MM/DD"))},activeType:function(){return this.active}},methods:{onSort:function(t){var e=this.searchArray;e.forEach((function(r,n){n!=t&&(e[n]=null)})),"ASC"==e[t]?e[t]="DESC":"DESC"==e[t]?e[t]=null:e[t]="ASC",this.$forceUpdate(),this.onAllFilter()},onSearch:function(t){this.search=t,this.onAllFilter()},onAllFilter:function(){var t=this.searchArray,e=null,r=null;t.forEach((function(t,n){t&&(e=n,r=t)}));var n=["totalPlayTime","trainNum","trainDay","recordNum"],a={search:this.search,startTime:this.startDay,endTime:this.endDay,page:1,sort:n[e],order:r};this.$listeners.onLoad(a)},changeDropDownItemStatus:function(){this.$refs.item.toggle(!1)},selectDate:function(t){var e=v(t,2),r=e[0],n=e[1];if(r){var a=d()(r).get("day");r=0===a?d()(r).subtract(6,"day"):d()(r).subtract(a-1,"day")}if(r){var o=7-d()(r).get("day");o<7&&(n=d()(r).add(o,"day"))}this.defaultDate=[new Date(r.valueOf()),new Date(n.valueOf())]},onConfirm:function(t){var e=v(t,2),r=e[0],n=e[1];if(this.showCalendar=!1,r){var a=d()(r).get("day");r=0===a?d()(r).subtract(6,"day"):d()(r).subtract(a-1,"day")}if(n){var o=7-d()(n).get("day");o<7&&(n=d()(n).add(o,"day"))}this.startDay=d()(r).format("YYYY-MM-DD"),this.endDay=d()(n).format("YYYY-MM-DD"),this.changeDropDownItemStatus(),this.onAllFilter()},onClose:function(){this.defaultDate=[new Date(this.startDay),new Date(this.endDay)]},formatterDay:function(t){var e=t.date.getMonth()+1,r=t.date.getDate(),n=new Date;return e==n.getMonth()+1&&r==n.getDate()&&(t.text="今天"),t}}},k=L,C=(r("9a31"),r("2877")),D=Object(C["a"])(k,u,l,!1,null,"59d69b84",null),E=D.exports,O=r("62b4");function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){M(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(C){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof f?e:f,o=Object.create(a.prototype),i=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return k()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=w(i,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=s;var l={};function f(){}function h(){}function d(){}var p={};c(p,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,a)&&(p=y);var m=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(a,o,i,c){var s=u(t[a],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==j(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(s.arg)}var a;this._invoke=function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),h.displayName=c(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,i,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(b.prototype),c(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new b(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(m),c(m,i,"Generator"),c(m,a,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function P(t,e,r,n,a,o,i){try{var c=t[o](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,a)}function U(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(t){P(o,n,a,i,c,"next",t)}function c(t){P(o,n,a,i,c,"throw",t)}i(void 0)}))}}var F={components:{MHeader:o["a"],MEmpty:i["a"],trainModel:E},data:function(){var t=sessionStorage.getItem("trainTab");return sessionStorage.removeItem("trainTab"),{headerStatus:!0,active:t||"all",list:[],loading:!1,finished:!1,params:{page:1,rows:20},dataShow:!0,formatEndTime:null,formatStartTime:null,trainNum:0,playTime:0}},created:function(){this.tenantId=sessionStorage.getItem("tenantId")||null},mounted:function(){var t=U(B().mark((function t(){var e,r,n,a=this;return B().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$route.query,e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),(Object(c["b"])().android||Object(c["b"])().iPhone)&&(this.headerStatus=!1),document.title="训练统计",t.prev=4,t.next=7,Object(O["a"])({group:"DAYA_BASIC"});case 7:r=t.sent,n=r.data,n.forEach((function(t){"student_cloud_teacher_train_num"==t.paramName?a.trainNum=t.paranValue:"student_cloud_teacher_total_play_time"==t.paramName&&(a.playTime=t.paranValue)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](4);case 14:case"end":return t.stop()}}),t,this,[[4,12]])})));function e(){return t.apply(this,arguments)}return e}(),methods:{onLoad:function(t){this.params=Object.assign(this.params,t),this.onResetList()},tabChange:function(){this.$refs.trainModel1&&this.$refs.trainModel1.changeDropDownItemStatus(),this.$refs.trainModel2&&this.$refs.trainModel2.changeDropDownItemStatus(),"visited"==this.active&&this.$refs.trainModel2?this.$refs.trainModel2.onAllFilter():"all"==this.active&&this.$refs.trainModel1&&this.$refs.trainModel1.onAllFilter()},search:function(t){this.params.search=t,this.onResetList()},onResetList:function(){this.list=[],this.params.page=1,this.dataShow=!0,this.loading=!0,this.finished=!1,this.getList()},onHref:function(t){sessionStorage.setItem("trainTab",this.active),this.$router.push({path:"/trainDetail",query:{userId:t.userId,username:t.username,phone:t.phone,musicGroupName:t.musicGroupName,avatar:t.avatar,visitFlag:t.visitFlag}})},getList:function(){var t=U(B().mark((function t(){var e,r,n,a;return B().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params,r="all"!=this.active?1:null,t.prev=2,t.next=5,Object(s["a"])(T(T({},e),{},{visitFlag:r}));case 5:n=t.sent,a=n.data,this.loading=!1,e.page=a.pageNo,this.list=this.list.concat(a.rows),e.page>=a.totalPage&&(this.finished=!0),this.params.page++,this.list.length<=0&&(this.dataShow=!1),t.next=19;break;case 15:t.prev=15,t.t0=t["catch"](2),this.finished=!0,this.dataShow=!1;case 19:case"end":return t.stop()}}),t,this,[[2,15]])})));function e(){return t.apply(this,arguments)}return e}()}},G=F,I=(r("9b5b"),Object(C["a"])(G,n,a,!1,null,"42db7590",null));e["default"]=I.exports},"852e":function(t,e,r){},"9a31":function(t,e,r){"use strict";r("01b6")},"9b5b":function(t,e,r){"use strict";r("e956c")},a7ed:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAADv7+/w8PDz8/Pu7u7u7u7v7+/p6enu7u7u7u7v7+/v7e/u7u7u7u7v7+/u7u7u7u7v7+/v7+/w8PDu7u7v7+/y8vL19fXy8vL////////u7u7u7u7v7+/v7+/t7e3u7u7w8PDv7+/4dtTt7e3v7+/v7+/u7u74ddL5dtP3dtP5dtP4ddT5eNP4ddP4ddP7dtXzdNHxyuZ8Rynu7u7/z60AAAD7upb/rI/////4dtP/fn7AdD/u7e3/zqyDKyXu7Or+zav/yql/Sy0LCwr+0rL/upzrs5b9/Pzw6+f8y6nx6OLUyMH4xKaUa1OCTjH907b+x6X7vZqQZEsRERAGBQX/7eHl4uDx5d/b29v9yab/vp+8pJeLXEKHVjvp5+bk393i3Nje1tH008D/1brOwLfHtKrBrKD8wJ3/r5G4n5Gzl4d2dna0gWGbdF6eaks4ODghHx7f39/238/42sWvr6/5yaf/xKTxwqH8w5+VlZWwkX7OmXpQUFDv6Of049jy4NX33cn62MDLu7L4ya75wKH9rpzvvJr/tpjYr5LjspDdq4qGhoasjHenhnFwcHB/Z1aSXT+FUTQvLSwmJSX39vb/9Ozm5OPy5t3/59b/49Dz2s3/38jYzcjHx8f/z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MMJMsq25HMKF79ciGZT29UhlyFsuyAmbZ/rNnS40RMAMqr2YDFqyoHNTIQn/Jw/ZGt0kO+jc44gvEc/RCDbZWjC/wBjFIYL+apqIopjl3PE1CghjckZKPy+1MRiIl/OGYr+8fMNmt9yESjuGL+USfoijuEo/3zelzHeViPvyBpTC2SFzAI7YJ6cASf/RqfxBBm+NRvOgQQfTqFqo/9wXxioR+rX53S41Hw0GvK3TarVa7I3R7g+FoXHXuL44XPdPQbpijAAAAAElFTkSuQmCC"},ab06:function(t,e,r){"use strict";r("675c")},bad8:function(t,e,r){"use strict";r("852e")},c106:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"search"},[t._t("left"),r("van-search",{attrs:{placeholder:t.placeholder,"left-icon":t.leftIcon,"show-action":""},on:{search:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[r("template",{slot:"action"},[r("span",{staticClass:"search_btn",on:{click:t.onSearch}},[t._v("搜索")])])],2)],2)},a=[],o={props:{placeholder:{type:String,default:"请输入搜索关键词"}},data:function(){return{leftIcon:r("0781"),searchValue:""}},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},i=o,c=(r("ab06"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"50731f0e",null);e["a"]=s.exports},c905:function(t,e,r){},d678:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mempty",class:t.full?"full":null},[r("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},a=[],o={name:"mempty",props:{icon:String,msg:String,full:Boolean}},i=o,c=(r("bad8"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"31cc2a9d",null);e["a"]=s.exports},e956c:function(t,e,r){}}]);