(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-627d5c86"],{"1c76":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-container"},[s("div",{staticClass:"app-form"},[s("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[s("div",{staticClass:"app-form-group"},[s("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),s("div",{staticClass:"padding-top-lg"},[s("el-form-item",{attrs:{label:"状态",prop:"status"}},[s("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),s("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),s("el-alert",{staticClass:"margin-top",attrs:{title:"下二代福利奖：购买商品后，商品金额乘以所填百分比，平均发放给一代和二代成员（无成员则不发放）。",type:"error"}})],1),1==t.form.status?[s("el-form-item",{attrs:{label:"奖励配置",prop:"appoint"}},t._l(t.form.reward,(function(e,a){return s("div",{key:a,staticClass:"flex align-center padding-bottom"},[s("el-input",{staticClass:"form-input margin-left",attrs:{type:"text"},model:{value:e.money,callback:function(s){t.$set(e,"money",t._n(s))},expression:"item.money"}},[s("div",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(a+1)+"代奖励")]),s("template",{slot:"append"},[t._v("%")])],2)],1)})),0)]:t._e()],2)]),s("div",{staticClass:"padding-lg flex justify-center"},[s("el-button",{on:{click:t.onBack}},[t._v("返回")]),s("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),s("copyright")],1)},i=[],o=s("7f70"),n=s("8327"),r={name:"Below",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0,reward:[]},levels:[]}},computed:Object(o["a"])({},Object(n["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("below_welfare/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.$util.restJson(this.config.below_welfare);t&&(this.form=t)}}},l=r,c=(s("c0c2"),s("3d7a")),u=Object(c["a"])(l,a,i,!1,null,null,null);e["default"]=u.exports},"6bfd":function(t,e,s){},c0c2:function(t,e,s){"use strict";s("6bfd")}}]);