(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b7709972","chunk-2d0d6f6b"],{"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"),o=a("4328"),r=a.n(o),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:r.a.stringify(t)})}function c(t){return Object(n["a"])({url:i+"/news/add",method:"post",data:r.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:r.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 o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,a){var i=r(),s=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var r=Math.easeInOutQuad(c,i,s,e);o(r),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(x["a"])(Object(w["a"])().mark((function t(){var e=this;return Object(w["a"])().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;var a=this.ossUploadUrl+"/"+this.dataObj.key;a?this.dialogForm.poster=a:this.$message.error("上传失败")},beforeImgUpload:function(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n,o,r,i,s,l;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={"image/png":!0,"image/jpeg":!0},n=a[e.type],o=e.size/1024/1024<2,n||this.$message.error("只能上传图片格式!"),o||this.$message.error("上传图片大小不能超过 2MB!"),n&&o&&(this.uploadImgLoading=!0),t.prev=7,r=e.name.replaceAll(" ","_"),i=(new Date).getTime()+r,s={filename:r,bucketName:this.bucket_name,postData:{filename:r,acl:"public-read",key:i,unknowValueField:[]}},t.next=13,Object(nt["p"])(s);case 13:l=t.sent,this.dataObj={policy:l.data.policy,signature:l.data.signature,key:i,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:r},t.next=21;break;case 17:return t.prev=17,t.t0=t["catch"](7),console.log(t.t0),t.abrupt("return",!1);case 21:return t.abrupt("return",n&&o);case 22:case"end":return t.stop()}}),t,this,[[7,17]])})));function e(e){return t.apply(this,arguments)}return e}(),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(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n,o,r,i;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.size/1024/1024<100,a||this.$message.error("上传视频大小不能超过 100MB!"),this.uploadLoading=!0,t.prev=3,n=e.name.replaceAll(" ","_"),o=(new Date).getTime()+n,r={filename:n,bucketName:this.bucket_name,postData:{filename:n,acl:"public-read",key:o,unknowValueField:[]}},t.next=9,Object(nt["p"])(r);case 9:i=t.sent,this.dataObj={policy:i.data.policy,signature:i.data.signature,key:o,KSSAccessKeyId:i.data.kssAccessKeyId,acl:"public-read",name:n},t.next=17;break;case 13:return t.prev=13,t.t0=t["catch"](3),console.log(t.t0),t.abrupt("return",!1);case 17:return t.abrupt("return",a);case 18:case"end":return t.stop()}}),t,this,[[3,13]])})));function e(e){return t.apply(this,arguments)}return e}(),handleUploadError:function(t){this.uploadLoading=!1,this.$message.error("上传视频失败")},handleUploadSuccess:function(t,e){this.uploadLoading=!1;var a=this.ossUploadUrl+"/"+this.dataObj.key;a?(this.$message.success("上传视频成功"),this.dialogForm.videoUrl=a):this.$message.error("上传视频失败")},handleExceed:function(t,e){this.$message.error("您已上传过视频")}},computed:{editor:function(){return this.$refs.myQuillEditor.quill}}},ft=mt,gt=(a("fee9"),Object(d["a"])(ft,Z,tt,!1,null,"636c1c95",null)),bt=gt.exports,ht={name:"training",components:{pagination:l["a"],systemNotifyModel:bt},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)}))}}},vt=ht,yt=(a("77d2"),Object(d["a"])(vt,G,X,!1,null,"bafb5efc",null)),_t=yt.exports,It={components:{banner:f,activity:_,information:j,training:O["a"],flashPage:C,appPage:N["a"],knowledge:V,advert:J,systemNotify:_t},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}}},kt=It,wt=Object(d["a"])(kt,n,o,!1,null,null,null);e["default"]=wt.exports},"3e02":function(t,e,a){},"3f22":function(t,e,a){"use strict";a("9914")},"490a":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("auth",{attrs:{auths:"news/add"}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(e){return t.openTeaching("create")}}},[t._v("\n 新建\n ")])],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"封面图"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"跳转链接"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{text:t.row.linkUrl}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否使用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.status?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"版本号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.memo?e.row.memo:"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"order",label:"排序"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"适用分部"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{text:t.row.organNameList}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/update"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onStop(e.row,0)}}},[t._v("停用")]):a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onStop(e.row,1)}}},[t._v("启用")])],1),t._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/del"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDel(e.row)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),a("pagination",{attrs:{saveKey:"contentAppPage",sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)},o=[],r=a("0687"),i=a("333d"),s={name:"training",components:{pagination:i["a"]},data:function(){return{searchForm:{organIdList:[]},tableList:[],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},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:6};Object(r["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),a.type=6,a.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:a},(function(t){var e=t.matched||[];for(var a in e)"/contentManager/contentOperation"==e[a].path&&(t.matched[a].meta.activeMenu="/platformIndex")}))},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["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(r["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},l=s,c=(a("f4e2"),a("2877")),u=Object(c["a"])(l,n,o,!1,null,"b3af20ce",null);e["a"]=u.exports},"51d7":function(t,e,a){},"5c98":function(t,e,a){},"6ffb":function(t,e,a){},"74be":function(t,e,a){},7590:function(t,e,a){"use strict";var n=a("d225"),o=a("b0b4"),r=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(o["a"])(a,[{key:"format",value:function(t,e){d.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):Object(r["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(r["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},7661:function(t,e,a){},"77d2":function(t,e,a){"use strict";a("e275")},8271:function(t,e,a){"use strict";a("5c98")},8496:function(t,e,a){"use strict";a("3e02")},9914:function(t,e,a){},a25b:function(t,e,a){},a5b5:function(t,e,a){},b3fe:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("auth",{attrs:{auths:"news/add"}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(e){return t.openTeaching("create")}}},[t._v("\n 新建\n ")])],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"轮播图"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"跳转链接"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{text:t.row.linkUrl+"/"+t.row.id}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否使用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.status?"是":"否"))]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"order",label:"排序"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"适用分部"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{text:t.row.organNameList}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/update"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onStop(e.row,0)}}},[t._v("停用")]):a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onStop(e.row,1)}}},[t._v("启用")])],1),t._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/del"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDel(e.row)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),a("pagination",{attrs:{saveKey:"contentTraining",sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)},o=[],r=a("0687"),i=a("333d"),s={name:"training",components:{pagination:i["a"]},data:function(){return{searchForm:{organIdList:[]},tableList:[],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},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:4};Object(r["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),a.type=4,a.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:a})},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["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(r["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},l=s,c=(a("8496"),a("2877")),u=Object(c["a"])(l,n,o,!1,null,"5e8f6f49",null);e["a"]=u.exports},e04d:function(t,e,a){"use strict";a("a25b")},e275:function(t,e,a){},ed1d:function(t,e,a){"use strict";a("6ffb")},f4e2:function(t,e,a){"use strict";a("51d7")},f721:function(t,e,a){"use strict";a("7661")},fee9:function(t,e,a){"use strict";a("a5b5")}}]);