(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ca79ad28"],{"0c6a":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form"},[i("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("div",{staticClass:"padding-top-lg"},[i("el-form-item",{attrs:{label:"状态",prop:"is_appoint"}},[i("el-radio-group",{model:{value:t.form.is_appoint,callback:function(e){t.$set(t.form,"is_appoint",e)},expression:"form.is_appoint"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),i("el-alert",{staticClass:"margin-top",attrs:{title:"开启指定奖后，每个等级的用可以指定团队中人升级并获得指定奖，只能指定比自己等级低的等级",type:"error"}})],1),1==t.form.is_appoint?[t._l(t.levels,(function(e,a){return[e.sort>0?i("el-form-item",{key:a,attrs:{label:"分销等级【"+e.title+"】",prop:"appoint"}},t._l(t.levels,(function(a,n){return i("div",{key:n,staticClass:"flex align-center padding-bottom"},[e.sort>a.sort?[i("el-input",{staticClass:"form-input margin-left",attrs:{type:"text"},model:{value:t.form.appoint["level"+e.id]["level"+a.id].num,callback:function(i){t.$set(t.form.appoint["level"+e.id]["level"+a.id],"num",t._n(i))},expression:"form.appoint[`level${item.id}`][`level${dd.id}`].num"}},[i("div",{staticStyle:{"min-width":"170px"},attrs:{slot:"prepend"},slot:"prepend"},[t._v("指定【"+t._s(a.title)+"】人数")]),i("template",{slot:"append"},[t._v("人")])],2),i("el-input",{staticClass:"form-input margin-left",attrs:{type:"number"},model:{value:t.form.appoint["level"+e.id]["level"+a.id].money,callback:function(i){t.$set(t.form.appoint["level"+e.id]["level"+a.id],"money",i)},expression:"form.appoint[`level${item.id}`][`level${dd.id}`].money"}},[i("template",{slot:"prepend"},[t._v("指定每人奖励")]),i("template",{slot:"append"},[t._v("元")])],2)]:t._e()],2)})),0):t._e()]}))]:t._e()],2)]),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)},n=[],o=i("7f70"),l=i("8327"),s={name:"Ladderpush",components:{},data:function(){return{activeIndex:"1",rules:{},form:{is_appoint:0,appoint:{}},levels:[]}},computed:Object(o["a"])({},Object(l["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("appoint/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,e=this.config.fenxiao;e&&(this.form={is_appoint:e.is_appoint,appoint:e.appoint},this.api.get("fenxiao/level/all").then((function(e){1==e.code&&(t.levels=e.data.list)})))}}},p=s,r=(i("cf14"),i("3d7a")),c=Object(r["a"])(p,a,n,!1,null,null,null);e["default"]=c.exports},"72e1":function(t,e,i){},cf14:function(t,e,i){"use strict";i("72e1")}}]);