(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-778bb9b2"],{"0687":function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"f",(function(){return l})),a.d(e,"a",(function(){return c})),a.d(e,"d",(function(){return u})),a.d(e,"b",(function(){return p})),a.d(e,"e",(function(){return d}));var n=a("b775"),r=a("4328"),o=a.n(r),i="/api-cms";function s(t){return Object(n["a"])({url:i+"/news/queryPage",method:"get",params:t})}function l(t){return Object(n["a"])({url:i+"/news/update",method:"post",data:o.a.stringify(t)})}function c(t){return Object(n["a"])({url:i+"/news/add",method:"post",data:o.a.stringify(t)})}function u(t){return Object(n["a"])({url:i+"/news/query",method:"get",params:t})}function p(t){return Object(n["a"])({url:i+"/news/del/"+t.id,method:"post",data:o.a.stringify(t)})}function d(t){return Object(n["a"])({url:i+"/news/typeList",method:"get",params:t})}},"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,a){var i=o(),s=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var o=Math.easeInOutQuad(c,i,s,e);r(o),c0&&t.forEach((function(t){t.style.width="100%"}));var e=document.querySelectorAll(".msgWrap .ql-video");e.length>0&&e.forEach((function(t){t.style.width="100%",t.style.height="195px"}))}),500),this.lookVisible=!0},getList:function(){var t=Object(k["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("create"!=this.pageType){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,Object(s["d"])({id:this.options.id}).then((function(t){if(200==t.code){var a=t.data,n=a.organIdList?a.organIdList.split(","):[];a.linkUrl?e.outUrlRadio=1:e.outUrlRadio=0,e.form={id:a.id,title:a.title,order:a.order,linkUrl:a.linkUrl,type:a.type,status:a.status,organIdList:n.map((function(t){return+t})),content:a.content},e.dataInfo.updateTime=a.updateTime}}));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleUploadImgError:function(t){this.uploadImgLoading=!1,this.$message.error("上传失败")},handleImgSuccess:function(t,e){this.uploadImgLoading=!1,200==t.code?this.dialogForm.poster=t.data.url:this.$message.error("上传失败")},beforeImgUpload:function(t){var e={"image/png":!0,"image/jpeg":!0,"image/gif":!0},a=e[t.type],n=t.size/1024/1024<2;return a||this.$message.error("只能上传图片格式!"),n||this.$message.error("上传图片大小不能超过 2MB!"),a&&n&&(this.uploadImgLoading=!0),a&&n},typeCheck:function(t){var e={1:"精彩活动",2:"热门资讯",4:"专项训练",7:"知识库",19:"系统通知"};return e[t]?e[t]:"大雅乐盟"},typeIndex:function(t){var e={1:0,2:1,3:4,4:2,5:3,6:5,7:6,8:7,19:8};return e[t]},onEditorChange:function(t){t.quill;var e=t.html;t.text;this.form.content=e},beforeUpload:function(t){var e=t.size/1024/1024<100;return e||this.$message.error("上传视频大小不能超过 100MB!"),this.uploadLoading=!0,e},handleUploadError:function(t){this.uploadLoading=!1,this.$message.error("上传视频失败")},handleUploadSuccess:function(t,e){this.uploadLoading=!1,200==t.code?(this.$message.success("上传视频成功"),this.dialogForm.videoUrl=t.data.url):this.$message.error("上传视频失败")},handleExceed:function(t,e){this.$message.error("您已上传过视频")}},computed:{editor:function(){return this.$refs.myQuillEditor.quill}}},wt=It,kt=(a("29ce"),Object(d["a"])(wt,lt,ct,!1,null,"60d72c50",null)),Lt=kt.exports,xt={name:"training",components:{pagination:l["a"],systemNotifyModel:Lt},data:function(){return{searchForm:{organIdList:[]},tableList:[],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},formActionTitle:"create",formTitle:{create:"新建系统通知",update:"修改系统通知"},notifyStatus:!1,systemOptions:null}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var t=this,e={clientName:"manage",organIdList:this.searchForm.organIdList?this.searchForm.organIdList.join(","):null,rows:this.pageInfo.limit,page:this.pageInfo.page,type:19};Object(s["c"])(e).then((function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)}))},openTeaching:function(t,e){var a={};"update"==t&&(a.id=e.id),this.formActionTitle=t,a.type=19,a.pageType=t,this.systemOptions=a,this.notifyStatus=!0},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["b"])({id:t.id}).then((function(t){200==t.code?(e.$message.success("删除成功"),e.getList()):e.$message.error(t.msg)}))})).catch((function(){}))},onStop:function(t,e){var a=this,n=["停用","启用"];Object(s["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},$t=xt,St=(a("c6ba"),Object(d["a"])($t,it,st,!1,null,"6327c0db",null)),Ft=St.exports,Tt={components:{banner:f,activity:_,information:S,training:C,flashPage:M,appPage:V,knowledge:Z,advert:ot,systemNotify:Ft},name:"contentManager",data:function(){return{activeName:"0",permissionList:{banner:Object(c["a"])("/contentManager/banner"),activity:Object(c["a"])("/contentManager/activity"),information:Object(c["a"])("/contentManager/information"),training:Object(c["a"])("/contentManager/training"),flashPage:Object(c["a"])("/contentManager/flashPage"),appPage:Object(c["a"])("/contentManager/appPage"),knowledge:Object(c["a"])("/contentManager/knowledge"),advert:Object(c["a"])("/contentManager/advert"),systemNotify:Object(c["a"])("/contentManager/systemNotify")}}},methods:{handleClick:function(t,e){this.activeName=t.name}}},jt=Tt,Ot=Object(d["a"])(jt,n,r,!1,null,null,null);e["default"]=Ot.exports},"29ce":function(t,e,a){"use strict";var n=a("18ae"),r=a.n(n);r.a},3394:function(t,e,a){"use strict";var n=a("bbbc"),r=a.n(n);r.a},"355d4":function(t,e,a){"use strict";var n=a("5611"),r=a.n(n);r.a},"3d4a":function(t,e,a){},5611:function(t,e,a){},"5f03":function(t,e,a){},7590:function(t,e,a){"use strict";var n=a("d225"),r=a("b0b4"),o=a("2a88"),i=a("6bb5"),s=a("4e2b"),l=a("c603"),c=a("953d"),u=c["Quill"].import("blots/block/embed"),p=c["Quill"].import("formats/link"),d=["height","width","src","poster"],m=function(t){Object(s["a"])(a,t);var e=Object(l["a"])(a);function a(){return Object(n["a"])(this,a),e.apply(this,arguments)}return Object(r["a"])(a,[{key:"format",value:function(t,e){d.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):Object(o["a"])(Object(i["a"])(a.prototype),"format",this).call(this,t,e)}},{key:"html",value:function(){var t=this.value(),e=t.video;return'').concat(e,"")}}],[{key:"create",value:function(t){var e=Object(o["a"])(Object(i["a"])(a),"create",this).call(this,t.url);return e.setAttribute("controls","controls"),e.setAttribute("type","video/mp4"),e.setAttribute("preload","auto"),e.setAttribute("autopaly","false"),e.setAttribute("src",this.sanitize(t.url)),e.setAttribute("poster",this.sanitize(t.poster)),e}},{key:"formats",value:function(t){return d.reduce((function(e,a){return t.hasAttribute(a)&&(e[a]=t.getAttribute(a)),e}),{})}},{key:"sanitize",value:function(t){return p.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),a}(u);m.blotName="video",m.className="ql-video",m.tagName="video",e["a"]=m},9832:function(t,e,a){},"9a9c":function(t,e,a){"use strict";var n=a("a451"),r=a.n(n);r.a},a451:function(t,e,a){},a53a:function(t,e,a){},a735:function(t,e,a){"use strict";var n=a("a53a"),r=a.n(n);r.a},a8db:function(t,e,a){"use strict";var n=a("e265"),r=a.n(n),o=a("a4bb"),i=a.n(o);function s(t,e){if(null==t)return{};var a,n,r={},o=i()(t);for(n=0;n=0||(r[a]=t[a]);return r}function l(t,e){if(null==t)return{};var a,n,o=s(t,e);if(r.a){var i=r()(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(o[a]=t[a])}return o}a.d(e,"a",(function(){return l}))},bbbc:function(t,e,a){},bfba:function(t,e,a){"use strict";var n=a("5f03"),r=a.n(n);r.a},c5a4:function(t,e,a){"use strict";var n=a("9832"),r=a.n(n);r.a},c6ba:function(t,e,a){"use strict";var n=a("d8f6"),r=a.n(n);r.a},cea1:function(t,e,a){"use strict";var n=a("0f41"),r=a.n(n);r.a},d8f6:function(t,e,a){},fcfa:function(t,e,a){"use strict";var n=a("3d4a"),r=a.n(n);r.a}}]);