(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["addSourse"],{"05e6":function(t,e,r){"use strict";r("e492")},"0cb2":function(t,e,r){var a=r("7b0b"),n=Math.floor,o="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,u,l,c){var d=r+t.length,p=u.length,f=s;return void 0!==l&&(l=a(l),f=i),o.call(c,f,(function(a,o){var i;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(d);case"<":i=l[o.slice(1,-1)];break;default:var s=+o;if(0===s)return a;if(s>p){var c=n(s/10);return 0===c?a:c<=p?void 0===u[c-1]?o.charAt(1):u[c-1]+o.charAt(1):a}i=u[s-1]}return void 0===i?"":i}))}},"25f0":function(t,e,r){"use strict";var a=r("6eeb"),n=r("825a"),o=r("d039"),i=r("ad6d"),s="toString",u=RegExp.prototype,l=u[s],c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&a(RegExp.prototype,s,(function(){var t=n(this),e=String(t.source),r=t.flags,a=String(void 0===r&&t instanceof RegExp&&!("flags"in u)?i.call(t):r);return"/"+e+"/"+a}),{unsafe:!0})},"26ac":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"avatatImg"},[r("a-upload",{staticClass:"avatar-uploader",attrs:{name:"uploadFile","list-type":"picture-card","show-upload-list":!1,action:t.action,"before-upload":t.beforeUpload,disabled:t.isDiabled},on:{change:t.handleChange}},[t.imageUrl?r("img",{staticClass:"avatar",attrs:{src:t.imageUrl,alt:"头像"}}):r("div",[r("a-icon",{attrs:{type:t.loading?"loading":"plus"}}),r("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]),r("div",{staticClass:"text"},[r("div",[t._v(t._s(t.avatarTextTop))]),r("div",[t._v(t._s(t.avatarTextBottom))])])],1)])},n=[],o=r("f64c"),i=r("f121");function s(t,e){var r=new FileReader;r.addEventListener("load",(function(){return e(r.result)})),r.readAsDataURL(t)}var u={props:{imageUrl:{type:String,default:""},avatarTextTop:{type:String,default:"推荐使用160*160px,JPG.PNG.JPEG格式"},avatarTextBottom:{type:String,default:"图片小于1M"}},data:function(){return{action:"".concat(i["a"],"/admin/files/upload/images"),loading:"",isDiabled:!1}},methods:{handleChange:function(t){var e=this;if(this.isDiabled=!0,setTimeout((function(){e.isDiabled=!1}),3e3),"uploading"!==t.file.status){"done"===t.file.status&&s(t.file.originFileObj,(function(t){e.loading=!1}));var r=t.file.response,a=r.code,n=r.data;200===a&&(this.isDiabled=!1,this.$emit("avatarfn",n))}else this.loading=!0},beforeUpload:function(t){this.$emit("avatarLoadingFn",!0);var e="image/jpeg"===t.type||"image/png"===t.type;return e||o["a"].error("不能上传其他类型的图片"),e}}},l=u,c=(r("be63"),r("2877")),d=Object(c["a"])(l,a,n,!1,null,"6b8c5b0c",null);e["a"]=d.exports},"300c":function(t,e,r){"use strict";r.d(e,"l",(function(){return n})),r.d(e,"h",(function(){return o})),r.d(e,"i",(function(){return i})),r.d(e,"g",(function(){return s})),r.d(e,"n",(function(){return u})),r.d(e,"p",(function(){return l})),r.d(e,"m",(function(){return c})),r.d(e,"s",(function(){return d})),r.d(e,"L",(function(){return p})),r.d(e,"S",(function(){return f})),r.d(e,"c",(function(){return m})),r.d(e,"R",(function(){return g})),r.d(e,"A",(function(){return h})),r.d(e,"e",(function(){return v})),r.d(e,"K",(function(){return b})),r.d(e,"J",(function(){return y})),r.d(e,"y",(function(){return C})),r.d(e,"Q",(function(){return w})),r.d(e,"I",(function(){return x})),r.d(e,"d",(function(){return U})),r.d(e,"F",(function(){return T})),r.d(e,"w",(function(){return _})),r.d(e,"V",(function(){return N})),r.d(e,"t",(function(){return F})),r.d(e,"M",(function(){return S})),r.d(e,"T",(function(){return k})),r.d(e,"u",(function(){return O})),r.d(e,"N",(function(){return L})),r.d(e,"x",(function(){return $})),r.d(e,"v",(function(){return P})),r.d(e,"P",(function(){return R})),r.d(e,"f",(function(){return A})),r.d(e,"z",(function(){return I})),r.d(e,"O",(function(){return E})),r.d(e,"U",(function(){return j})),r.d(e,"j",(function(){return M})),r.d(e,"k",(function(){return D})),r.d(e,"b",(function(){return B})),r.d(e,"r",(function(){return G})),r.d(e,"G",(function(){return H})),r.d(e,"C",(function(){return q})),r.d(e,"H",(function(){return Q})),r.d(e,"D",(function(){return W})),r.d(e,"E",(function(){return K})),r.d(e,"o",(function(){return z})),r.d(e,"q",(function(){return J})),r.d(e,"a",(function(){return Y})),r.d(e,"B",(function(){return X})),r.d(e,"wb",(function(){return V})),r.d(e,"xb",(function(){return Z})),r.d(e,"eb",(function(){return tt})),r.d(e,"db",(function(){return et})),r.d(e,"fb",(function(){return rt})),r.d(e,"Ib",(function(){return at})),r.d(e,"Jb",(function(){return nt})),r.d(e,"ab",(function(){return ot})),r.d(e,"sb",(function(){return it})),r.d(e,"yb",(function(){return st})),r.d(e,"Rb",(function(){return ut})),r.d(e,"bb",(function(){return lt})),r.d(e,"tb",(function(){return ct})),r.d(e,"zb",(function(){return dt})),r.d(e,"Mb",(function(){return pt})),r.d(e,"Lb",(function(){return ft})),r.d(e,"Gb",(function(){return mt})),r.d(e,"Hb",(function(){return gt})),r.d(e,"Fb",(function(){return ht})),r.d(e,"Kb",(function(){return vt})),r.d(e,"Pb",(function(){return bt})),r.d(e,"Qb",(function(){return yt})),r.d(e,"Ob",(function(){return Ct})),r.d(e,"Nb",(function(){return wt})),r.d(e,"jb",(function(){return xt})),r.d(e,"hb",(function(){return Ut})),r.d(e,"W",(function(){return Tt})),r.d(e,"ob",(function(){return _t})),r.d(e,"Tb",(function(){return Nt})),r.d(e,"Cb",(function(){return Ft})),r.d(e,"nb",(function(){return St})),r.d(e,"cb",(function(){return kt})),r.d(e,"ub",(function(){return Ot})),r.d(e,"Ab",(function(){return Lt})),r.d(e,"gb",(function(){return $t})),r.d(e,"X",(function(){return Pt})),r.d(e,"pb",(function(){return Rt})),r.d(e,"lb",(function(){return At})),r.d(e,"Db",(function(){return It})),r.d(e,"ib",(function(){return Et})),r.d(e,"Y",(function(){return jt})),r.d(e,"qb",(function(){return Mt})),r.d(e,"mb",(function(){return Dt})),r.d(e,"Eb",(function(){return Bt})),r.d(e,"kb",(function(){return Gt})),r.d(e,"vb",(function(){return Ht})),r.d(e,"Bb",(function(){return qt})),r.d(e,"Z",(function(){return Qt})),r.d(e,"Sb",(function(){return Wt})),r.d(e,"rb",(function(){return Kt}));var a=r("284b"),n=function(t){return a["a"].post("/admin/course/info/pageCourseInfo",t)},o=function(t){return a["a"].get("/admin/course/info/onLine",{params:t})},i=function(t){return a["a"].get("/admin/course/info/out",{params:t})},s=function(t){return a["a"].get("/admin/course/info/delete",{params:t})},u=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},l=function(t){return a["a"].get("/admin/course/label/select/getAllLabelsByType",{params:t})},c=function(t){return a["a"].get("/admin/course/info/shareCourseLink",{params:t})},d=function(t){return a["a"].post("/adminv2/catalogue/list",t)},p=function(t){return a["a"].post("/adminv2/catalogue/add",t)},f=function(t){return a["a"].post("/adminv2/catalogue/update",t)},m=function(t){return a["a"].post("/adminv2/catalogue/delete",t)},g=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},h=function(t){return a["a"].post("/admin/course/lessons/getCourseLessonsResult",t)},v=function(t){return a["a"].get("/admin/course/lessons/copyCourseLessonsLink",{params:t})},b=function(t){return a["a"].get("/admin/course/lessons/show",{params:t})},y=function(t){return a["a"].get("/admin/course/lessons/hide",{params:t})},C=function(t){return a["a"].get("/admin/course/lessons/getCourseLessonsDesResult",{params:t})},w=function(t){return a["a"].get("/admin/course/catalogue/select/showCatalogueByCourseNo",{params:t})},x=function(t){return a["a"].get("/admin/course/lessons/delete",{params:t})},U=function(t){return a["a"].post("/admin/course/catalogue/sortOperation",t)},T=function(t){return a["a"].get("/admin/course/info/getMasterTeacherNo",{params:t})},_=function(){return a["a"].post("/adminv2/getCategoryList")},N=function(t){return a["a"].post("/adminv2/updateCateStatus",t)},F=function(){return a["a"].post("/adminv2/getCateList")},S=function(t){return a["a"].post("/adminv2/saveCategory",t)},k=function(t){return a["a"].post("/adminv2/saveCategory",t)},O=function(t){return a["a"].post("/adminv2/getCateInfoDetail",t)},L=function(t){return a["a"].post("/adminv2/saveCourseInfoNew",t)},$=function(t){return a["a"].post("/adminv2/getCourseInfoNew",t)},P=function(t){return a["a"].post("/adminv2/getCourseAppShow ",t)},R=function(t){return a["a"].post("/adminv2/setCourseAppShow ",t)},A=function(t){return a["a"].post("/adminv2/getCourseAddInfo",t)},I=function(t){return a["a"].post("/adminv2/getLessonsInfo",t)},E=function(t){return a["a"].post("/adminv2/AddLessonsInfo",t)},j=function(t){return a["a"].post("/adminv2/AddLessonsInfo",t)},M=function(t){return a["a"].post("/adminv2/addCourseInfo",t)},D=function(t){return a["a"].post("/adminv2/addCourseInfo",t)},B=function(t){return a["a"].post("/adminv2/addOneAtlasInfo",t)},G=function(){return a["a"].post("/adminv2/getAtlasList")},H=function(t){return a["a"].post("/adminv2/getOneAtlasInfo",t)},q=function(){return a["a"].post("/adminv2/getFamilyList")},Q=function(){return a["a"].post("/adminv2/getYearList")},W=function(t){return a["a"].post("/adminv2/getFamilyPeople",t)},K=function(){return a["a"].post("/adminv2/getIdentityList")},z=function(t){return a["a"].post("/adminv2/delPeople",t)},J=function(t){return a["a"].post("/adminv2/getAtlasLessonsList",t)},Y=function(t){return a["a"].post("adminv2/addCoursePlaybill",t)},X=function(t){return a["a"].post("adminv2/getCoursePlaybill",t)},V=function(t){return a["a"].post("/adminv2/course/lessons/online",t)},Z=function(t){return a["a"].post("/adminv2/course/lessons/out",t)},tt=function(t){return a["a"].post("/adminv2/lessons/category/list",t)},et=function(t){return a["a"].post("/adminv2/lessons/category/add",t)},rt=function(t){return a["a"].post("/adminv2/lessons/category/update",t)},at=function(t){return a["a"].post("/adminv2/studyplant/stage/list",t)},nt=function(t){return a["a"].post("/adminv2/studyplant/stage/switch",t)},ot=function(t){return a["a"].post("/adminv2/studyplant/stage/add",t)},it=function(t){return a["a"].post("/adminv2/studyplant/stage/edit",t)},st=function(t){return a["a"].post("/adminv2/studyplant/stage/putaway",t)},ut=function(t){return a["a"].post("/adminv2/studyplant/tags/list",t)},lt=function(t){return a["a"].post("/adminv2/studyplant/tags/add",t)},ct=function(t){return a["a"].post("/adminv2/studyplant/tags/edit",t)},dt=function(t){return a["a"].post("/adminv2/studyplant/tags/putaway",t)},pt=function(t){return a["a"].post("/adminv2/studyplant/tags/content/detail",t)},ft=function(t){return a["a"].post("/adminv2/studyplant/tags/content/set",t)},mt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/list",t)},gt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/add",t)},ht=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/edit",t)},vt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/del",t)},bt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/list",t)},yt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/add",t)},Ct=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/edit",t)},wt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/del",t)},xt=function(t){return a["a"].post("/adminv2/course/module/list",t)},Ut=function(t){return a["a"].post("/adminv2/course/module/detail",t)},Tt=function(t){return a["a"].post("/adminv2/course/module/add",t)},_t=function(t){return a["a"].post("/adminv2/course/module/edit",t)},Nt=function(t){return a["a"].post("/adminv2/course/module/status",t)},Ft=function(t){return a["a"].post("/adminv2/course/module/phone/list",t)},St=function(t){return a["a"].post("/adminv2/course/module/phone/delete",t)},kt=function(t){return a["a"].post("/adminv2/course/module/phone/add",t)},Ot=function(t){return a["a"].post("/adminv2/course/module/content/get",t)},Lt=function(t){return a["a"].post("/adminv2/course/module/content/set",t)},$t=function(t){return a["a"].post("/adminv2/course/module/catalogue/list",t)},Pt=function(t){return a["a"].post("/adminv2/course/module/catalogue/add",t)},Rt=function(t){return a["a"].post("/adminv2/course/module/catalogue/edit",t)},At=function(t){return a["a"].post("/adminv2/course/module/catalogue/delete",t)},It=function(t){return a["a"].post("/adminv2/course/module/catalogue/sort",t)},Et=function(t){return a["a"].post("/adminv2/course/module/lessons/list",t)},jt=function(t){return a["a"].post("/adminv2/course/module/lessons/add",t)},Mt=function(t){return a["a"].post("/adminv2/course/module/lessons/edit",t)},Dt=function(t){return a["a"].post("/adminv2/course/module/lessons/delete",t)},Bt=function(t){return a["a"].post("/adminv2/course/module/lessons/sort",t)},Gt=function(t){return a["a"].post("/adminv2/course/module/stage/list",t)},Ht=function(t){return a["a"].post("/adminv2/course/module/stage/descb/get",t)},qt=function(t){return a["a"].post("/adminv2/course/module/stage/descb/set",t)},Qt=function(t){return a["a"].post("/adminv2/course/module/stage/add",t)},Wt=function(t){return a["a"].post("/adminv2/course/module/stage/status",t)},Kt=function(t){return a["a"].post("/adminv2/course/module/stage/edit",t)}},"3e7c":function(t,e,r){"use strict";r("de85")},"432b":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var a=r("5530"),n=r("2f62"),o={computed:Object(a["a"])({},Object(n["b"])({sideCollapsed:function(t){return t.app.sideCollapsed}}))}},"481e":function(t,e,r){},"4d63":function(t,e,r){var a=r("83ab"),n=r("da84"),o=r("94ca"),i=r("7156"),s=r("9bf2").f,u=r("241c").f,l=r("44e7"),c=r("ad6d"),d=r("9f7f"),p=r("6eeb"),f=r("d039"),m=r("69f3").set,g=r("2626"),h=r("b622"),v=h("match"),b=n.RegExp,y=b.prototype,C=/a/g,w=/a/g,x=new b(C)!==C,U=d.UNSUPPORTED_Y,T=a&&o("RegExp",!x||U||f((function(){return w[v]=!1,b(C)!=C||b(w)==w||"/a/i"!=b(C,"i")})));if(T){var _=function(t,e){var r,a=this instanceof _,n=l(t),o=void 0===e;if(!a&&n&&t.constructor===_&&o)return t;x?n&&!o&&(t=t.source):t instanceof _&&(o&&(e=c.call(t)),t=t.source),U&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,"")));var s=i(x?new b(t,e):b(t,e),a?this:y,_);return U&&r&&m(s,{sticky:r}),s},N=function(t){t in _||s(_,t,{configurable:!0,get:function(){return b[t]},set:function(e){b[t]=e}})},F=u(b),S=0;while(F.length>S)N(F[S++]);y.constructor=_,_.prototype=y,p(n,"RegExp",_)}g("RegExp")},"4de4":function(t,e,r){"use strict";var a=r("23e7"),n=r("b727").filter,o=r("1dde"),i=o("filter");a({target:"Array",proto:!0,forced:!i},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},"508b":function(t,e,r){"use strict";r("9f3a")},5319:function(t,e,r){"use strict";var a=r("d784"),n=r("825a"),o=r("50c4"),i=r("a691"),s=r("1d80"),u=r("8aa5"),l=r("0cb2"),c=r("14c3"),d=Math.max,p=Math.min,f=function(t){return void 0===t?t:String(t)};a("replace",2,(function(t,e,r,a){var m=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=a.REPLACE_KEEPS_$0,h=m?"$":"$0";return[function(r,a){var n=s(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,n,a):e.call(String(n),r,a)},function(t,a){if(!m&&g||"string"===typeof a&&-1===a.indexOf(h)){var s=r(e,t,this,a);if(s.done)return s.value}var v=n(t),b=String(this),y="function"===typeof a;y||(a=String(a));var C=v.global;if(C){var w=v.unicode;v.lastIndex=0}var x=[];while(1){var U=c(v,b);if(null===U)break;if(x.push(U),!C)break;var T=String(U[0]);""===T&&(v.lastIndex=u(b,o(v.lastIndex),w))}for(var _="",N=0,F=0;F=N&&(_+=b.slice(N,k)+R,N=k+S.length)}return _+b.slice(N)}]}))},5530:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("b64b"),r("a4d3"),r("4de4"),r("e439"),r("159b"),r("dbb4");var a=r("ade3");function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function o(t){for(var e=1;e0||t.readOnly?t._l(t.imgUrl,(function(e,a){return r("div",{key:a,staticClass:"box",on:{mouseenter:function(e){return t.handleMouse(a)},mouseleave:function(e){t.indexChange=-1}}},[r("img",{attrs:{src:e,alt:""}}),t.readOnly?t._e():r("div",{directives:[{name:"show",rawName:"v-show",value:t.indexChange==a,expression:"indexChange == index"}],staticClass:"mark",on:{click:function(e){return t.circleClick(a)}}},[t._v("删除 ")])])})):t._e(),t.imgUrl.length1024*e){var a=this.urlSize>=1024?this.urlSize/1024+"M":"".concat(e,"k");return u["a"].warning("图片大小不能超过".concat(a)),!1}var n=new FileReader;n.readAsDataURL(r),n.onload=function(e){if(1==t.sizeWh){var a=0,n=0,i=new Image;i.src=e.target.result,i.onload=function(){a=this.width,n=this.height},setTimeout((function(){if(console.log(a,n),a>650||n>1e3)return u["a"].warning("请上传小于等于650*1000图片!"),!1;var i=t.dataURLtoFile(e.target.result,r.name),l=new window.FormData;l.append("uploadFile",i),s.a.post("".concat(o["a"],"/admin/files/upload/images"),l).then((function(e){200==e.data.code&&(t.imgUrl.push(e.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}),1e3)}else{var l=t.dataURLtoFile(e.target.result,r.name),c=new window.FormData;c.append("uploadFile",l),s.a.post("".concat(o["a"],"/admin/files/upload/images"),c).then((function(e){200==e.data.code&&(t.imgUrl.push(e.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}}},GetPercent:function(t,e){return t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e)?"-":Math.round(t/e*100)/100},dataURLtoFile:function(t,e){var r=t.split(","),a=r[0].match(/:(.*?);/)[1],n=atob(r[1]),o=n.length,i=new Uint8Array(o);while(o--)i[o]=n.charCodeAt(o);return new File([i],e,{type:a})}},mounted:function(){}},c=l,d=(r("9644"),r("2877")),p=Object(d["a"])(c,a,n,!1,null,"6b1c416e",null);e["a"]=p.exports},ade3:function(t,e,r){"use strict";function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return a}))},b073:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"ant-upload-preview"},[r("div",{staticClass:"avatatImg"},[1!==t.num?r("div",{staticClass:"list",staticStyle:{display:"flex"}},[this.imageUrlTow.length>0?t._l(t.imageUrlTow,(function(e,a){return""!=e?r("p",{key:a,staticStyle:{display:"flex",position:"relative","margin-right":"20px"},on:{mouseover:function(e){return t.changeActive(e)},mouseout:function(e){return t.removeActive(e)}}},[r("img",{staticClass:"upload_img",attrs:{src:e,alt:"avatar"}}),r("span",{on:{click:function(e){return t.remove(a)}}},[t._v("删除")])]):t._e()})):t._e()],2):r("a-upload",{attrs:{name:"avatar",listType:"picture-card",showUploadList:!1,beforeUpload:t.beforeUpload,customRequest:function(){},accept:"image/png,image/jpeg",disabled:t.readOnly},on:{change:t.handleChange}},[1===t.num&&t.imageUrl?r("img",{staticClass:"upload_img",attrs:{src:t.imageUrl,alt:"avatar"}}):t._e(),1===t.num&&!t.imageUrl||t.imageUrlTow&&t.imageUrlTow.lengthe.options.autoCropHeight?e.cropperMode=e.options.autoCropWidth+"px auto":t.width>=t.height?e.cropperMode="auto "+e.options.autoCropHeight+"px":e.cropperMode=e.options.autoCropWidth+"px auto"}},r},handleCropperSuccess:function(t){this.loading=!1,1!==this.num?(this.imageUrlTow.push(t.url),this.$emit("avatarfn",this.imageUrlTow,this.num)):this.$emit("avatarfn",t,this.num)},handleCropperClose:function(){this.loading=!1},getBase64:function(t,e){if(t){var r=new FileReader;r.addEventListener("load",(function(){return e(r.result)})),r.readAsDataURL(t)}}}},b=v,y=(r("05e6"),Object(m["a"])(b,a,n,!1,null,"a148c814",null));e["a"]=y.exports},b64b:function(t,e,r){var a=r("23e7"),n=r("7b0b"),o=r("df75"),i=r("d039"),s=i((function(){o(1)}));a({target:"Object",stat:!0,forced:s},{keys:function(t){return o(n(t))}})},b893:function(t,e,r){"use strict";r.d(e,"e",(function(){return i})),r.d(e,"b",(function(){return u})),r.d(e,"d",(function(){return l})),r.d(e,"a",(function(){return c})),r.d(e,"c",(function(){return d}));r("ac1f"),r("5319"),r("4d63"),r("25f0"),r("d81d"),r("159b");var a,n=r("c1df"),o=r.n(n),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;a||(a=!0,setTimeout((function(){a=!1,"function"===typeof t&&t()}),e))},s=null,u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;null!==s&&clearTimeout(s),s=setTimeout((function(){"function"===typeof t&&t()}),e)},l=function(t,e){var r={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?r[a]:("00"+r[a]).substr((""+r[a]).length)));return e},c=function(t){var e=JSON.parse(localStorage.getItem("powerListArr")),r="";return e.map((function(e){e.children.forEach((function(e){e.code==t&&(r=t),e.children.forEach((function(e){e.code==t&&(r=t)}))}))})),r},d=function(t){return t&&t0&&(t.highlightsNew=a.highlightsNew),a.unionCourse||(t.form.unionCourse=[{courseNo:"0",price:0,linePrice:0}]),a.highlights||(t.form.highlights=""))})),this.teacherSelectFn(),this.getAllLabelsByTypeFn(),Object(p["a"])("courseTag")&&(this.isShowCourseTag=!0)},components:{MyUpload:o["a"],Ueditor:h["a"],FooterToolBar:s["a"],CropperUpload:m["a"],detailCropperUpload:m["a"],UpdataImg:g["a"]},watch:{$route:{handler:function(t){"addSourse"==t.name&&(document.body.scrollTop=0)},immediate:!0}},data:function(){return{locale:l["a"],syllabus:[],syllabusNew:[],studyGuideUrl:[],goodSentence:[],assistantQRCodeImg:[],coverUrl:[],dateFormat:"YYYY-MM-DD HH:mm:ss",keepLoading:!1,radioStyle:{display:"block",height:"30px",lineHeight:"30px"},radioStyle11:{height:"30px",lineHeight:"30px"},masterTeacherArr:[{labelNo:"1335845498367643648",labelText:"覃流星"}],labelsArr:[{labelNo:"1371639096421781504",labelText:"test1"}],form:{id:"",name:"",conclusion:"",brief:"",pricingText:"",commodityCode:"",coverUrl:"",coverCosKey:"",masterTeacherNo:void 0,detailsUrl:"",detailsCosKey:"",assistantDes:"",assistantQRCodeImg:"",whetherKind:0,labels:[],courseType:1,catalogueFlag:1,description:"",pricingType:1,price:0,linePrice:0,validDayCount:0,studyCount:0,putawayTime:null,enableFlag:0,putawayFlag:2,trillCommodityCode:"",titleBgColor:"#ff0000",suitableForPeople:"",purchaseInstructions:"",pairedReadingUrl:"",courseRem:"",goodSentence:"",highlights:"",syllabus:[],syllabusNew:[],wonderfulExcerpts:"",sort:0,studyGuide:"",assistantTitle:"",unionCourse:[{courseNo:"0",price:0,linePrice:0}]},highlightsNew:[{title:"",content:"",order:1}],rules:{name:[{required:!0,message:"输入的内容不能为空",trigger:"blur"},{max:20,message:"长度最长为20个",trigger:"blur"}],conclusion:[{required:!0,message:"输入的内容不能为空",trigger:"blur"},{max:22,message:"长度最大为22个",trigger:"blur"}],brief:[{required:!0,message:"输入的内容不能为空",trigger:"blur"},{max:300,message:"长度最大为300个",trigger:"blur"}],suitableForPeople:[{required:!0,message:"请输入适合人群",trigger:"blur"}],purchaseInstructions:[{required:!0,message:"请输入购买须知",trigger:"blur"}],coverUrl:[{required:!0,message:"请上传课程封面"}],masterTeacherNo:[{required:!0,message:"请选择主讲老师",trigger:"change"}],labels:[{required:!0,message:"请上传课程标签"}],courseType:[{required:!0}],catalogueFlag:[{required:!0}],description:[{required:!0,message:"请上传课程详情"}],pricingType:[{required:!0}],enableFlag:[{required:!0,message:"输入的内容不能为空",trigger:"change"}],putawayFlag:[{required:!0}]},isShowCourseTag:!1,detailOptions:{autoCrop:!0,autoCropWidth:750,autoCropHeight:550,fixedBox:!0,previewsCircle:!1,title:"修改图片"},coverOptions:{autoCrop:!0,autoCropWidth:174,autoCropHeight:200,fixedBox:!0,previewsCircle:!1,title:"修改图片"},assistantQRCodeImgOptions:{autoCrop:!1,autoCropWidth:400,autoCropHeight:400,fixedBox:!0,previewsCircle:!1,title:"修改图片"},syllabusOptions:{autoCrop:!1,autoCropWidth:751,autoCropHeight:2695,fixedBox:!0,previewsCircle:!1,original:!0,title:"修改图片"},goodSentenceOptions:{autoCrop:!1,autoCropWidth:375,autoCropHeight:495,fixedBox:!0,previewsCircle:!1,title:"修改图片"}}},methods:{moment:d.a,delCourse:function(t){1!==this.form.unionCourse.length?this.form.unionCourse.splice(t,1):this.form.unionCourse=[{courseNo:"0",price:0,linePrice:0}]},addCourse:function(){this.form.unionCourse.push({courseNo:"0",price:0,linePrice:0})},highlightsNewClick:function(){var t={title:"",content:"",order:this.highlightsNew.length};this.highlightsNew.push(t)},coverUrlFn:function(t){this.coverUrl=t;var e=t.toString();this.form.coverCosKey=e.slice(32,e.length)},masterTeacherChange:function(t){this.masterTeacherNo=t},detailsUrlFn:function(t){this.form.detailsUrl=t.url,this.form.detailsCosKey=t.cosKey},assistantQRCodeImgUrlFn:function(t){this.assistantQRCodeImg=t},goodSentenceUrlFn:function(t){this.goodSentence=t},syllabusUrlFn:function(t){this.syllabus=t},syllabusUrlFnNew:function(t){this.syllabusNew=t},studyGuideUrlFnNew:function(t){this.studyGuideUrl=t},labelsChange:function(t){this.form.labels=t},courseTypeChange:function(t){this.form.courseType=t.target.value},filterOption:function(t,e){return e.componentOptions.children[0].text.indexOf(t)>=0},onRefresh:function(){this.form.labels=[],this.getAllLabelsByTypeFn()},catalogueFlagChange:function(t){this.form.catalogueFlag=t.target.value},editorFn:function(t){this.form.description=t},highlightseditorFn:function(t){this.form.highlights=t},wonderfulExcerptseditorFn:function(t){this.form.wonderfulExcerpts=t},purchaseInstructionseditorFn:function(t){this.form.purchaseInstructions=t},suitableForPeopleeditorFn:function(t){this.form.suitableForPeople=t},pricingTypeChange:function(t){this.form.pricingType=t.target.value,2!=t.target.value&&0!=t.target.value||(this.form.price=0,this.form.linePrice=0)},enableFlagChange:function(t){this.form.enableFlag=t.target.value},putawayFlagChange:function(t){this.form.putawayFlag=t.target.value},putawayTimeChange:function(t,e){this.form.putawayTime=t},putawayTimeOk:function(t){this.form.putawayTime=t},whetherKindChange:function(t){this.form.whetherKind=t.target.value},keepClick:function(){var t=this;this.form.putawayTime=Object(p["d"])(new Date(this.form.putawayTime),"yyyy-MM-dd HH:mm:ss"),this.keepLoading=!0,setTimeout((function(){t.keepLoading=!1}),3e3),null==this.form.linePrice&&(this.form.linePrice=0),"1970-01-01 08:00:00"!=this.form.putawayTime&&"NaN-aN-aN aN:aN:aN"!=this.form.putawayTime||(this.form.putawayTime=""),this.form.syllabus=this.syllabus.toString(),this.form.syllabusNew=this.syllabusNew.toString(),this.form.goodSentence=this.goodSentence.toString(),this.form.assistantQRCodeImg=this.assistantQRCodeImg.toString(),this.form.studyGuideUrl=this.studyGuideUrl.toString(),this.form.coverUrl=this.coverUrl.toString(),this.form.unionCourse=this.form.unionCourse.filter((function(t){return+t.courseNo})),this.$refs.ruleForm.validate((function(e){e?0!=t.form.putawayFlag?0!=t.$route.params.id?(t.form.highlightsNew=t.highlightsNew,Object(f["k"])(t.form).then((function(e){var r=e.code;200==r&&(u["a"].success("编辑成功"),t.$router.push("/coursManage/courseList"))}))):(t.form.highlightsNew=t.highlightsNew,Object(f["j"])(t.form).then((function(e){var r=e.code;200==r&&(u["a"].success("新增成功"),t.$router.push("/coursManage/courseList"))}))):u["a"].error("请选择上架设置"):u["a"].error("还有必填项未完成")}))},teacherSelectFn:function(){var t=this;Object(f["n"])().then((function(e){var r=e.code,a=e.data;200==r&&(t.masterTeacherArr=a)}))},getAllLabelsByTypeFn:function(){var t=this;Object(f["p"])({type:1}).then((function(e){var r=e.code,a=e.data;200==r&&(t.labelsArr=a)}))}}},b=v,y=(r("8bdc"),r("2877")),C=Object(y["a"])(b,a,n,!1,null,"1ab66fb4",null);e["default"]=C.exports},be63:function(t,e,r){"use strict";r("5b37")},c859:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"positionT0L0"},[r("a-form-model",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules,labelAlign:"left","label-col":{span:2},"wrapper-col":{span:8}}},[r("a-form-model-item",{staticClass:"por",attrs:{label:"课时数",prop:"courseClass"}},[r("a-input-number",{staticStyle:{width:"200px"},attrs:{min:0,max:99999,precision:0,placeholder:"请输入有效课时数"},model:{value:t.form.courseClass,callback:function(e){t.$set(t.form,"courseClass",e)},expression:"form.courseClass"}})],1),r("a-form-model-item",{attrs:{label:"课程分类",prop:"courseNo"}},[r("a-select",{staticStyle:{width:"200px"},attrs:{"show-search":"",placeholder:"点击选择课程","option-filter-prop":"children",getPopupContainer:function(e){return e.parentNode||t.document.body}},on:{change:t.changeLessontype},model:{value:t.form.categoryNo,callback:function(e){t.$set(t.form,"categoryNo",e)},expression:"form.categoryNo"}},t._l(t.lessonArr,(function(e){return r("a-select-option",{key:e.categoryNo,attrs:{value:e.categoryNo}},[t._v(" "+t._s(e.name)+" ")])})),1)],1),r("a-form-model-item",{class:{"has-error":!t.form.coverUrl&&t.isShowImag},attrs:{label:"课程封面",required:""}},[r("CropperUpload",{attrs:{options:t.coverOptions,imageUrl:t.form.coverUrl,avatarTextTop:"",avatarTextBottom:"点击新增/修改图片,推荐大小为218*310;上传图片不超过3M,格式为jpg,png。"},on:{avatarfn:t.imageUrlFn}}),!t.form.coverUrl&&t.isShowImag?r("div",{staticClass:"ant-form-explain"},[t._v(" 请上传课程封面 ")]):t._e()],1),r("a-form-model-item",{attrs:{label:"背景色值",prop:"backgroundColor"}},[r("a-input",{staticStyle:{width:"200px"},model:{value:t.form.backgroundColor,callback:function(e){t.$set(t.form,"backgroundColor",e)},expression:"form.backgroundColor"}})],1)],1),r("FooterToolBar",{attrs:{collapsed:t.sideCollapsed}},[r("a-button",{staticClass:"margin_right60",on:{click:function(){return t.$router.go(-1)}}},[t._v("返回")]),r("a-button",{attrs:{type:"primary",loading:t.keepLoading,disabled:t.keepLoading},on:{click:t.keepClick}},[t._v("保存")])],1)],1)},n=[],o=r("432b"),i=r("5a70"),s=r("f64c"),u=r("c1df"),l=r.n(u),c=(r("b893"),r("300c")),d=r("b073"),p={mixins:[o["a"]],components:{FooterToolBar:i["a"],CropperUpload:d["a"]},created:function(){var t=this;Object(c["w"])().then((function(e){var r=e.code,a=e.data;200==r&&(t.lessonArr=a)}));var e=this.$route.params.id;Object(c["x"])({courseNo:e}).then((function(e){200==e.code&&e.data.courseNo&&""!=e.data.courseNo&&(t.form=e.data)}))},data:function(){return{isShowImag:!1,keepLoading:!1,radioStyle:{display:"block",height:"30px",lineHeight:"30px"},radioStyle11:{height:"30px",lineHeight:"30px"},form:{courseNo:this.$route.params.id,categoryNo:void 0,courseClass:"",coverUrl:"",backgroundColor:""},lessonArr:[],coverOptions:{autoCrop:!0,autoCropWidth:218,autoCropHeight:310,fixedBox:!0,previewsCircle:!1,title:"修改图片"},rules:{coverUrl:[{required:!0,message:"请上传课程封面",trigger:"change"}],courseNo:[{required:!0,message:"请选择分类",trigger:"change"}],backgroundColor:[{required:!0,message:"请填写背景色",trigger:"blur"}],courseClass:[{required:!0,message:"请填写课时数",trigger:"change"}]}}},methods:{moment:l.a,imageUrlFn:function(t){this.form.coverUrl=t.url},changeLessontype:function(t){this.courseNo=t,console.log(t,888)},keepClick:function(){var t=this;this.keepLoading=!0,setTimeout((function(){t.keepLoading=!1}),3e3),this.form.imageUrl||(this.isShowImag=!0),this.$refs.ruleForm.validate((function(e){e?(t.form.courseClass=t.form.courseClass+"",Object(c["N"])(t.form).then((function(t){var e=t.code;200==e&&(s["a"].success("添加成功"),location.href="/coursManage/courseList")}))):s["a"].error("还有必填项未完成")}))}}},f=p,m=(r("3e7c"),r("2877")),g=Object(m["a"])(f,a,n,!1,null,"fc657e3e",null);e["default"]=g.exports},dbb4:function(t,e,r){var a=r("23e7"),n=r("83ab"),o=r("56ef"),i=r("fc6a"),s=r("06cf"),u=r("8418");a({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(t){var e,r,a=i(t),n=s.f,l=o(a),c={},d=0;while(l.length>d)r=n(a,e=l[d++]),void 0!==r&&u(c,e,r);return c}})},de85:function(t,e,r){},e439:function(t,e,r){var a=r("23e7"),n=r("d039"),o=r("fc6a"),i=r("06cf").f,s=r("83ab"),u=n((function(){i(1)})),l=!s||u;a({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return i(o(t),e)}})},e492:function(t,e,r){}}]); //# sourceMappingURL=addSourse.94d5cf34.js.map