(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9bb6d298"],{5789:function(t,e,i){"use strict";i("d46a")},d46a:function(t,e,i){},e244:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group margin-top"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("div",{staticClass:"padding-top-lg"},[i("el-form-item",{attrs:{label:"状态",prop:"status"}},[i("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?i("el-form-item",{attrs:{label:"规则设置"}},[t._l(t.form.rule,(function(e,s){return i("div",{staticClass:"flex align-center padding-bottom"},[i("el-input",{staticClass:"form-input margin-left",attrs:{type:"number"},model:{value:e.achievement,callback:function(i){t.$set(e,"achievement",i)},expression:"item.achievement"}},[i("template",{slot:"prepend"},[t._v("直推团队")])],2),i("el-input",{staticClass:"form-input margin-left",attrs:{type:"number"},model:{value:e.reward,callback:function(i){t.$set(e,"reward",i)},expression:"item.reward"}},[i("template",{slot:"prepend"},[t._v("奖励")]),i("template",{slot:"append"},[t._v("元")])],2),i("el-button",{staticClass:"margin-left",attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.delRule(s)}}})],1)})),i("div",{},[i("el-button",{attrs:{type:"success",size:"mini",icon:"el-icon-plus"},on:{click:t.addRule}},[t._v("添加")])],1)],2):t._e()],1)]),i("div",{staticClass:"padding-lg flex justify-center"},[i("el-button",{on:{click:t.onBack}},[t._v("返回")]),i("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),i("copyright")],1)},a=[],n=i("7f70"),o=(i("e8d6"),i("baf6"),i("8327")),r={name:"DirectpushTeam",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0,show_month_commission:0,rule:[]}}},computed:Object(n["a"])({},Object(o["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},addRule:function(){this.form.rule.push({achievement:"",reward:""})},delRule:function(t){this.form.rule.splice(t,1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("directpush_team/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.config;t.directpush_team&&(this.form=this.$util.restJson(t.directpush_team))}}},l=r,c=(i("5789"),i("3d7a")),u=Object(c["a"])(l,s,a,!1,null,null,null);e["default"]=u.exports}}]);