(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-044ba545"],{"2fd7":function(t,e,n){"use strict";n.r(e);var s=n("4e3e"),i=n("b3ad"),r=(n("b6c4"),{data:()=>({form:{name:""}}),components:{MaterialSelect:i.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.addSigninLevel()})},addSigninLevel(){Object(s.g)(this.form).then(t=>{1==t.code?(this.$message.success("增加成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg)})}},mounted(){}}),a=n("2877"),o=Object(a.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ls-card"},[n("el-page-header",{attrs:{content:"新建签到等级"},on:{back:function(e){return t.$router.go(-1)}}})],1),n("div",{staticClass:"ls-card m-t-16"},[n("div",{staticClass:"card-title"},[t._v("新建签到等级")]),n("div",{staticClass:"card-content m-t-24"},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"140px"}},[n("el-form-item",{attrs:{required:"",prop:"name",label:"签到等级名称"}},[n("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),n("el-form-item",{attrs:{required:"",prop:"days",label:"最低签到次数"}},[n("el-input",{attrs:{type:"number"},model:{value:t.form.days,callback:function(e){t.$set(t.form,"days",e)},expression:"form.days"}})],1),n("el-form-item",{attrs:{prop:"icon",label:"等级图标"}},[n("material-select",{attrs:{limit:1},model:{value:t.form.icon,callback:function(e){t.$set(t.form,"icon",e)},expression:"form.icon"}})],1)],1)],1)]),n("div",{staticClass:"bg-white ls-fixed-footer"},[n("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("新建")])],1)])])}),[],!1,null,null,null);e.default=o.exports},"4e3e":function(t,e,n){"use strict";n.d(e,"g",(function(){return i})),n.d(e,"j",(function(){return r})),n.d(e,"i",(function(){return a})),n.d(e,"k",(function(){return o})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"e",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"f",(function(){return g})),n.d(e,"l",(function(){return p}));var s=n("6b2d");const i=t=>s.a.post("/sign.signLevel/create",t),r=t=>s.a.get("/sign.signLevel/list",{params:t}),a=t=>s.a.get("/sign.signLevel/detail",{params:t}),o=t=>s.a.post("/sign.signLevel/update",t),l=t=>s.a.get("/sign.signLevel/del",{params:t}),c=t=>s.a.post("/sign.signEmote/create",t),u=t=>s.a.get("/sign.signEmote/list",{params:t}),m=t=>s.a.get("/sign.signEmote/detail",{params:t}),d=t=>s.a.post("/sign.signEmote/update",t),f=t=>s.a.get("/sign.signEmote/del",{params:t}),g=t=>s.a.get("/sign.sign/getConfig",{params:t}),p=t=>s.a.post("/sign.sign/setConfig",t)}}]);