chunk-7fb28e38.0ff830f6.js 56 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fb28e38"],{1395:function(t,e,a){"use strict";a("74be")},2623:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName="string"===typeof e?e.trim():e},expression:"activeName"}},[t.permissionList.activity?a("el-tab-pane",{attrs:{label:"精彩活动",lazy:"",name:"0"}},[0==t.activeName?a("activity"):t._e()],1):t._e(),t._v(" "),t.permissionList.information?a("el-tab-pane",{attrs:{label:"热门资讯",lazy:"",name:"1"}},[1==t.activeName?a("information"):t._e()],1):t._e(),t._v(" "),t.permissionList.flashPage?a("el-tab-pane",{attrs:{label:"闪页管理",lazy:"",name:"3"}},[3==t.activeName?a("flashPage"):t._e()],1):t._e(),t._v(" "),t.permissionList.banner?a("el-tab-pane",{attrs:{label:"BANNER管理",lazy:"",name:"4"}},[4==t.activeName?a("banner"):t._e()],1):t._e(),t._v(" "),t.permissionList.knowledge?a("el-tab-pane",{attrs:{label:"知识库管理",lazy:"",name:"6"}},[6==t.activeName?a("knowledge"):t._e()],1):t._e(),t._v(" "),t.permissionList.advert?a("el-tab-pane",{attrs:{label:"广告管理",lazy:"",name:"7"}},[7==t.activeName?a("advert"):t._e()],1):t._e(),t._v(" "),t.permissionList.systemNotify?a("el-tab-pane",{attrs:{label:"系统通知",lazy:"",name:"8"}},[8==t.activeName?a("systemNotify"):t._e()],1):t._e()],1)],1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 内容管理\n ")])}],o=(a("7f7f"),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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentBanner",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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"}},[!e.row.memo||t.permission("banner/copyrightbtn")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openTeaching("update",e.row)}}},[t._v("修改")]):t._e(),t._v(" "),!e.row.memo||t.permission("banner/copyrightbtn")?a("div",{staticStyle:{display:"inline-block"}},[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._e()],1),t._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/del"}},[!e.row.memo||t.permission("banner/copyrightbtn")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDel(e.row)}}},[t._v("删除")]):t._e()],1)],1)]}}])})],1),t._v(" "),a("pagination",{attrs:{saveKey:"contentBanner",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)}),s=[],i=a("0687"),l=a("333d"),c=a("ec8a"),u={name:"banner",components:{pagination:l["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()},permission:function(t){return Object(c["a"])(t)},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:3};Object(i["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=3,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},p=u,d=(a("f721"),a("2877")),m=Object(d["a"])(p,o,s,!1,null,"4c30dd00",null),f=m.exports,g=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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentActivity",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",multiple:"",filterable:"","collapse-tags":"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList",e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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(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:"contentActivity",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)},b=[],h={name:"activity",components:{pagination:l["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,e=this,a={clientName:"manage",organIdList:this.searchForm.organIdList?null===(t=this.searchForm)||void 0===t?void 0:t.organIdList.join(","):null,rows:this.pageInfo.limit,page:this.pageInfo.page,type:1};Object(i["c"])(a).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},openTeaching:function(t,e){var a={};"update"==t&&(a.id=e.id),a.type=1,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},v=h,y=(a("ed1d"),Object(d["a"])(v,g,b,!1,null,"3de3e97a",null)),_=y.exports,k=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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentInformation",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"subType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择资讯类别"},model:{value:t.searchForm.subType,callback:function(e){t.$set(t.searchForm,"subType",e)},expression:"searchForm.subType"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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:"subType",label:"资讯类别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatSubType(e.row.subType))+"\n ")]}}])}),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:"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:"contentInformation",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)},I=[],w=(a("ac6a"),a("c80c")),x=(a("96cf"),a("3b8d")),L={name:"information",components:{pagination:l["a"]},data:function(){return{searchForm:{organIdList:[],subType:null},tableList:[],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},typeList:[]}},mounted: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:return t.next=2,Object(i["e"])({parentId:2}).then((function(t){200==t.code&&(e.typeList=t.data)}));case 2:this.$store.dispatch("setBranchs"),this.getList();case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),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,subType:this.searchForm.subType,rows:this.pageInfo.limit,page:this.pageInfo.page,type:2};Object(i["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=2,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))},formatSubType:function(t){var e=null;return this.typeList.forEach((function(a){a.id==t&&(e=a.name)})),e}}},S=L,$=(a("e04d"),Object(d["a"])(S,k,I,!1,null,"1c9c3092",null)),j=$.exports,F=a("b3fe"),O=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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentFlashPage",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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:"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:"contentFlashPage",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)},T=[],q={name:"banner",components:{pagination:l["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:5};Object(i["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=5,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},U=q,C=(a("3f22"),Object(d["a"])(U,O,T,!1,null,"00011858",null)),E=C.exports,N=a("490a"),z=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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentKnowledge",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"subType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择知识类别"},model:{value:t.searchForm.subType,callback:function(e){t.$set(t.searchForm,"subType",e)},expression:"searchForm.subType"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"subjectId"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:t.searchForm.subjectId,callback:function(e){t.$set(t.searchForm,"subjectId",e)},expression:"searchForm.subjectId"}},t._l(t.selects.subjects,(function(t){return a("el-option",{key:t.id,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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:{width:"100%",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:"createTime",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.createTime?e.row.createTime.split(" ")[0]:"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subType",label:"知识类别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatSubType(e.row.subType))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"所属声部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.subjectName)+"\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"}},[!e.row.memo||t.permission("banner/copyrightbtn")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openTeaching("update",e.row)}}},[t._v("修改")]):t._e(),t._v(" "),!e.row.memo||t.permission("banner/copyrightbtn")?a("div",{staticStyle:{display:"inline-block"}},[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._e()],1),t._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/del"}},[!e.row.memo||t.permission("banner/copyrightbtn")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDel(e.row)}}},[t._v("删除")]):t._e()],1)],1)]}}])})],1),t._v(" "),a("pagination",{attrs:{saveKey:"contentKnowledge",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)},M=[],K=(a("4360"),a("e3eb")),B=a.n(K),D={name:"knowledge",components:{pagination:l["a"]},data:function(){return{searchForm:{organIdList:[],subjectId:null,subType:null},tableList:[],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},typeList:[]}},mounted: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:return this.$store.dispatch("setSubjects"),t.next=3,Object(i["e"])({parentId:7}).then((function(t){200==t.code&&(e.typeList=t.data)}));case 3:this.$store.dispatch("setBranchs"),this.getList();case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{search:function(){this.pageInfo.page=1,this.getList()},permission:function(t){return Object(c["a"])(t)},getList:function(){var t=this,e={clientName:"manage",organIdList:this.searchForm.organIdList?this.searchForm.organIdList.join(","):null,subType:this.searchForm.subType,subjectId:this.searchForm.subjectId,rows:this.pageInfo.limit,page:this.pageInfo.page,type:7};Object(i["c"])(B()(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=7,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))},formatSubType:function(t){var e=null;return this.typeList.forEach((function(a){a.id==t&&(e=a.name)})),e}},filters:{}},A=D,R=(a("8271"),Object(d["a"])(A,z,M,!1,null,"0312ed89",null)),V=R.exports,P=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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentAdvert",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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.videoCoverImage||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(t._s(1==e.row.status?"是":"否"))]}}])}),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:{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)},W=[],Q={name:"training",components:{pagination:l["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:8};Object(i["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=8,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(i["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(i["f"])({id:t.id,status:e}).then((function(t){200==t.code?(a.$message.success(n[e]+"成功"),a.getList()):a.$message.error(t.msg)}))}}},H=Q,Y=(a("1395"),Object(d["a"])(H,P,W,!1,null,"789cfd04",null)),J=Y.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("auth",{attrs:{auths:"news/add/system"}},[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("save-form",{staticClass:"searchForm",attrs:{inline:!0,saveKey:"contentAdvert",model:t.searchForm},on:{submit:t.search}},[a("el-form-item",{attrs:{prop:"organIdList"}},[a("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")])],1)],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",prop:"title",label:"标题"}}),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",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(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/system"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openTeaching("update",e.row)}}},[t._v("修改")])],1),t._v(" "),1==e.row.status?a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/update/systemStop"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onStop(e.row,0)}}},[t._v("停用")])],1):a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"news/update/systemStart"}},[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/system"}},[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:{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),t._v(" "),a("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.notifyStatus,width:"800px"},on:{"update:visible":function(e){t.notifyStatus=e}}},[t.notifyStatus?a("system-notify-model",{attrs:{options:t.systemOptions},on:{submited:t.getList,close:function(e){t.notifyStatus=!1}}}):t._e()],1)],1)},X=[],Z=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"systemNotifyModel"},[a("div",{staticClass:"m-core"},[a("el-form",{ref:"form",staticStyle:{width:"100%"},attrs:{model:t.form,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入标题"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title","string"===typeof e?e.trim():e)},expression:"form.title"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"排序值"}},[a("el-input",{attrs:{placeholder:"请输入排序值",type:"number"},model:{value:t.form.order,callback:function(e){t.$set(t.form,"order","string"===typeof e?e.trim():e)},expression:"form.order"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"所属分部",prop:"organIdList"}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"请选择分部",multiple:"",clearable:""},model:{value:t.form.organIdList,callback:function(e){t.$set(t.form,"organIdList","string"===typeof e?e.trim():e)},expression:"form.organIdList"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"是否使用外链"}},[a("el-radio-group",{model:{value:t.outUrlRadio,callback:function(e){t.outUrlRadio=e},expression:"outUrlRadio"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),1==t.outUrlRadio?a("el-form-item",{attrs:{label:"外链地址",prop:"linkUrl",rules:[{required:!0,message:"请输入外链地址",trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入外链地址"},model:{value:t.form.linkUrl,callback:function(e){t.$set(t.form,"linkUrl","string"===typeof e?e.trim():e)},expression:"form.linkUrl"}})],1):t._e(),t._v(" "),0==t.outUrlRadio?a("el-form-item",{attrs:{label:"内容",prop:"content",rules:[{required:!0,message:"请编辑内容",trigger:"blur"}]}},[a("quill-editor",{ref:"myQuillEditor",staticClass:"ql-editor",staticStyle:{"margin-top":"-17px"},attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)}},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}}),t._v(" "),a("el-upload",{staticClass:"ivu-upload",attrs:{"show-upload-list":!1,"http-request":t.handleSuccess,accept:".jpg, .jpeg, .png, .gif","max-size":2048,multiple:"",action:t.ossUploadUrl,data:t.dataObj,"before-upload":t.beforeImgUpload}},[a("Button",{attrs:{icon:"ios-cloud-upload-outline"}})],1)],1):t._e(),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("form")}}},[t._v("立即"+t._s("create"==t.pageType?"创建":"修改"))]),t._v(" "),a("el-button",{on:{click:function(e){return t.onReSet("form")}}},[t._v("重置")]),t._v(" "),a("el-button",{on:{click:t.onLook}},[t._v("预览")])],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"插入视频","append-to-body":!0,width:"500px",visible:t.dialogFormVisible},on:{close:function(e){return t.onDialogClose("diologForm")},"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"diologForm",attrs:{model:t.dialogForm,rules:t.dialogFormRules}},[a("el-form-item",{attrs:{label:"封面图地址",prop:"poster",rules:[{required:2==t.uploadType,message:"请上传封面图",trigger:"blur"}],"label-width":"120px"}},[a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:t.uploadImgLoading,expression:"uploadImgLoading"}],staticClass:"avatar-uploader",staticStyle:{"line-height":"0",display:"inline-block"},attrs:{action:t.ossUploadUrl,data:t.dataObj,"show-file-list":!1,accept:".jpg, .jpeg, .png, .gif","http-request":t.handleImgSuccess,"on-error":t.handleUploadImgError,"before-upload":t.beforeImgUpload}},[t.dialogForm.poster?a("img",{staticClass:"avatar",attrs:{src:t.dialogForm.poster}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t._v(" "),a("el-form-item",{attrs:{label:"视频类型","label-width":"120px"}},[a("el-radio-group",{model:{value:t.formRadio,callback:function(e){t.formRadio=e},expression:"formRadio"}},[a("el-radio",{attrs:{label:1}},[t._v("外部链接")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("上传")])],1)],1),t._v(" "),1==t.formRadio?a("el-form-item",{attrs:{label:"视频地址","label-width":"120px",prop:"url"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:t.dialogForm.url,callback:function(e){t.$set(t.dialogForm,"url",e)},expression:"dialogForm.url"}})],1):t._e(),t._v(" "),2==t.formRadio?a("el-form-item",{attrs:{label:"上传视频","label-width":"120px",prop:"videoUrl"}},[a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:t.uploadLoading,expression:"uploadLoading"}],staticClass:"upload-demo",staticStyle:{display:"inline-block"},attrs:{action:t.ossUploadUrl,data:t.dataObj,"before-upload":t.beforeUpload,"http-request":t.handleUploadSuccess,"on-error":t.handleUploadError,"show-file-list":!1,accept:".mp4","file-list":t.fileList,"on-exceed":t.handleExceed}},[t.dialogForm.videoUrl?a("video",{staticStyle:{width:"120px",height:"120px"},attrs:{type:"video/mp4",preload:"auto",src:t.dialogForm.videoUrl}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),t._v(" "),a("p",{staticClass:"imageSize"},[2==t.uploadType&&8==t.type?a("span",[t._v("上传视频尺寸建议:1242px * 2208px;")]):t._e(),a("br"),t._v("\n 只能上传mp4文件, 且不超过100M\n ")])],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onVideoComfirm("diologForm")}}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{width:"375px",title:"预览","append-to-body":!0,visible:t.lookVisible},on:{"update:visible":function(e){t.lookVisible=e}}},[a("div",{staticClass:"sd-container"},[a("h2",[t._v(t._s(t.dataInfo.title))]),t._v(" "),a("div",{staticClass:"titleInfo"},[a("p",[t._v(t._s(t.typeCheck(t.dataInfo.type)))]),t._v(" "),a("p",[t._v(t._s(t.dataInfo.updateTime))])]),t._v(" "),a("div",{staticClass:"msgWrap quill-editor ql-editor",domProps:{innerHTML:t._s(t.dataInfo.content)}})])])],1)},tt=[],et=(a("28a5"),a("db72")),at=a("a8db"),nt=(a("3607"),a("4450")),rt=(a("5f87"),a("61f7"),a("a753"),a("8096"),a("14e1"),a("9339")),ot=a.n(rt),st=a("953d"),it=a("7590"),lt=a("5a0c"),ct=a.n(lt),ut=["organIdList","linkUrl","content"],pt=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]],dt={"ql-bold":"加粗","ql-color":"颜色","ql-font":"字体","ql-code":"插入代码","ql-italic":"斜体","ql-background":"背景颜色","ql-size":"字体大小","ql-strike":"删除线","ql-script":"上标/下标","ql-underline":"下划线","ql-blockquote":"引用","ql-header":"标题","ql-indent":"缩进","ql-list":"列表","ql-align":"文本对齐","ql-direction":"文本方向","ql-code-block":"代码块","ql-formula":"公式","ql-image":"图片","ql-video":"视频","ql-clean":"清除字体样式","ql-upload":"文件"};ot.a.register(it["a"],!0);var mt={props:["options"],name:"contentOperation",components:{quillEditor:st["quillEditor"]},data:function(){var t=this,e=this.options;return{uploadType:1,uploadStatus:!1,type:e.type,pageType:e.pageType,organId:null,content:null,dialogFormVisible:!1,formRadio:1,lookVisible:!1,dataInfo:{title:"",type:e.type,updateTime:ct()().format("YYYY-MM-DD HH:mm:ss"),content:null},editorIndex:0,editorOption:{placeholder:"请输入内容",modules:{toolbar:{container:pt,handlers:{image:function(t){t?document.querySelector(".ivu-upload .el-upload").click():this.quill.format("image",!1)},video:function(e){if(e){t.dialogFormVisible=!0;var a=t.$refs.myQuillEditor.quill;t.editorIndex=a.getSelection().index}else this.quill.format("image",!1)}}}}},dialogForm:{poster:null,url:null,videoUrl:null},uploadLoading:!1,uploadImgLoading:!1,fileList:[],dialogFormRules:{url:[{required:!0,message:"请输入视频地址",trigger:"blur"}],videoUrl:[{required:!0,message:"请上传视频",trigger:"blur"}]},outUrlRadio:0,form:{title:null,order:null,linkUrl:null,type:e.type,status:0,content:null,organIdList:[]},rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],organIdList:[{required:!0,message:"请选择分部",trigger:"change"}]},imageSize:null,dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""},ossUploadUrl:"https://news-info.ks3-cn-beijing.ksyuncs.com",bucket_name:"news-info"}},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList(),this.addQuillTitle();var t={1:"468px * 552px;图片不能超过 2M;",2:"456px * 288px; 图片不能超过 2M;",3:"686px * 140px; 图片不能超过 2M;",4:"图片不能超过 2M;",5:"图片不能超过 2M;",6:"图片不能超过 2M;",7:"图片不能超过 2M;",8:"1242px * 2208px; 图片不能超过 2M;"};this.imageSize=t[this.form.type],this.$refs["form"].clearValidate()},onVideoComfirm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;var a=e.dialogForm,n=e.editor,r={poster:a.poster,url:1==e.formRadio?a.url:a.videoUrl};n.insertEmbed(e.editorIndex,"video",r),n.setSelection(e.editorIndex+1,{preload:!1}),e.dialogFormVisible=!1,e.dialogForm={poster:null,url:null,videoUrl:null}}))},onDialogClose:function(t){this.dialogForm={poster:null,url:null,videoUrl:null},this.$refs[t].resetFields()},addQuillTitle:function(){var t=document.querySelector(".ql-toolbar"),e=t.querySelectorAll("button"),a=t.querySelectorAll("select");e.forEach((function(t){"ql-script"===t.className?"sub"===t.value?t.title="下标":t.title="上标":"ql-indent"===t.className?"+1"===t.value?t.title="向右缩进":t.title="向左缩进":t.title=dt[t.classList[0]]})),a.forEach((function(t){t.parentNode.title=dt[t.classList[0]]}))},onSubmit:function(t){var e=this;this.$refs[t].validate(function(){var t=Object(x["a"])(Object(w["a"])().mark((function t(a){var n,r,o,s,l,c;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=15;break}if(n=e.form,r=n.organIdList,o=n.linkUrl,s=n.content,l=Object(at["a"])(n,ut),1==e.outUrlRadio?s=null:o=null,c=Object(et["a"])(Object(et["a"])({},l),{},{linkUrl:o,content:s,organIdList:r?r.join(","):null}),"create"!=e.pageType){t.next=10;break}return c.id&&delete c.id,t.next=8,Object(i["a"])(c).then((function(t){e.messageTips("添加",t)}));case 8:t.next=13;break;case 10:if("update"!=e.pageType){t.next=13;break}return t.next=13,Object(i["f"])(c).then((function(t){e.messageTips("修改",t)}));case 13:t.next=17;break;case 15:return e.$nextTick((function(){var t=document.getElementsByClassName("is-error");t[0].scrollIntoView({block:"center",behavior:"smooth"})})),t.abrupt("return",!1);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.$listeners.submited(),this.$listeners.close()):this.$message.error(e.msg)},handleSuccess:function(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n,r,o;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a={policy:e.data.policy,signature:e.data.signature,key:e.data.key,KSSAccessKeyId:e.data.kssAccessKeyId,acl:"public-read",name:e.data.key,file:e.file},t.next=4,Object(nt["b"])(this.ossUploadUrl,a);case 4:n=t.sent,r=this.editor,n?(o=r.getSelection().index,r.insertEmbed(o,"image",n),r.setSelection(o+1)):this.$message.error("图片插入失败"),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:this.uploadImgLoading=!1;case 12:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(e){return t.apply(this,arguments)}return e}(),onReSet:function(t){this.form={title:null,order:null,linkUrl:null,type:this.type,status:1,content:null,organIdList:[]},this.$refs[t].resetFields()},onLook:function(){var t=this.dataInfo;t.title=this.form.title,t.content=this.form.content,setTimeout((function(){var t=document.querySelectorAll(".msgWrap img");t.length>0&&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(i["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(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a={policy:e.data.policy,signature:e.data.signature,key:e.data.key,KSSAccessKeyId:e.data.kssAccessKeyId,acl:"public-read",name:e.data.key,file:e.file},t.next=4,Object(nt["b"])(this.ossUploadUrl,a);case 4:n=t.sent,n?this.dialogForm.poster=n:this.$message.error("上传失败"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:this.uploadImgLoading=!1;case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}(),beforeImgUpload:function(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n,r,o,s,i,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],r=e.size/1024/1024<2,n||this.$message.error("只能上传图片格式!"),r||this.$message.error("上传图片大小不能超过 2MB!"),n&&r&&(this.uploadImgLoading=!0),t.prev=7,o=e.name.replaceAll(" ","_"),s=(new Date).getTime()+o,i={filename:o,bucketName:this.bucket_name,postData:{filename:o,acl:"public-read",key:s,unknowValueField:[]}},t.next=13,Object(nt["a"])(i);case 13:l=t.sent,this.dataObj={policy:l.data.policy,signature:l.data.signature,key:s,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:o},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&&r);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,r,o,s;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(" ","_"),r=(new Date).getTime()+n,o={filename:n,bucketName:this.bucket_name,postData:{filename:n,acl:"public-read",key:r,unknowValueField:[]}},t.next=9,Object(nt["a"])(o);case 9:s=t.sent,this.dataObj={policy:s.data.policy,signature:s.data.signature,key:r,KSSAccessKeyId:s.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(){var t=Object(x["a"])(Object(w["a"])().mark((function t(e){var a,n;return Object(w["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a={policy:e.data.policy,signature:e.data.signature,key:e.data.key,KSSAccessKeyId:e.data.kssAccessKeyId,acl:"public-read",name:e.data.key,file:e.file},t.next=4,Object(nt["b"])(this.ossUploadUrl,a);case 4:n=t.sent,n?(this.$message.success("上传视频成功"),this.dialogForm.videoUrl=n):this.$message.error("上传视频失败"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:this.uploadLoading=!1;case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}(),handleExceed:function(t,e){this.$message.error("您已上传过视频")}},computed:{editor:function(){return this.$refs.myQuillEditor.quill}}},ft=mt,gt=(a("db2ac"),Object(d["a"])(ft,Z,tt,!1,null,"478dd551",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(i["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(i["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(i["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("bc20"),Object(d["a"])(vt,G,X,!1,null,"07b41b65",null)),_t=yt.exports,kt=a("1cb2"),It={components:{banner:f,activity:_,information:j,training:F["a"],flashPage:E,appPage:N["a"],knowledge:V,advert:J,systemNotify:_t,liveHelp:kt["a"]},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}}},wt=It,xt=Object(d["a"])(wt,n,r,!1,null,null,null);e["default"]=xt.exports},"3f22":function(t,e,a){"use strict";a("9914")},"5c98":function(t,e,a){},"6d63":function(t,e,a){},"6ffb":function(t,e,a){},"74be":function(t,e,a){},7661:function(t,e,a){},8271:function(t,e,a){"use strict";a("5c98")},"86e4":function(t,e,a){},9914:function(t,e,a){},a25b:function(t,e,a){},bc20:function(t,e,a){"use strict";a("6d63")},db2ac:function(t,e,a){"use strict";a("86e4")},e04d:function(t,e,a){"use strict";a("a25b")},ed1d:function(t,e,a){"use strict";a("6ffb")},f721:function(t,e,a){"use strict";a("7661")}}]);