1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3277ab03"],{"0687":function(t,e,n){"use strict";n.d(e,"c",function(){return c}),n.d(e,"e",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return p});var a=n("b775"),o=n("4328"),i=n.n(o),r="/api-cms";function c(t){return Object(a["a"])({url:r+"/news/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:r+"/news/update",method:"post",data:i.a.stringify(t)})}function u(t){return Object(a["a"])({url:r+"/news/add",method:"post",data:i.a.stringify(t)})}function l(t){return Object(a["a"])({url:r+"/news/query",method:"get",params:t})}function p(t){return Object(a["a"])({url:r+"/news/del/"+t.id,method:"post",data:i.a.stringify(t)})}},"097a":function(t,e,n){},"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=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 i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(t,e,n){var r=i(),c=t-r,s=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=s;var i=Math.easeInOutQuad(u,r,c,e);o(i),u<e?a(t):n&&"function"===typeof n&&n()};l()}},"1cb8":function(t,e,n){"use strict";var a=n("7c50"),o=n.n(a);o.a},2623:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"BANNER管理",name:"0"}},[t.activeStatus[0]?n("banner"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"精彩活动",name:"1"}},[t.activeStatus[1]?n("activity"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"热门资讯",name:"2"}},[t.activeStatus[2]?n("information"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"专项训练",name:"3"}},[t.activeStatus[3]?n("training"):t._e()],1)],1)],1)])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v(" 内容管理 ")])}],i=(n("7f7f"),n("6b54"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTeaching("create")}}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",label:"轮播图"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"跳转连接"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.linkUrl+"/"+e.row.id)+"\n ")]}}])}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,0)}}},[t._v("停用")]):n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,1)}}},[t._v("启用")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])}),r=[],c=n("0687"),s=n("333d"),u=(n("4360"),{components:{pagination:s["a"]},data:function(){return{tableList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,e={rows:this.pageInfo.limit,page:this.pageInfo.page,type:3};Object(c["c"])(e).then(function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},openTeaching:function(t,e){var n={};"update"==t&&(n.id=e.id),n.type=3,n.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:n})},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c["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 n=this,a=["停用","启用"];Object(c["e"])({id:t.id,status:e}).then(function(t){200==t.code?(n.$message.success(a[e]+"成功"),n.getList()):n.$message.error(t.msg)})}}}),l=u,p=(n("1cb8"),n("2877")),f=Object(p["a"])(l,i,r,!1,null,"1a2048bf",null),g=f.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTeaching("create")}}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",label:"轮播图"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"跳转连接"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.linkUrl+"/"+e.row.id)+"\n ")]}}])}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,0)}}},[t._v("停用")]):n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,1)}}},[t._v("启用")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])},m=[],b={components:{pagination:s["a"]},data:function(){return{tableList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,e={rows:this.pageInfo.limit,page:this.pageInfo.page,type:1};Object(c["c"])(e).then(function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},openTeaching:function(t,e){var n={};"update"==t&&(n.id=e.id),n.type=1,n.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:n})},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c["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 n=this,a=["停用","启用"];Object(c["e"])({id:t.id,status:e}).then(function(t){200==t.code?(n.$message.success(a[e]+"成功"),n.getList()):n.$message.error(t.msg)})}}},h=b,v=(n("31e9"),Object(p["a"])(h,d,m,!1,null,"4d658e9c",null)),_=v.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTeaching("create")}}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",label:"轮播图"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"跳转连接"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.linkUrl+"/"+e.row.id)+"\n ")]}}])}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,0)}}},[t._v("停用")]):n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,1)}}},[t._v("启用")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])},w=[],I={components:{pagination:s["a"]},data:function(){return{tableList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,e={rows:this.pageInfo.limit,page:this.pageInfo.page,type:2};Object(c["c"])(e).then(function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},openTeaching:function(t,e){var n={};"update"==t&&(n.id=e.id),n.type=2,n.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:n})},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c["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 n=this,a=["停用","启用"];Object(c["e"])({id:t.id,status:e}).then(function(t){200==t.code?(n.$message.success(a[e]+"成功"),n.getList()):n.$message.error(t.msg)})}}},k=I,S=(n("4523"),Object(p["a"])(k,y,w,!1,null,"5410f13e",null)),$=S.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTeaching("create")}}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",label:"轮播图"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticClass:"bannerImg",attrs:{src:t.row.coverImage,alt:""}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"跳转连接"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.linkUrl+"/"+e.row.id)+"\n ")]}}])}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),1==e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,0)}}},[t._v("停用")]):n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onStop(e.row,1)}}},[t._v("启用")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])},L=[],O={components:{pagination:s["a"]},data:function(){return{tableList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,e={rows:this.pageInfo.limit,page:this.pageInfo.page,type:4};Object(c["c"])(e).then(function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},openTeaching:function(t,e){var n={};"update"==t&&(n.id=e.id),n.type=4,n.pageType=t,this.$router.push({path:"/contentManager/contentOperation",query:n})},onDel:function(t){var e=this;this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c["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 n=this,a=["停用","启用"];Object(c["e"])({id:t.id,status:e}).then(function(t){200==t.code?(n.$message.success(a[e]+"成功"),n.getList()):n.$message.error(t.msg)})}}},T=O,z=(n("50c8"),Object(p["a"])(T,x,L,!1,null,"d75a0568",null)),j=z.exports,C={components:{banner:g,activity:_,information:$,training:j},name:"teacherDetail",data:function(){return{activeName:"0",activeStatus:[!0,!1,!1,!1]}},created:function(){var t=this.$route.query.type;null!=t&&(this.activeName=t.toString(),this.activeStatus[t]=!0)},methods:{handleClick:function(t,e){this.activeName=t.name,this.activeStatus[t.name]=!0}}},E=C,B=Object(p["a"])(E,a,o,!1,null,null,null);e["default"]=B.exports},"31e9":function(t,e,n){"use strict";var a=n("097a"),o=n.n(a);o.a},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},o=[],i=(n("c5f6"),n("09f4")),r={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(i["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},c=r,s=(n("c0b9"),n("2877")),u=Object(s["a"])(c,a,o,!1,null,"31cb099a",null);e["a"]=u.exports},"436f":function(t,e,n){},4523:function(t,e,n){"use strict";var a=n("7edd"),o=n.n(a);o.a},"50c8":function(t,e,n){"use strict";var a=n("436f"),o=n.n(a);o.a},"7c50":function(t,e,n){},"7edd":function(t,e,n){},c0b9:function(t,e,n){"use strict";var a=n("de4e"),o=n.n(a);o.a},de4e:function(t,e,n){}}]);
|