(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5b0c94ca"],{3011:function(t,e,r){"use strict";r.d(e,"i",(function(){return s})),r.d(e,"h",(function(){return o})),r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return n})),r.d(e,"b",(function(){return m})),r.d(e,"f",(function(){return l})),r.d(e,"d",(function(){return c})),r.d(e,"e",(function(){return u})),r.d(e,"g",(function(){return f}));var a=r("6b2d");const s=t=>a.a.post("/form.template/update",t),o=t=>a.a.get("/form.template/list",{params:t}),i=t=>a.a.post("/form.template/create",t),n=t=>a.a.get("/form.template/detail",{params:t}),m=t=>a.a.get("/form.template/del",{params:t}),l=t=>a.a.get("/form.templateItem/list",{params:t}),c=t=>a.a.post("/form.templateItem/create",t),u=t=>a.a.get("/form.templateItem/detail",{params:t}),f=t=>a.a.post("/form.templateItem/update",t)},"50d4":function(t,e,r){"use strict";r.r(e);var a=r("3011"),s=r("b3ad"),o=(r("b6c4"),{data:()=>({form:{name:"",description:"",status:0}}),components:{MaterialSelect:s.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.createFormTemp()})},createFormTemp(){Object(a.a)(this.form).then(t=>{1==t.code?(this.$message.success("创建成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg)})}},mounted(){}}),i=r("2877"),n=Object(i.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[t._v("新建表单模板")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[r("el-form-item",{attrs:{required:"",prop:"name",label:"模板名称"}},[r("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),r("el-form-item",{attrs:{required:"",prop:"description",label:"模板描述"}},[r("el-input",{staticStyle:{width:"280px"},attrs:{type:"textarea",rows:"5"},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}})],1),r("el-form-item",{attrs:{prop:"status",label:"启用"}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1)],1)],1)]),r("div",{staticClass:"bg-white ls-fixed-footer"},[r("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("新建")])],1)])])}),[],!1,null,null,null);e.default=n.exports}}]);