(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0fad"],{"43a9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[e._m(0),r("ApplyTemplateForm",{attrs:{form:e.form,loading:e.loading},on:{"update:form":function(t){e.form=t},submit:e.handleSubmit}})],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container--hd pb20"},[r("h3",[e._v("新增报名模板")])])}],c=(r("8e6e"),r("ac6a"),r("456d"),r("2397"),r("a481"),r("ade3")),i=(r("96cf"),r("1da1")),o=r("d4ec"),s=r("bee2"),u=r("99de"),p=r("7e84"),f=r("262e"),l=r("9ab4"),d=r("60a3"),b=r("4159"),m=r("5149");function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){Object(c["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t=Object(p["a"])(t),Object(u["a"])(e,_()?Reflect.construct(t,r||[],Object(p["a"])(e).constructor):t.apply(e,r))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}var y=function(e){function t(){var e;return Object(o["a"])(this,t),e=j(this,t,arguments),e.loading=!1,e.form={template_name:"",template_des:"",template_info:[]},e}return Object(f["a"])(t,e),Object(s["a"])(t,[{key:"handleSubmit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,t=this.form.template_info.map((function(e){return{field_id:e.field_id,field_code:e.field_code,is_backstage_required:e.is_backstage_required,is_wechat_required:e.is_wechat_required}})),e.next=5,Object(m["a"])(h(h({},this.form),{},{template_info:JSON.stringify(t)}));case 5:this.$message({message:"新增成功",type:"success"}),this.$router.replace({name:"CourseManage",query:{type:"4"}});case 7:return e.prev=7,this.loading=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[0,,7,10]])})));function t(){return e.apply(this,arguments)}return t}()}]),t}(d["i"]);y=Object(l["a"])([Object(d["a"])({components:{ApplyTemplateForm:b["default"]}})],y);var v=y,g=v,w=r("2877"),k=Object(w["a"])(g,n,a,!1,null,"0531680d",null);t["default"]=k.exports}}]);