(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-87b962fc"],{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 n})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return m})),r.d(e,"d",(function(){return l})),r.d(e,"e",(function(){return u})),r.d(e,"g",(function(){return p}));var a=r("6b2d");const s=t=>a.a.post("/form.template/update",t),o=t=>a.a.get("/form.template/list",{params:t}),n=t=>a.a.post("/form.template/create",t),i=t=>a.a.get("/form.template/detail",{params:t}),c=t=>a.a.get("/form.template/del",{params:t}),m=t=>a.a.get("/form.templateItem/list",{params:t}),l=t=>a.a.post("/form.templateItem/create",t),u=t=>a.a.get("/form.templateItem/detail",{params:t}),p=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(){}}),n=r("2877"),i=Object(n.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=i.exports},"6b2d":function(t,e,r){"use strict";var a=r("0613"),s=r("bc3a"),o=r.n(s),n=r("d70b"),i=r("afbc"),c=r("5c96"),m=r("6ddb");const l={baseURL:n.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},u=(Object(m.g)(()=>(a.a.commit("setToken",""),a.a.commit("setUserInfo",{}),a.a.commit("setPermission",{}),i.b.push("/account/login"),Promise.reject())),o.a.create(l));u.interceptors.request.use(t=>{const e=a.a.getters.token;return e&&(t.headers.token=e),t.headers.version=n.a.version,t},t=>Promise.reject(t)),u.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=u}}]);