(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["addLessons"],{"05e6":function(e,t,n){"use strict";n("e492")},"0a49":function(e,t,n){},"0cb2":function(e,t,n){var a=n("7b0b"),o=Math.floor,i="".replace,r=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,l,c){var d=n+e.length,p=u.length,f=s;return void 0!==l&&(l=a(l),f=r),i.call(c,f,(function(a,i){var r;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":r=l[i.slice(1,-1)];break;default:var s=+i;if(0===s)return a;if(s>p){var c=o(s/10);return 0===c?a:c<=p?void 0===u[c-1]?i.charAt(1):u[c-1]+i.charAt(1):a}r=u[s-1]}return void 0===r?"":r}))}},"0cfa":function(e,t,n){},2532:function(e,t,n){"use strict";var a=n("23e7"),o=n("5a34"),i=n("1d80"),r=n("ab13");a({target:"String",proto:!0,forced:!r("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var a=n("6eeb"),o=n("825a"),i=n("d039"),r=n("ad6d"),s="toString",u=RegExp.prototype,l=u[s],c=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&a(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags,a=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?r.call(e):n);return"/"+t+"/"+a}),{unsafe:!0})},"29ba":function(e,t,n){},"300c":function(e,t,n){"use strict";n.d(t,"l",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return r})),n.d(t,"g",(function(){return s})),n.d(t,"n",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"s",(function(){return d})),n.d(t,"L",(function(){return p})),n.d(t,"S",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"R",(function(){return g})),n.d(t,"A",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"K",(function(){return y})),n.d(t,"J",(function(){return b})),n.d(t,"y",(function(){return C})),n.d(t,"Q",(function(){return w})),n.d(t,"I",(function(){return x})),n.d(t,"d",(function(){return T})),n.d(t,"F",(function(){return N})),n.d(t,"w",(function(){return F})),n.d(t,"V",(function(){return S})),n.d(t,"t",(function(){return _})),n.d(t,"M",(function(){return U})),n.d(t,"T",(function(){return k})),n.d(t,"u",(function(){return O})),n.d(t,"N",(function(){return L})),n.d(t,"x",(function(){return A})),n.d(t,"v",(function(){return $})),n.d(t,"P",(function(){return j})),n.d(t,"f",(function(){return M})),n.d(t,"z",(function(){return D})),n.d(t,"O",(function(){return E})),n.d(t,"U",(function(){return I})),n.d(t,"j",(function(){return P})),n.d(t,"k",(function(){return R})),n.d(t,"b",(function(){return B})),n.d(t,"r",(function(){return z})),n.d(t,"G",(function(){return q})),n.d(t,"C",(function(){return H})),n.d(t,"H",(function(){return G})),n.d(t,"D",(function(){return K})),n.d(t,"E",(function(){return W})),n.d(t,"o",(function(){return J})),n.d(t,"q",(function(){return V})),n.d(t,"a",(function(){return Y})),n.d(t,"B",(function(){return Q})),n.d(t,"wb",(function(){return X})),n.d(t,"xb",(function(){return Z})),n.d(t,"eb",(function(){return ee})),n.d(t,"db",(function(){return te})),n.d(t,"fb",(function(){return ne})),n.d(t,"Ib",(function(){return ae})),n.d(t,"Jb",(function(){return oe})),n.d(t,"ab",(function(){return ie})),n.d(t,"sb",(function(){return re})),n.d(t,"yb",(function(){return se})),n.d(t,"Rb",(function(){return ue})),n.d(t,"bb",(function(){return le})),n.d(t,"tb",(function(){return ce})),n.d(t,"zb",(function(){return de})),n.d(t,"Mb",(function(){return pe})),n.d(t,"Lb",(function(){return fe})),n.d(t,"Gb",(function(){return me})),n.d(t,"Hb",(function(){return ge})),n.d(t,"Fb",(function(){return he})),n.d(t,"Kb",(function(){return ve})),n.d(t,"Pb",(function(){return ye})),n.d(t,"Qb",(function(){return be})),n.d(t,"Ob",(function(){return Ce})),n.d(t,"Nb",(function(){return we})),n.d(t,"jb",(function(){return xe})),n.d(t,"hb",(function(){return Te})),n.d(t,"W",(function(){return Ne})),n.d(t,"ob",(function(){return Fe})),n.d(t,"Tb",(function(){return Se})),n.d(t,"Cb",(function(){return _e})),n.d(t,"nb",(function(){return Ue})),n.d(t,"cb",(function(){return ke})),n.d(t,"ub",(function(){return Oe})),n.d(t,"Ab",(function(){return Le})),n.d(t,"gb",(function(){return Ae})),n.d(t,"X",(function(){return $e})),n.d(t,"pb",(function(){return je})),n.d(t,"lb",(function(){return Me})),n.d(t,"Db",(function(){return De})),n.d(t,"ib",(function(){return Ee})),n.d(t,"Y",(function(){return Ie})),n.d(t,"qb",(function(){return Pe})),n.d(t,"mb",(function(){return Re})),n.d(t,"Eb",(function(){return Be})),n.d(t,"kb",(function(){return ze})),n.d(t,"vb",(function(){return qe})),n.d(t,"Bb",(function(){return He})),n.d(t,"Z",(function(){return Ge})),n.d(t,"Sb",(function(){return Ke})),n.d(t,"rb",(function(){return We}));var a=n("284b"),o=function(e){return a["a"].post("/admin/course/info/pageCourseInfo",e)},i=function(e){return a["a"].get("/admin/course/info/onLine",{params:e})},r=function(e){return a["a"].get("/admin/course/info/out",{params:e})},s=function(e){return a["a"].get("/admin/course/info/delete",{params:e})},u=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},l=function(e){return a["a"].get("/admin/course/label/select/getAllLabelsByType",{params:e})},c=function(e){return a["a"].get("/admin/course/info/shareCourseLink",{params:e})},d=function(e){return a["a"].post("/adminv2/catalogue/list",e)},p=function(e){return a["a"].post("/adminv2/catalogue/add",e)},f=function(e){return a["a"].post("/adminv2/catalogue/update",e)},m=function(e){return a["a"].post("/adminv2/catalogue/delete",e)},g=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},h=function(e){return a["a"].post("/admin/course/lessons/getCourseLessonsResult",e)},v=function(e){return a["a"].get("/admin/course/lessons/copyCourseLessonsLink",{params:e})},y=function(e){return a["a"].get("/admin/course/lessons/show",{params:e})},b=function(e){return a["a"].get("/admin/course/lessons/hide",{params:e})},C=function(e){return a["a"].get("/admin/course/lessons/getCourseLessonsDesResult",{params:e})},w=function(e){return a["a"].get("/admin/course/catalogue/select/showCatalogueByCourseNo",{params:e})},x=function(e){return a["a"].get("/admin/course/lessons/delete",{params:e})},T=function(e){return a["a"].post("/admin/course/catalogue/sortOperation",e)},N=function(e){return a["a"].get("/admin/course/info/getMasterTeacherNo",{params:e})},F=function(){return a["a"].post("/adminv2/getCategoryList")},S=function(e){return a["a"].post("/adminv2/updateCateStatus",e)},_=function(){return a["a"].post("/adminv2/getCateList")},U=function(e){return a["a"].post("/adminv2/saveCategory",e)},k=function(e){return a["a"].post("/adminv2/saveCategory",e)},O=function(e){return a["a"].post("/adminv2/getCateInfoDetail",e)},L=function(e){return a["a"].post("/adminv2/saveCourseInfoNew",e)},A=function(e){return a["a"].post("/adminv2/getCourseInfoNew",e)},$=function(e){return a["a"].post("/adminv2/getCourseAppShow ",e)},j=function(e){return a["a"].post("/adminv2/setCourseAppShow ",e)},M=function(e){return a["a"].post("/adminv2/getCourseAddInfo",e)},D=function(e){return a["a"].post("/adminv2/getLessonsInfo",e)},E=function(e){return a["a"].post("/adminv2/AddLessonsInfo",e)},I=function(e){return a["a"].post("/adminv2/AddLessonsInfo",e)},P=function(e){return a["a"].post("/adminv2/addCourseInfo",e)},R=function(e){return a["a"].post("/adminv2/addCourseInfo",e)},B=function(e){return a["a"].post("/adminv2/addOneAtlasInfo",e)},z=function(){return a["a"].post("/adminv2/getAtlasList")},q=function(e){return a["a"].post("/adminv2/getOneAtlasInfo",e)},H=function(){return a["a"].post("/adminv2/getFamilyList")},G=function(){return a["a"].post("/adminv2/getYearList")},K=function(e){return a["a"].post("/adminv2/getFamilyPeople",e)},W=function(){return a["a"].post("/adminv2/getIdentityList")},J=function(e){return a["a"].post("/adminv2/delPeople",e)},V=function(e){return a["a"].post("/adminv2/getAtlasLessonsList",e)},Y=function(e){return a["a"].post("adminv2/addCoursePlaybill",e)},Q=function(e){return a["a"].post("adminv2/getCoursePlaybill",e)},X=function(e){return a["a"].post("/adminv2/course/lessons/online",e)},Z=function(e){return a["a"].post("/adminv2/course/lessons/out",e)},ee=function(e){return a["a"].post("/adminv2/lessons/category/list",e)},te=function(e){return a["a"].post("/adminv2/lessons/category/add",e)},ne=function(e){return a["a"].post("/adminv2/lessons/category/update",e)},ae=function(e){return a["a"].post("/adminv2/studyplant/stage/list",e)},oe=function(e){return a["a"].post("/adminv2/studyplant/stage/switch",e)},ie=function(e){return a["a"].post("/adminv2/studyplant/stage/add",e)},re=function(e){return a["a"].post("/adminv2/studyplant/stage/edit",e)},se=function(e){return a["a"].post("/adminv2/studyplant/stage/putaway",e)},ue=function(e){return a["a"].post("/adminv2/studyplant/tags/list",e)},le=function(e){return a["a"].post("/adminv2/studyplant/tags/add",e)},ce=function(e){return a["a"].post("/adminv2/studyplant/tags/edit",e)},de=function(e){return a["a"].post("/adminv2/studyplant/tags/putaway",e)},pe=function(e){return a["a"].post("/adminv2/studyplant/tags/content/detail",e)},fe=function(e){return a["a"].post("/adminv2/studyplant/tags/content/set",e)},me=function(e){return a["a"].post("/adminv2/studyplant/tags/catalogue/list",e)},ge=function(e){return a["a"].post("/adminv2/studyplant/tags/catalogue/add",e)},he=function(e){return a["a"].post("/adminv2/studyplant/tags/catalogue/edit",e)},ve=function(e){return a["a"].post("/adminv2/studyplant/tags/catalogue/del",e)},ye=function(e){return a["a"].post("/adminv2/studyplant/tags/lessons/list",e)},be=function(e){return a["a"].post("/adminv2/studyplant/tags/lessons/add",e)},Ce=function(e){return a["a"].post("/adminv2/studyplant/tags/lessons/edit",e)},we=function(e){return a["a"].post("/adminv2/studyplant/tags/lessons/del",e)},xe=function(e){return a["a"].post("/adminv2/course/module/list",e)},Te=function(e){return a["a"].post("/adminv2/course/module/detail",e)},Ne=function(e){return a["a"].post("/adminv2/course/module/add",e)},Fe=function(e){return a["a"].post("/adminv2/course/module/edit",e)},Se=function(e){return a["a"].post("/adminv2/course/module/status",e)},_e=function(e){return a["a"].post("/adminv2/course/module/phone/list",e)},Ue=function(e){return a["a"].post("/adminv2/course/module/phone/delete",e)},ke=function(e){return a["a"].post("/adminv2/course/module/phone/add",e)},Oe=function(e){return a["a"].post("/adminv2/course/module/content/get",e)},Le=function(e){return a["a"].post("/adminv2/course/module/content/set",e)},Ae=function(e){return a["a"].post("/adminv2/course/module/catalogue/list",e)},$e=function(e){return a["a"].post("/adminv2/course/module/catalogue/add",e)},je=function(e){return a["a"].post("/adminv2/course/module/catalogue/edit",e)},Me=function(e){return a["a"].post("/adminv2/course/module/catalogue/delete",e)},De=function(e){return a["a"].post("/adminv2/course/module/catalogue/sort",e)},Ee=function(e){return a["a"].post("/adminv2/course/module/lessons/list",e)},Ie=function(e){return a["a"].post("/adminv2/course/module/lessons/add",e)},Pe=function(e){return a["a"].post("/adminv2/course/module/lessons/edit",e)},Re=function(e){return a["a"].post("/adminv2/course/module/lessons/delete",e)},Be=function(e){return a["a"].post("/adminv2/course/module/lessons/sort",e)},ze=function(e){return a["a"].post("/adminv2/course/module/stage/list",e)},qe=function(e){return a["a"].post("/adminv2/course/module/stage/descb/get",e)},He=function(e){return a["a"].post("/adminv2/course/module/stage/descb/set",e)},Ge=function(e){return a["a"].post("/adminv2/course/module/stage/add",e)},Ke=function(e){return a["a"].post("/adminv2/course/module/stage/status",e)},We=function(e){return a["a"].post("/adminv2/course/module/stage/edit",e)}},3835:function(e,t,n){"use strict";function a(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,o=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(a=(r=s.next()).done);a=!0)if(n.push(r.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{a||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}var i=n("06c5");function r(){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 s(e,t){return a(e)||o(e,t)||Object(i["a"])(e,t)||r()}},"432b":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("5530"),o=n("2f62"),i={computed:Object(a["a"])({},Object(o["b"])({sideCollapsed:function(e){return e.app.sideCollapsed}}))}},"4d63":function(e,t,n){var a=n("83ab"),o=n("da84"),i=n("94ca"),r=n("7156"),s=n("9bf2").f,u=n("241c").f,l=n("44e7"),c=n("ad6d"),d=n("9f7f"),p=n("6eeb"),f=n("d039"),m=n("69f3").set,g=n("2626"),h=n("b622"),v=h("match"),y=o.RegExp,b=y.prototype,C=/a/g,w=/a/g,x=new y(C)!==C,T=d.UNSUPPORTED_Y,N=a&&i("RegExp",!x||T||f((function(){return w[v]=!1,y(C)!=C||y(w)==w||"/a/i"!=y(C,"i")})));if(N){var F=function(e,t){var n,a=this instanceof F,o=l(e),i=void 0===t;if(!a&&o&&e.constructor===F&&i)return e;x?o&&!i&&(e=e.source):e instanceof F&&(i&&(t=c.call(e)),e=e.source),T&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=r(x?new y(e,t):y(e,t),a?this:b,F);return T&&n&&m(s,{sticky:n}),s},S=function(e){e in F||s(F,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},_=u(y),U=0;while(_.length>U)S(_[U++]);b.constructor=F,F.prototype=b,p(o,"RegExp",F)}g("RegExp")},"4de4":function(e,t,n){"use strict";var a=n("23e7"),o=n("b727").filter,i=n("1dde"),r=i("filter");a({target:"Array",proto:!0,forced:!r},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"508b":function(e,t,n){"use strict";n("9f3a")},5319:function(e,t,n){"use strict";var a=n("d784"),o=n("825a"),i=n("50c4"),r=n("a691"),s=n("1d80"),u=n("8aa5"),l=n("0cb2"),c=n("14c3"),d=Math.max,p=Math.min,f=function(e){return void 0===e?e:String(e)};a("replace",2,(function(e,t,n,a){var m=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=a.REPLACE_KEEPS_$0,h=m?"$":"$0";return[function(n,a){var o=s(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,a):t.call(String(o),n,a)},function(e,a){if(!m&&g||"string"===typeof a&&-1===a.indexOf(h)){var s=n(t,e,this,a);if(s.done)return s.value}var v=o(e),y=String(this),b="function"===typeof a;b||(a=String(a));var C=v.global;if(C){var w=v.unicode;v.lastIndex=0}var x=[];while(1){var T=c(v,y);if(null===T)break;if(x.push(T),!C)break;var N=String(T[0]);""===N&&(v.lastIndex=u(y,i(v.lastIndex),w))}for(var F="",S=0,_=0;_=S&&(F+=y.slice(S,k)+j,S=k+U.length)}return F+y.slice(S)}]}))},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");var a=n("ade3");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t0?e._l(e.imageUrlTow,(function(t,a){return""!=t?n("p",{key:a,staticStyle:{display:"flex",position:"relative","margin-right":"20px"},on:{mouseover:function(t){return e.changeActive(t)},mouseout:function(t){return e.removeActive(t)}}},[n("img",{staticClass:"upload_img",attrs:{src:t,alt:"avatar"}}),n("span",{on:{click:function(t){return e.remove(a)}}},[e._v("删除")])]):e._e()})):e._e()],2):n("a-upload",{attrs:{name:"avatar",listType:"picture-card",showUploadList:!1,beforeUpload:e.beforeUpload,customRequest:function(){},accept:"image/png,image/jpeg",disabled:e.readOnly},on:{change:e.handleChange}},[1===e.num&&e.imageUrl?n("img",{staticClass:"upload_img",attrs:{src:e.imageUrl,alt:"avatar"}}):e._e(),1===e.num&&!e.imageUrl||e.imageUrlTow&&e.imageUrlTow.lengtht.options.autoCropHeight?t.cropperMode=t.options.autoCropWidth+"px auto":e.width>=e.height?t.cropperMode="auto "+t.options.autoCropHeight+"px":t.cropperMode=t.options.autoCropWidth+"px auto"}},n},handleCropperSuccess:function(e){this.loading=!1,1!==this.num?(this.imageUrlTow.push(e.url),this.$emit("avatarfn",this.imageUrlTow,this.num)):this.$emit("avatarfn",e,this.num)},handleCropperClose:function(){this.loading=!1},getBase64:function(e,t){if(e){var n=new FileReader;n.addEventListener("load",(function(){return t(n.result)})),n.readAsDataURL(e)}}}},y=v,b=(n("05e6"),Object(m["a"])(y,a,o,!1,null,"a148c814",null));t["a"]=b.exports},b64b:function(e,t,n){var a=n("23e7"),o=n("7b0b"),i=n("df75"),r=n("d039"),s=r((function(){i(1)}));a({target:"Object",stat:!0,forced:s},{keys:function(e){return i(o(e))}})},b893:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d}));n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("d81d"),n("159b");var a,o=n("c1df"),i=n.n(o),r=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,u=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)},l=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},c=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},d=function(e){return e&&e=1){if(this.isDisabled=!1,e.fileList[0].response){var t=e.fileList[0].response,n=t.code,a=t.data;200===n&&(this.musicUrl=a.url,c["a"].success("上传成功"),this.$emit("audioFn",a))}}else this.isDisabled=!0},beforeUpload:function(e){return console.log(e),this.$emit("audioLoadingFn",!0),Promise.all([this.checkType(e,["audio/mpeg"])])},checkType:function(e,t){var n=this;return new Promise((function(a,o){t.includes(e.type)?a():(n.$message.error("音频文件类型错误,请重新上传"),n.$emit("audioLoadingFn",!1),o())}))},getDuration:function(){var e=this.$refs.audio.duration;this.$emit("audioTime",e)},updateTime:function(e){},mouseover:function(){this.fileName&&(this.isShowTips=!0)},mouseLeave:function(){this.isShowTips=!1}}}),_=S,U=(n("cd1d"),Object(b["a"])(_,N,F,!1,null,"13823fe9",null)),k=U.exports,O=n("5497"),L=n("b073"),A=n("44de9"),$=n("40a7"),j=n("c1df"),M=n.n(j),D=n("b893"),E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"maxBox"},[n("div",{staticClass:"imgClass"},[e.imgUrl?[n("div",{staticClass:"box",on:{mouseenter:e.handleMouse,mouseleave:function(t){e.indexChange=!1}}},[n("img",{attrs:{src:e.imgUrl,alt:""}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.indexChange,expression:"indexChange"}],staticClass:"mark",on:{click:e.circleClick}},[e._v("删除")])])]:n("div",{staticClass:"updClass"},[n("a-icon",{attrs:{type:"plus"}}),n("span",[e._v("上传图片")]),n("input",{ref:"upFile",attrs:{type:"file",accept:"image/png,image/jpg,image/jpeg"},on:{change:function(t){return e.File()}}})],1)],2)])])},I=[],P=(n("a9e3"),n("b0c0"),n("466d"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),{props:{imageUrlNum:{type:Number,default:""},imgUrl:{type:String,default:""},avatarTextBottom:{type:String,default:"图片小于1M"},urlSize:{type:Number,default:500},sizeWh:{type:Number,default:0},itemIndex:{type:Number,default:0}},data:function(){return{isShow:!1,indexChange:!1,action:"".concat(m["a"],"/admin/files/upload/images")}},methods:{circleClick:function(){this.$emit("circlefns")},handleMouse:function(){this.indexChange=!0},File:function(){var e=this,t=this.urlSize,n=this.$refs.upFile.files[0];if(n.size>1024*t)return c["a"].warning("图片大小不能超过500k"),!1;var a=new FileReader;a.readAsDataURL(n),a.onload=function(t){if(1==e.sizeWh){var a=0,o=0,i=new Image;i.src=t.target.result,i.onload=function(){a=this.width,o=this.height},setTimeout((function(){if(console.log(a,o),a>650||o>1e3)return c["a"].warning("请上传小于等于650*1000图片!"),!1;var i=e.dataURLtoFile(t.target.result,n.name),r=new window.FormData;r.append("uploadFile",i),h.a.post("".concat(m["a"],"/admin/files/upload/images"),r).then((function(t){200==t.data.code&&(e.imgUrl=t.data.data.url,e.$emit("avatarfns",e.imgUrl,e.itemIndex))}))}),1e3)}else{var r=e.dataURLtoFile(t.target.result,n.name),s=new window.FormData;s.append("uploadFile",r),h.a.post("".concat(m["a"],"/admin/files/upload/images"),s).then((function(t){200==t.data.code&&(e.imgUrl=t.data.data.url,e.$emit("avatarfns",e.imgUrl,e.itemIndex))}))}}},dataURLtoFile:function(e,t){var n=e.split(","),a=n[0].match(/:(.*?);/)[1],o=atob(n[1]),i=o.length,r=new Uint8Array(i);while(i--)r[i]=o.charCodeAt(i);return new File([r],t,{type:a})}},mounted:function(){}}),R=P,B=(n("55e2"),Object(b["a"])(R,E,I,!1,null,"20b52b8e",null)),z=B.exports,q={audio:{value:3,text:"音频"},video:{value:1,text:"视频"}},H={audio:{value:1,text:"音频",mediaType:[".mp3"]},video:{value:2,text:"视频",mediaType:[".mp4"]}},G=(a={},Object(s["a"])(a,H.audio.value,q.audio),Object(s["a"])(a,H.video.value,q.video),a),K=(o={},Object(s["a"])(o,q.audio.value,H.audio),Object(s["a"])(o,q.video.value,H.video),o),W={mixins:[u["a"]],created:function(){var e=this,t=this.$route.params.id;this.form.courseNo=localStorage.getItem("courseNo"),this.catalogueFlag=localStorage.getItem("catalogueFlag"),"0"!==t?this.GetCourseLessonsDesResultFn():"0"==t&&Object(x["F"])({courseNo:this.form.courseNo}).then((function(t){var n=t.code,a=t.data;200==n&&(e.form.teacherNo=a.masterTeacherNo)})),this.lessonsTypeArr=[{key:q.audio.value,value:q.audio.text},{key:q.video.value,value:q.video.text}],this.teacherSelectFn(),"1"==this.catalogueFlag&&this.ShowCatalogueByCourseNoFn(this.form.courseNo),this.changeUploadType(),this.ClassClassification()},components:{Audio:k,CropperUpload:L["a"],Ueditor:A["a"],FooterToolBar:l["a"],QiniuVideoAudio:O["a"],CropperPdf:w,UpdataImg:z},data:function(){return{classification:[],qiniuVideoAudio:!0,manuscriptList:[{text:"",type:1}],oldFileNameMp4Show:!1,oldFileNameMp3Show:!1,label:{coverUrlLabel:"音频封面",descriptionLabel:"音频详情"},courseType:1,locale:$["a"],dateFormat:"YYYY-MM-DD HH:mm:ss",defaultTime:null,radioStyle:{display:"block",height:"30px",lineHeight:"30px"},radioStyle11:{height:"30px",lineHeight:"30px"},catalogueFlag:0,lessonsTypeArr:[],teacherNoArr:[{labelNo:"",labelText:"张三"}],catalogueNoArr:[{labelNo:"",labelText:"无章节"}],keepLoading:!1,isShowPointType:!1,form:{courseNo:"",lessonsType:1,name:"",brief:"",teacherNo:void 0,catalogueNo:void 0,fileCosKey:"",oldFileName:"",videoTime:0,fileUrl:"",pointType:1,coverUrl:"",coverCosKey:"",description:"",studyFlag:0,putawayFlag:2,putawayTime:null,hideFlag:0,fileSize:null,pairedDes:"",pdfUrl:"",pdfOldFileName:"",appendix:[],lessonsCategories:[],manuscript:[]},rules:{lessonsType:[{required:!0,message:"请选择课节类型",trigger:"change"}],oldFileName:[{required:!0,message:""}],oldFileNameMp3:[{required:!0,message:""}],name:[{required:!0,message:"输入的内容不能为空",trigger:"blur"},{max:32,message:"长度最大为32个",trigger:"blur"}],teacherNo:[{required:!0,message:"请选择主讲老师",trigger:"change"}],catalogueNo:[{required:!0,message:"请选择所属章节",trigger:"change"}],pointType:[{required:!0,message:"请选择打点类型"}],coverUrl:[{required:!0,message:"请上传音频封面"}],studyFlag:[{required:!0}],putawayFlag:[{required:!0}],hideFlag:[{required:!0}]},coverOptionsAudio:{autoCrop:!0,autoCropWidth:370,autoCropHeight:426,fixedBox:!0,previewsCircle:!1,title:"修改图片"}}},computed:{currCatalogueType:function(){var e=this.form.catalogueNo,t=(this.catalogueNoArr,this.getCurrCatalogueType(e));return t}},methods:{moment:M.a,typeChange:function(e){this.manuscriptList[e].text=""},plusClick:function(){var e={text:"",type:1};this.manuscriptList.push(e)},minusClick:function(e,t){this.manuscriptList.splice(e,1)},goodSentenceUrlFn:function(e,t){this.manuscriptList[t].text=e},deldteImgFn:function(e){this.manuscriptList[e].text=""},uploadOk:function(e){this.form.pdfUrl=e.url,this.form.pdfOldFileName=e.oldFileName},changeUploadType:function(e){3==this.form.lessonsType?(this.form.lessonsType=3,this.label.coverUrlLabel="音频封面",this.label.descriptionLabel="音频详情",this.rules.coverUrl=[{required:!0,message:"请上传音频封面"}]):1==this.form.lessonsType&&(this.form.lessonsType=1,this.label.coverUrlLabel="视频封面",this.label.descriptionLabel="视频详情",this.rules.coverUrl=[{required:!0,message:"请上传视频封面"}])},lessonsTypeChange:function(e){var t=this;this.qiniuVideoAudio=!1,setTimeout((function(){t.qiniuVideoAudio=!0}),200),this.form.lessonsType=e,this.changeUploadType(this.currCatalogueType)},teacherNoChange:function(e){this.form.teacherNo=e},checkCatalogueType:function(e){var t=G[e];if(t.value===this.form.lessonsType)return!0;var n="所选章节仅支持".concat(t.text,"类型");return c["a"].error(n),!1},findByCatalogueNo:function(e){var t=this.catalogueNoArr.filter((function(t){return t.labelNo===e}));return t.length?t[0]:{}},getCurrCatalogueType:function(e){var t=this.findByCatalogueNo(e);return t.labelType},getCatalogueTypeByLessonType:function(e){var t;return e&&(t=K[e].value),t},catalogueNoChange:function(e){this.form.catalogueNo=e},pointTypeChange:function(e){this.form.pointType=e.target.value},coverUrlFn:function(e){this.form.coverUrl=e.url,this.form.coverCosKey=e.cosKey},videoFn:function(e){var t=this;setTimeout((function(){t.keepLoading=!1}),2e3),this.form.oldFileName=e.oldFileName,this.form.fileCosKey=e.fileCosKey,this.form.fileUrl=e.fileUrl,this.form.videoTime=parseInt(e.videoTime),this.form.fileSize=e.fileSize},audioFn:function(e){var t=this;this.form.appendix=[],setTimeout((function(){t.keepLoading=!1}),2e3);var n={appendixName:e.oldFileName,appendixCosKey:e.fileCosKey,appendixUrl:e.fileUrl,appendixTime:parseInt(e.videoTime),fileSizeMp3:e.fileSize};this.form.appendix.push(n),console.log(this.form.appendix),this.form.appendixName=e.oldFileName,this.form.appendixCosKey=e.fileCosKey,this.form.appendixUrl=e.fileUrl,this.form.appendixTime=parseInt(e.videoTime),this.form.fileSizeMp3=e.fileSize},changeOldFileName:function(e){this.form.oldFileName=e},changeOldFileNameMp3:function(e){this.form.appendixName=e},editorFn:function(e){this.form.description=e},pairedDeseditorFn:function(e){this.form.pairedDes=e},pairedDeseditorFnNew:function(e){this.form.manuscript=e},studyFlagChange:function(e){this.form.studyFlag=e.target.value},putawayFlagChange:function(e){this.form.putawayFlag=e.target.value},putawayTimeChange:function(e,t){this.form.putawayTime=e},putawayTimeOk:function(e){this.form.putawayTime=e},hideFlagChange:function(e){this.form.hideFlag=e.target.value},keepClick:function(){var e=this;if(this.keepLoading=!0,setTimeout((function(){e.keepLoading=!1}),3e3),1!=this.form.putawayFlag||""!=this.form.putawayTime&&null!=this.form.putawayTime){if(this.form.putawayTime=Object(D["d"])(new Date(this.form.putawayTime),"yyyy-MM-dd HH:mm:ss"),"1970-01-01 08:00:00"!=this.form.putawayTime&&"NaN-aN-aN aN:aN:aN"!=this.form.putawayTime||(this.form.putawayTime=""),!this.form.oldFileName)return this.oldFileNameMp4Show=!0,!1;if(this.oldFileNameMp4Show=!1,!this.form.oldFileName)return this.oldFileNameMp4Show=!0,!1;this.oldFileNameMp4Show=!1,this.$refs.ruleForm.validate((function(t){t?(console.log(e.form),e.form.manuscript=e.manuscriptList,0!=e.form.putawayFlag?0!=e.$route.params.id?Object(x["U"])(e.form).then((function(e){var t=e.code,n=e.msg;200==t?(c["a"].success("编辑成功"),location.href="/coursManage/courseList/contentManage"):c["a"].error(n)})):Object(x["O"])(e.form).then((function(t){var n=t.code,a=t.msg;200==n?(c["a"].success("新增成功"),e.$router.go(-1)):c["a"].error(a)})):c["a"].error("请选择上架设置")):(console.log(t),c["a"].error("还有必填项未完成"))}))}else c["a"].error("请选择上架时间")},GetCourseLessonsDesResultFn:function(){var e=this,t=this.$route.params.id;Object(x["z"])({lessonNo:t}).then((function(t){var n=t.code,a=t.data;if(200==n){e.form=a,e.manuscriptList=a.manuscript,e.form.appendixName=a.appendix[0].appendixName;var o=e.getCatalogueTypeByLessonType(e.form.lessonsType);e.changeUploadType(o)}}))},teacherSelectFn:function(){var e=this;Object(x["n"])().then((function(t){var n=t.code,a=t.data;200==n&&(e.teacherNoArr=a)}))},ShowCatalogueByCourseNoFn:function(e){var t=this;Object(x["Q"])({courseNo:e}).then((function(e){var n=e.code,a=e.data;200==n&&(t.catalogueNoArr=a)}))},ClassClassification:function(){var e=this;Object(x["eb"])().then((function(t){var n=t.code,a=t.data;200==n&&(e.classification=a.list)}))},DictionaryFn:function(){var e=this;Object(T["a"])().then((function(t){var n=t.code,a=t.data;200==n&&(e.lessonsTypeArr=a.lessonsType)}))}}},J=W,V=(n("e8f9"),Object(b["a"])(J,i,r,!1,null,"4ff9093e",null));t["default"]=V.exports},dbb4:function(e,t,n){var a=n("23e7"),o=n("83ab"),i=n("56ef"),r=n("fc6a"),s=n("06cf"),u=n("8418");a({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,a=r(e),o=s.f,l=i(a),c={},d=0;while(l.length>d)n=o(a,t=l[d++]),void 0!==n&&u(c,t,n);return c}})},e439:function(e,t,n){var a=n("23e7"),o=n("d039"),i=n("fc6a"),r=n("06cf").f,s=n("83ab"),u=o((function(){r(1)})),l=!s||u;a({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return r(i(e),t)}})},e492:function(e,t,n){},e8f9:function(e,t,n){"use strict";n("0a49")}}]); //# sourceMappingURL=addLessons.7b182622.js.map