chunk-853d.a6eb8e90.js 4.0 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-853d"],{"+h1d":function(t,e,s){"use strict";var a={components:{video_course:s("bmyc").a},props:{defaultActive:{type:String,default:""},slideName:{type:String,default:""},slideBottomName:{type:String,default:""},top_style:{type:String,default:""}},data:function(){return{search:{}}},mounted:function(){},methods:{}},i=(s("sxda"),s("KHd+")),o=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"all"},[s("video_course",{attrs:{defaultActive:t.defaultActive}}),t._v(" "),s("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[t._t("top-other"),t._v(" "),s("div",{staticClass:"top-pane",style:t.top_style},[s("div",{staticClass:"vue-main-title"},[s("div",{staticClass:"vue-main-title-left"}),t._v(" "),s("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideName))]),t._v(" "),t._t("top")],2),t._v(" "),s("div",{staticClass:"vue-search"},[t._t("content")],2)]),t._v(" "),t.slideBottomName?s("div",{staticClass:"table-pane"},[s("div",{staticClass:"vue-main-title"},[s("div",{staticClass:"vue-main-title-left"}),t._v(" "),s("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideBottomName))])]),t._v(" "),s("div",{staticClass:"vue-search"},[t._t("content-bottom")],2)]):t._e(),t._v(" "),t.slideBottomName?s("div",{staticClass:"vue-page"},[t._t("vue-page")],2):t._e(),t._v(" "),t._t("bottom-other")],2)],1)},[],!1,null,"121101e6",null);o.options.__file="slide_cpm.vue";e.a=o.exports},"6oky":function(t,e,s){},E4ZW:function(t,e,s){},MCsC:function(t,e,s){"use strict";s.r(e);var a=s("14Xm"),i=s.n(a),o=s("D3Ub"),r=s.n(o),n={components:{slide_cpm:s("+h1d").a},data:function(){return{search:{sort:"",name:"",status:0},id:""}},mounted:function(){this.id=this.$route.params.id,1*this.id!=0&&this.getCourseCategoryDetail()},methods:{saveCourseCategory:function(){var t=this;return r()(i.a.mark(function e(){var s,a,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$http.pc_post("plugin/wechatVideoCourses/saveCourseCategory",{form:t.search,category_id:t.id});case 2:s=e.sent,s.data,a=s.result,o=s.msg,a?(t.$message.success(o),t.$router.push(t.fun.getUrl("videoCourseClassification",{},{}))):t.$message.error(o);case 7:case"end":return e.stop()}},e,t)}))()},getCourseCategoryDetail:function(){var t=this;return r()(i.a.mark(function e(){var s,a,o,r;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$http.pc_post("plugin/wechatVideoCourses/getCourseCategoryDetail",{category_id:t.id});case 2:s=e.sent,a=s.data,o=s.result,r=s.msg,o?t.search=a.category:t.$message.error(r);case 7:case"end":return e.stop()}},e,t)}))()}}},c=(s("mfKx"),s("KHd+")),l=Object(c.a)(n,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"video-course"},[s("slide_cpm",{attrs:{defaultActive:"videoCourseClassification",slideName:"分类编辑",top_style:"height: 100vh;"}},[s("el-form",{staticClass:"demo-form-inline",attrs:{slot:"content","label-width":"200px"},slot:"content"},[s("el-form-item",{attrs:{label:"排序"}},[s("el-input",{staticStyle:{width:"60%"},model:{value:t.search.sort,callback:function(e){t.$set(t.search,"sort",e)},expression:"search.sort"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"分类名称"}},[s("el-input",{staticStyle:{width:"60%"},model:{value:t.search.name,callback:function(e){t.$set(t.search,"name",e)},expression:"search.name"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"状态"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}})],1)],1),t._v(" "),s("div",{staticClass:"send-buttons",attrs:{slot:"bottom-other"},slot:"bottom-other"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveCourseCategory}},[t._v("提交")])],1)],1)],1)},[],!1,null,"0440375e",null);l.options.__file="classify_editing.vue";e.default=l.exports},mfKx:function(t,e,s){"use strict";var a=s("6oky");s.n(a).a},sxda:function(t,e,s){"use strict";var a=s("E4ZW");s.n(a).a}}]);