1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["trainStatistics"],{"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="},"09c7":function(t,e,n){"use strict";var a=n("5872"),r=n.n(a);r.a},1576:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var a=n("2b7c"),r=function(t){return Object(a["a"])({url:"/cloudStudy/countStudentTrain",method:"get",params:t})},i=function(t){return Object(a["a"])({url:"/cloudStudy/queryMusicCompareRecord",method:"get",params:t})}},"161b":function(t,e,n){"use strict";var a=n("de92"),r=n.n(a);r.a},"3f32":function(t,e,n){"use strict";var a=n("ba75"),r=n.n(a);r.a},"51c7":function(t,e,n){},5872:function(t,e,n){},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t="millisecond",e="second",n="minute",a="hour",r="day",i="week",s="month",o="quarter",c="year",u=/^(\d{4})-?(\d{1,2})?-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,n){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(n)+t},f={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),a=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+d(a,2,"0")+":"+d(r,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(n,s),r=e-a<0,i=t.clone().add(n+(r?-1:1),s);return Number(-(n+(e-a)/(r?a-i:i-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return{M:s,y:c,w:i,d:r,D:"date",h:a,m:n,s:e,ms:t,Q:o}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",v={};v[m]=h;var p=function(t){return t instanceof w},y=function(t,e,n){var a;if(!t)return m;if("string"==typeof t)v[t]&&(a=t),e&&(v[t]=e,a=t);else{var r=t.name;v[r]=t,a=r}return!n&&a&&(m=a),a||!n&&m},b=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new w(n)},g=f;g.l=y,g.i=p,g.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var w=function(){function d(t){this.$L=this.$L||y(t.locale,null,!0),this.parse(t)}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(u);if(a){var r=a[2]-1||0;return n?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return g},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return b(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<b(t)},f.$g=function(t,e,n){return g.u(t)?this[e]:this.set(n,t)},f.year=function(t){return this.$g(t,"$y",c)},f.month=function(t){return this.$g(t,"$M",s)},f.day=function(t){return this.$g(t,"$W",r)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",a)},f.minute=function(t){return this.$g(t,"$m",n)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var u=this,l=!!g.u(o)||o,d=g.p(t),f=function(t,e){var n=g.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return l?n:n.endOf(r)},h=function(t,e){return g.w(u.toDate()[t].apply(u.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},m=this.$W,v=this.$M,p=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return l?f(1,0):f(31,11);case s:return l?f(1,v):f(0,v+1);case i:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return f(l?p-w:p+(6-w),v);case r:case"date":return h(y+"Hours",0);case a:return h(y+"Minutes",1);case n:return h(y+"Seconds",2);case e:return h(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,o){var u,l=g.p(i),d="set"+(this.$u?"UTC":""),f=(u={},u[r]=d+"Date",u.date=d+"Date",u[s]=d+"Month",u[c]=d+"FullYear",u[a]=d+"Hours",u[n]=d+"Minutes",u[e]=d+"Seconds",u[t]=d+"Milliseconds",u)[l],h=l===r?this.$D+(o-this.$W):o;if(l===s||l===c){var m=this.clone().set("date",1);m.$d[f](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[g.p(t)]()},f.add=function(t,o){var u,l=this;t=Number(t);var d=g.p(o),f=function(e){var n=b(l);return g.w(n.date(n.date()+Math.round(e*t)),l)};if(d===s)return this.set(s,this.$M+t);if(d===c)return this.set(c,this.$y+t);if(d===r)return f(1);if(d===i)return f(7);var h=(u={},u[n]=6e4,u[a]=36e5,u[e]=1e3,u)[d]||1,m=this.$d.getTime()+t*h;return g.w(m,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=g.z(this),r=this.$locale(),i=this.$H,s=this.$m,o=this.$M,c=r.weekdays,u=r.months,d=function(t,a,r,i){return t&&(t[a]||t(e,n))||r[a].substr(0,i)},f=function(t){return g.s(i%12||12,t,"0")},h=r.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:g.s(o+1,2,"0"),MMM:d(r.monthsShort,o,u,3),MMMM:d(u,o),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,c,2),ddd:d(r.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:g.s(i,2,"0"),h:f(1),hh:f(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:g.s(s,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:a};return n.replace(l,function(t,e){return e||m[t]||a.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,u,l){var d,f=g.p(u),h=b(t),m=6e4*(h.utcOffset()-this.utcOffset()),v=this-h,p=g.m(this,h);return p=(d={},d[c]=p/12,d[s]=p,d[o]=p/3,d[i]=(v-m)/6048e5,d[r]=(v-m)/864e5,d[a]=v/36e5,d[n]=v/6e4,d[e]=v/1e3,d)[f]||v,l?p:g.a(p)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return v[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),a=y(t,e,!0);return a&&(n.$L=a),n},f.clone=function(){return g.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}();return b.prototype=w.prototype,b.extend=function(t,e){return t(e,w,b),b},b.locale=y,b.isDayjs=p,b.unix=function(t){return b(1e3*t)},b.en=v[m],b.Ls=v,b})},"62b4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var a=n("2b7c"),r=(n("981f").default,function(t){return Object(a["a"])({url:"/sysTenantConfig/queryAll",method:"get",params:t})})},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i={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)}}},s=i,o=(n("d133"),n("2877")),c=Object(o["a"])(s,a,r,!1,null,"0e835508",null);e["a"]=c.exports},7421:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"visitList"},[a("van-sticky",[t.headerStatus?a("m-header",{attrs:{isFixed:!1}}):t._e(),a("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"}},[a("van-tab",{attrs:{title:"全部学员",name:"all"}},[a("train-model",{ref:"trainModel1",attrs:{active:t.active,defaultTime:0},on:{onLoad:t.onLoad}})],1),a("van-tab",{attrs:{title:"待回访学员",name:"visited"}},[a("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?a("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,r){return a("van-cell-group",{key:r,staticClass:"data-content",attrs:{border:!1},on:{click:function(n){return t.onHref(e)}}},[a("van-cell",{staticStyle:{padding:"16px 12px"},attrs:{center:!0},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"teacher_info"},[e.avatar?a("img",{staticClass:"logo",attrs:{src:e.avatar,alt:""}}):a("img",{staticClass:"logo",attrs:{src:n("a7ed"),alt:""}}),a("p",{staticStyle:{color:"#1a1a1a","font-size":".14rem"}},[t._v(t._s(e.username))])])]},proxy:!0}],null,!0)},[a("p",{staticStyle:{"font-size":"14px",color:"#333","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.musicGroupName))])]),a("van-cell",{staticStyle:{padding:"12px 12px 16px"},attrs:{"is-link":"",clickable:!1,center:""},scopedSlots:t._u([{key:"title",fn:function(){return[a("van-grid",{attrs:{border:!1,"column-num":"4",clickable:!0}},[a("van-grid-item",{attrs:{text:"训练时长"},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v(t._s(e.totalPlayTime)+"分钟")]},proxy:!0}],null,!0)}),a("van-grid-item",{attrs:{text:"训练次数"},scopedSlots:t._u([{key:"icon",fn:function(){return[a("span",{staticStyle:{color:"#01C1B5"}},[t._v(t._s(e.trainNum)+"次")])]},proxy:!0}],null,!0)}),a("van-grid-item",{attrs:{text:"训练天数"},scopedSlots:t._u([{key:"icon",fn:function(){return[a("span",{staticStyle:{color:"#FF802C"}},[t._v(t._s(e.trainDay)+"天")])]},proxy:!0}],null,!0)}),a("van-grid-item",{attrs:{text:"评测次数"},scopedSlots:t._u([{key:"icon",fn:function(){return[a("span",{staticStyle:{color:"#F79C00"}},[t._v(t._s(e.recordNum)+"次")])]},proxy:!0}],null,!0)})],1)]},proxy:!0}],null,!0)})],1)}),1):a("m-empty",{attrs:{msg:"暂无训练统计"}})],1)},r=[],i=n("a34a"),s=n.n(i),o=n("6e6e"),c=n("d678"),u=n("ff51"),l=n("1576"),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"trainModel"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"visited"==t.activeType,expression:"activeType == 'visited'"}],staticClass:"visit-tips"},[n("span",[t._v("上周训练时长不足"+t._s(t.playTime)+"分钟或训练次数小于"+t._s(t.trainNum)+"次的学员"),n("br"),t._v("\n 需在每周三24:00前完成回访")])]),n("search",{attrs:{placeholder:"学生姓名或手机号"},on:{onSearch:t.onSearch},scopedSlots:t._u([{key:"left",fn:function(){return[n("van-dropdown-menu",{staticStyle:{"padding-right":".1rem"},attrs:{"close-on-click-outside":!1,"active-color":"#01C1B5"}},[n("van-dropdown-item",{ref:"item",staticClass:"visitTime",attrs:{title:"筛选"}},[n("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}])}),n("van-row",{staticClass:"searchArray"},[n("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(0)}}},[t._v("\n 训练时长\n "),n("div",[n("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[0]},staticStyle:{"margin-bottom":".03rem"}}),n("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[0]}})])]),n("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(1)}}},[t._v("\n 训练次数\n "),n("div",[n("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[1]},staticStyle:{"margin-bottom":".03rem"}}),n("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[1]}})])]),n("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(2)}}},[t._v("\n 训练天数\n "),n("div",[n("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[2]},staticStyle:{"margin-bottom":".03rem"}}),n("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[2]}})])]),n("van-col",{staticClass:"title-style",attrs:{span:"6"},on:{click:function(e){return t.onSort(3)}}},[t._v("\n 评测次数\n "),n("div",[n("i",{staticClass:"box box-up",class:{active:"ASC"==t.searchArray[3]},staticStyle:{"margin-bottom":".03rem"}}),n("i",{staticClass:"box box-down",class:{active:"DESC"==t.searchArray[3]}})])])],1),n("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)},f=[],h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search"},[t._t("left"),n("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"}},[n("template",{slot:"action"},[n("span",{staticClass:"search_btn",on:{click:t.onSearch}},[t._v("搜索")])])],2)],2)},m=[],v={props:{placeholder:{type:String,default:"请输入搜索关键词"}},data:function(){return{leftIcon:n("0781"),searchValue:""}},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},p=v,y=(n("09c7"),n("2877")),b=Object(y["a"])(p,h,m,!1,null,"0d660384",null),g=b.exports,w=n("5a0c"),A=n.n(w);function S(t,e){return x(t)||M(t,e)||D()}function D(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function M(t,e){var n=[],a=!0,r=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(a=(s=o.next()).done);a=!0)if(n.push(s.value),e&&n.length===e)break}catch(c){r=!0,i=c}finally{try{a||null==o["return"]||o["return"]()}finally{if(r)throw i}}return n}function x(t){if(Array.isArray(t))return t}function C(t,e,n,a,r,i,s){try{var o=t[i](s),c=o.value}catch(u){return void n(u)}o.done?e(c):Promise.resolve(c).then(a,r)}function k(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var i=t.apply(e,n);function s(t){C(i,a,r,s,o,"next",t)}function o(t){C(i,a,r,s,o,"throw",t)}s(void 0)})}}var Y={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:g},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=k(s.a.mark(function t(){var e,n,a,r;return s.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:e=this.defaultTime,n=7*e,a=new Date,r=new Date,n>0?(a=Object(u["e"])(A()().add(n,"day").format("YYYY-MM-DD")),r=Object(u["f"])(A()().add(n,"day").format("YYYY-MM-DD"))):(a=Object(u["e"])(A()().subtract(Math.abs(n),"day").format("YYYY-MM-DD")),r=Object(u["f"])(A()().subtract(Math.abs(n),"day").format("YYYY-MM-DD"))),this.defaultDate=[new Date(a),new Date(r)],this.startDay=a,this.endDay=r,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(A()(this.startDay).format("YYYY/MM/DD")," - ").concat(A()(this.endDay).format("YYYY/MM/DD"))},activeType:function(){return this.active}},methods:{onSort:function(t){var e=this.searchArray;e.forEach(function(n,a){a!=t&&(e[a]=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,n=null;t.forEach(function(t,a){t&&(e=a,n=t)});var a=["totalPlayTime","trainNum","trainDay","recordNum"],r={search:this.search,startTime:this.startDay,endTime:this.endDay,page:1,sort:a[e],order:n};this.$listeners.onLoad(r)},changeDropDownItemStatus:function(){this.$refs.item.toggle(!1)},selectDate:function(t){var e=S(t,2),n=e[0],a=e[1];if(n){var r=A()(n).get("day");n=0===r?A()(n).subtract(6,"day"):A()(n).subtract(r-1,"day")}if(n){var i=7-A()(n).get("day");i<7&&(a=A()(n).add(i,"day"))}this.defaultDate=[new Date(n.valueOf()),new Date(a.valueOf())]},onConfirm:function(t){var e=S(t,2),n=e[0],a=e[1];if(this.showCalendar=!1,n){var r=A()(n).get("day");n=0===r?A()(n).subtract(6,"day"):A()(n).subtract(r-1,"day")}if(a){var i=7-A()(a).get("day");i<7&&(a=A()(a).add(i,"day"))}this.startDay=A()(n).format("YYYY-MM-DD"),this.endDay=A()(a).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,n=t.date.getDate(),a=new Date;return e==a.getMonth()+1&&n==a.getDate()&&(t.text="今天"),t}}},O=Y,T=(n("161b"),Object(y["a"])(O,d,f,!1,null,"6a6d7144",null)),B=T.exports,U=n("62b4");function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(n,!0).forEach(function(e){j(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e,n,a,r,i,s){try{var o=t[i](s),c=o.value}catch(u){return void n(u)}o.done?e(c):Promise.resolve(c).then(a,r)}function P(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var i=t.apply(e,n);function s(t){I(i,a,r,s,o,"next",t)}function o(t){I(i,a,r,s,o,"throw",t)}s(void 0)})}}var E={components:{MHeader:o["a"],MEmpty:c["a"],trainModel:B},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=P(s.a.mark(function t(){var e,n,a,r=this;return s.a.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(u["b"])().android||Object(u["b"])().iPhone)&&(this.headerStatus=!1),document.title="训练统计",t.prev=4,t.next=7,Object(U["a"])({group:"DAYA_BASIC"});case 7:n=t.sent,a=n.data,a.forEach(function(t){"student_cloud_teacher_train_num"==t.paramName?r.trainNum=t.paranValue:"student_cloud_teacher_total_play_time"==t.paramName&&(r.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=P(s.a.mark(function t(){var e,n,a,r;return s.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params,n="all"!=this.active?1:null,t.prev=2,t.next=5,Object(l["a"])($({},e,{visitFlag:n}));case 5:a=t.sent,r=a.data,this.loading=!1,e.page=r.pageNo,this.list=this.list.concat(r.rows),e.page>=r.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}()}},F=E,H=(n("3f32"),Object(y["a"])(F,a,r,!1,null,"04371a87",null));e["default"]=H.exports},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/zbn2zLX2y7Pnu5z/spjLpInYo4TmqYB/f397e3uggGtqampeXVytelqmclPKgk/HfUpGRkZAQ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Gt0kO+jc44gvEc/RCDbZWjC/wBjFIYL+apqIopjl3PE1CghjckZKPy+1MRiIl/OGYr+8fMNmt9yESjuGL+USfoijuEo/3zelzHeViPvyBpTC2SFzAI7YJ6cASf/RqfxBBm+NRvOgQQfTqFqo/9wXxioR+rX53S41Hw0GvK3TarVa7I3R7g+FoXHXuL44XPdPQbpijAAAAAElFTkSuQmCC"},ba75:function(t,e,n){},bb2c:function(t,e,n){},c063:function(t,e,n){"use strict";var a=n("51c7"),r=n.n(a);r.a},d133:function(t,e,n){"use strict";var a=n("bb2c"),r=n.n(a);r.a},d678:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty",class:t.full?"full":null},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},r=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},s=i,o=(n("c063"),n("2877")),c=Object(o["a"])(s,a,r,!1,null,"45d1a48f",null);e["a"]=c.exports},de92:function(t,e,n){}}]);
|