(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["studyData"],{"0401":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return g}));var a=n("284b"),r=n("f121"),i=function(e){return a["a"].post("/admin/app/user/queryAdminUserInfos",e)},o=function(e){return a["a"].get("/admin/app/user/enable",{params:e})},s=function(e){return a["a"].get("/admin/app/user/disabled",{params:e})},c=function(e){return a["a"].post("/admin/course/learn/queryLearnDataResult",e)},u=r["a"]+"/admin/course/learn/exportLearnDataResult",l=r["a"]+"/admin/course/learn/exportLearnDataDescResult",f=function(e){return a["a"].post("/admin/course/learn/queryLearnDataDescResult",e)},p=function(e){return a["a"].post("/adminv2/crm/moveUserRights",e)},d=function(e){return a["a"].post("/adminv2/crm/qwTags/list",e)},g=function(e){return a["a"].post("/adminv2/crm/qwUsers/list",e)}},"0cb2":function(e,t,n){var a=n("7b0b"),r=Math.floor,i="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,l){var f=n+e.length,p=c.length,d=s;return void 0!==u&&(u=a(u),d=o),i.call(l,d,(function(a,i){var o;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":o=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return a;if(s>p){var l=r(s/10);return 0===l?a:l<=p?void 0===c[l-1]?i.charAt(1):c[l-1]+i.charAt(1):a}o=c[s-1]}return void 0===o?"":o}))}},"14c3":function(e,t,n){var a=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"25f0":function(e,t,n){"use strict";var a=n("6eeb"),r=n("825a"),i=n("d039"),o=n("ad6d"),s="toString",c=RegExp.prototype,u=c[s],l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=s;(l||f)&&a(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,a=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?o.call(e):n);return"/"+t+"/"+a}),{unsafe:!0})},"44e7":function(e,t,n){var a=n("861d"),r=n("c6b6"),i=n("b622"),o=i("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},"4d63":function(e,t,n){var a=n("83ab"),r=n("da84"),i=n("94ca"),o=n("7156"),s=n("9bf2").f,c=n("241c").f,u=n("44e7"),l=n("ad6d"),f=n("9f7f"),p=n("6eeb"),d=n("d039"),g=n("69f3").set,h=n("2626"),v=n("b622"),m=v("match"),b=r.RegExp,x=b.prototype,y=/a/g,S=/a/g,E=new b(y)!==y,N=f.UNSUPPORTED_Y,w=a&&i("RegExp",!E||N||d((function(){return S[m]=!1,b(y)!=y||b(S)==S||"/a/i"!=b(y,"i")})));if(w){var D=function(e,t){var n,a=this instanceof D,r=u(e),i=void 0===t;if(!a&&r&&e.constructor===D&&i)return e;E?r&&!i&&(e=e.source):e instanceof D&&(i&&(t=l.call(e)),e=e.source),N&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=o(E?new b(e,t):b(e,t),a?this:x,D);return N&&n&&g(s,{sticky:n}),s},C=function(e){e in D||s(D,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},R=c(b),k=0;while(R.length>k)C(R[k++]);x.constructor=D,D.prototype=x,p(r,"RegExp",D)}h("RegExp")},5319:function(e,t,n){"use strict";var a=n("d784"),r=n("825a"),i=n("50c4"),o=n("a691"),s=n("1d80"),c=n("8aa5"),u=n("0cb2"),l=n("14c3"),f=Math.max,p=Math.min,d=function(e){return void 0===e?e:String(e)};a("replace",2,(function(e,t,n,a){var g=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=a.REPLACE_KEEPS_$0,v=g?"$":"$0";return[function(n,a){var r=s(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r,a):t.call(String(r),n,a)},function(e,a){if(!g&&h||"string"===typeof a&&-1===a.indexOf(v)){var s=n(t,e,this,a);if(s.done)return s.value}var m=r(e),b=String(this),x="function"===typeof a;x||(a=String(a));var y=m.global;if(y){var S=m.unicode;m.lastIndex=0}var E=[];while(1){var N=l(m,b);if(null===N)break;if(E.push(N),!y)break;var w=String(N[0]);""===w&&(m.lastIndex=c(b,i(m.lastIndex),S))}for(var D="",C=0,R=0;R=C&&(D+=b.slice(C,_)+U,C=_+k.length)}return D+b.slice(C)}]}))},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var a=n("1d80"),r=n("5899"),i="["+r+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),c=function(e){return function(t){var n=String(a(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"6ffe":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination"},[n("a-pagination",{attrs:{"page-size-options":e.pageSizeOptions,total:e.count,"show-total":function(e,t){return"总共"+e+"条"},"page-size":e.pageSize,showQuickJumper:"",showSizeChanger:e.showSizeChanger},on:{showSizeChange:e.onShowSizeChange,change:e.onchange},scopedSlots:e._u([{key:"buildOptionText",fn:function(t){return["99"!==t.value?n("span",[e._v(e._s(t.value)+"条/页")]):e._e()]}}]),model:{value:e.current,callback:function(t){e.current=t},expression:"current"}})],1)},r=[],i=(n("a9e3"),{props:{count:{type:Number,defaule:0},pageNo:{type:Number,default:1},showSizeChanger:{type:Boolean,default:!0}},data:function(){return{pageSizeOptions:["20","30","40","50","100","200"],current:1,pageSize:20}},watch:{pageNo:function(e){this.current=e}},created:function(){this.current=this.pageNo},methods:{onShowSizeChange:function(e,t){this.current=1,this.$emit("showSizeChangeFn",e,t),this.pageSize=t},onchange:function(e,t){this.$emit("showSizeChangeFn",e,t)}}}),o=i,s=(n("ae61"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"ae5bacaa",null);t["a"]=c.exports},7156:function(e,t,n){var a=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var i,o;return r&&"function"==typeof(i=t.constructor)&&i!==n&&a(o=i.prototype)&&o!==n.prototype&&r(e,o),e}},"770b":function(e,t,n){},"8aa5":function(e,t,n){"use strict";var a=n("6547").charAt;e.exports=function(e,t,n){return t+(n?a(e,t).length:1)}},9263:function(e,t,n){"use strict";var a=n("ad6d"),r=n("9f7f"),i=n("5692"),o=RegExp.prototype.exec,s=i("native-string-replace",String.prototype.replace),c=o,u=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=r.UNSUPPORTED_Y||r.BROKEN_CARET,f=void 0!==/()??/.exec("")[1],p=u||f||l;p&&(c=function(e){var t,n,r,i,c=this,p=l&&c.sticky,d=a.call(c),g=c.source,h=0,v=e;return p&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),v=String(e).slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==e[c.lastIndex-1])&&(g="(?: "+g+")",v=" "+v,h++),n=new RegExp("^(?:"+g+")",d)),f&&(n=new RegExp("^"+g+"$(?!\\s)",d)),u&&(t=c.lastIndex),r=o.call(p?n:c,v),p?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),f&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i2)if(u=v(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+u}for(i=u.slice(2),o=i.length,s=0;sr)return NaN;return parseInt(i,a)}return+u};if(i(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,N=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof N&&(y?f((function(){x.valueOf.call(n)})):c(n)!=m)?u(new b(S(t)),n,N):S(t)},w=a?d(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),D=0;w.length>D;D++)s(b,E=w[D])&&!s(N,E)&&h(N,E,g(b,E));N.prototype=x,x.constructor=N,o(r,m,N)}},ac1f:function(e,t,n){"use strict";var a=n("23e7"),r=n("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var a=n("825a");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae61:function(e,t,n){"use strict";n("96b4")},b40d:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"padding24 color_white",attrs:{id:"study_data"}},[n("a-spin",{attrs:{spinning:e.spinning,size:"large",tip:e.tip}},[e.$route.meta.isShow?n("div",[n("div",{staticClass:"top"},[n("div",{staticClass:"top_left"}),n("div",{staticClass:"top_rigiht"},[n("span",[e._v(" 学习时间 : "),n("a-range-picker",{on:{change:e.onChangeDate}})],1),n("span",[e._v(" 至少学完 : "),n("a-input",{attrs:{placeholder:"请输入课节数"},on:{pressEnter:e.searchClick},model:{value:e.getData.finishLessonsCount,callback:function(t){e.$set(e.getData,"finishLessonsCount",t)},expression:"getData.finishLessonsCount"}})],1),n("span",[e._v(" 课程名称 : "),n("a-input",{attrs:{placeholder:"请输入课程名称"},on:{pressEnter:e.searchClick},model:{value:e.getData.courseName,callback:function(t){e.$set(e.getData,"courseName",t)},expression:"getData.courseName"}})],1),n("span",[n("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入用户账号"},on:{pressEnter:e.searchClick},model:{value:e.getData.userName,callback:function(t){e.$set(e.getData,"userName",t)},expression:"getData.userName"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),n("a-button",{attrs:{icon:"search",type:"primary",disabled:e.isDisableSearch},on:{click:e.searchClick}},[e._v(" 搜索 ")])],1)]),n("div",{staticClass:"btns"},[e.isShowCourse?n("a-button",{attrs:{icon:"export",type:"primary",disabled:e.isDisableCourse},on:{click:e.exportCourseClick}},[e._v(" 导出课程学习数据 ")]):e._e(),e.isShowLessons?n("a-button",{attrs:{icon:"export",type:"primary",disabled:e.isDisableLessons},on:{click:e.exportLessonsClick}},[e._v(" 导出课节学习数据 ")]):e._e()],1),n("a-table",{attrs:{columns:e.columns,"data-source":e.tableData,pagination:!1,loading:e.tableLoading},scopedSlots:e._u([{key:"userName",fn:function(t,a){return n("span",{},[n("span",{on:{click:function(t){return e.userClick(a)}}},[e._v(e._s(a.userName)+" ")])])}},{key:"imageUrl",fn:function(e,t){return n("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar",attrs:{src:t.imageUrl}})}},{key:"operation",fn:function(t,a){return n("span",{},[e.isShowDetail?n("a",{on:{click:function(t){return e.detailClick(a)}}},[e._v("详情")]):e._e()])}}],null,!1,3215856155)}),n("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!e.tableLoading,expression:"!tableLoading"}],attrs:{count:e.count,pageNo:e.getData.pageNo},on:{showSizeChangeFn:e.showSizeChangeFn}}),n("a-back-top",{attrs:{target:e.targetFn,visibilityHeight:100}})],1):e._e()]),n("router-view")],1)},r=[],i=(n("159b"),n("0401")),o=n("6ffe"),s=n("b893"),c={components:{MyPagination:o["a"]},created:function(){this.QueryLearnDataResultFn(),Object(s["a"])("/admin/course/learn/queryLearnDataDescResult")&&(this.isShowDetail=!0),Object(s["a"])("/admin/course/learn/exportLearnDataResult")&&(this.isShowCourse=!0),Object(s["a"])("/admin/course/learn/exportLearnDataDescResult")&&(this.isShowLessons=!0),Object(s["a"])("/admin/app/user/queryAdminUserInfos")&&(this.isShowUserList=!0)},data:function(){return{spinning:!1,tip:"",count:0,getData:{pageNo:1,pageSize:20,finishLessonsCount:"",courseName:"",userName:""},isDisableCourse:!1,isDisableLessons:!1,isDisableSearch:!1,tableLoading:!0,columns:[{title:"账号",dataIndex:"userName",key:"userName",width:"10%",scopedSlots:{customRender:"userName"}},{title:"头像",dataIndex:"imageUrl",key:"imageUrl",width:"6%",scopedSlots:{customRender:"imageUrl"}},{title:"昵称",dataIndex:"nickName",key:"nickName",width:"10%"},{title:"性别",dataIndex:"sexText",key:"sexText",width:"5%"},{title:"课程名称",dataIndex:"courseName",key:"courseName",width:"20%"},{title:"学习时长(min)",dataIndex:"learnTimeFormat",key:"learnTimeFormat",width:"6%"},{title:"学完课节数",dataIndex:"finishLessonsCount",key:"finishLessonsCount",width:"7%"},{title:"操作",key:"operation",dataIndex:"operation",width:"5%",scopedSlots:{customRender:"operation"}}],tableData:[],isShowDetail:!1,isShowCourse:!1,isShowLessons:!1,isShowUserList:!1}},methods:{onChangeDate:function(e,t){""!=t[0]?(this.getData.startTime=t[0]+" 00:00:00",this.getData.endTime=t[1]+" 23:59:59"):(this.getData.startTime="",this.getData.endTime="")},exportCourseClick:function(){var e=this;this.isDisableCourse=!0,setTimeout((function(){e.isDisableCourse=!1}),3e3),window.location.href="".concat(i["b"])},exportLessonsClick:function(){var e=this;this.isDisableLessons=!0,setTimeout((function(){e.isDisableLessons=!1}),3e3),window.location.href="".concat(i["a"])},searchClick:function(){var e=this;this.isDisableSearch=!0,setTimeout((function(){e.isDisableSearch=!1}),3e3),this.getData.pageNo=1,this.QueryLearnDataResultFn()},showSizeChangeFn:function(e,t){this.getData.pageNo=e,this.getData.pageSize=t,this.QueryLearnDataResultFn()},userClick:function(e){this.isShowUserList&&"——"!=e.userName&&(localStorage.setItem("phone",e.userName),location.href="/crm/clientManage")},detailClick:function(e){this.$router.push({path:"/crm/studyData/studyDetail",query:{nickName:e.nickName,userName:e.userName,courseName:e.courseName,courseNo:e.courseNo,userNo:e.userNo}})},QueryLearnDataResultFn:function(){var e=this;this.tableLoading=!0,Object(i["f"])(this.getData).then((function(t){var n=t.code,a=t.data;200==n&&(e.tableLoading=!1,a.data.forEach((function(e,t){e.key=t,e.userName=""==e.userName?"——":e.userName})),e.tableData=a.data,e.count=a.count)}))},targetFn:function(){return document.querySelector("#study_data")}}},u=c,l=(n("bf5e"),n("2877")),f=Object(l["a"])(u,a,r,!1,null,"2108a143",null);t["default"]=f.exports},b893:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f}));n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("d81d"),n("159b");var a,r=n("c1df"),i=n.n(r),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;a||(a=!0,setTimeout((function(){a=!1,"function"===typeof e&&e()}),t))},s=null,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;null!==s&&clearTimeout(s),s=setTimeout((function(){"function"===typeof e&&e()}),t)},u=function(e,t){var n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return t},l=function(e){var t=JSON.parse(localStorage.getItem("powerListArr")),n="";return t.map((function(t){t.children.forEach((function(t){t.code==e&&(n=e),t.children.forEach((function(t){t.code==e&&(n=e)}))}))})),n},f=function(e){return e&&e")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),l=i("replace"),f=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),p=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,l){var d=i(e),g=!r((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=g&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!g||!h||"replace"===e&&(!c||!u||f)||"split"===e&&!p){var v=/./[d],m=n(d,""[e],(function(e,t,n,a,r){return t.exec===RegExp.prototype.exec?g&&!r?{done:!0,value:v.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=m[0],x=m[1];a(String.prototype,e,b),a(RegExp.prototype,d,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}l&&o(RegExp.prototype[d],"sham",!0)}}}]); //# sourceMappingURL=studyData.f3bb7cb5.js.map