(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17c06666"],{"1e0a":function(t,i,e){},"3a58":function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"app-form margin-top"},[e("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[e("div",{staticClass:"app-form-group margin-top"},[e("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),e("div",{staticClass:"padding-top-lg"},[e("el-form-item",{attrs:{label:"状态",prop:"status"}},[e("el-radio-group",{model:{value:t.form.status,callback:function(i){t.$set(t.form,"status",i)},expression:"form.status"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),e("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),e("el-alert",{attrs:{title:"开启双轨模式，需开启分销状态，一级团队最多"+t.form.num+"个分销商，多余的分销商可自由分配到自己团队中不满"+t.form.num+"个分销商的队员的下面",type:"error"}})],1)],1)]),e("div",{staticClass:"padding-lg flex justify-center"},[e("el-button",{on:{click:t.onBack}},[t._v("返回")]),e("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),e("copyright")],1)},a=[],o=e("7f70"),n=e("8327"),r={name:"DoubleTrack",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0,num:2}}},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)},handleSelect:function(t,i){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){if(i){var e=t.config;if(1!=t.form.status||1!=e.pyramid.status&&1!=e.fenxiao.transfer_mode&&1!=e.fenxiao.yies_mode)t.submitForm();else{var s="您已开启其他模式，为了避免影响本模式功能将会关闭其他模式。";1==e.pyramid.status&&(s="您已开启三三复制模式，为了避免影响本模式功能将会关闭三三复制模式。"),1==e.fenxiao.transfer_mode&&(s="您已开启链动2+1架构，为了避免影响本模式功能将会关闭链动2+1架构。"),1==e.fenxiao.yies_mode&&(s="您已开启321模式，为了避免影响本模式功能将会关闭321模式。"),t.$util.confirm(s,(function(i){i&&t.submitForm()}))}}}))},submitForm:function(){var t=this;this.api.post("double_track/config/set",this.form).then((function(i){1==i.code?(t.$util.success(i.message),t.$store.dispatch("settings/getSetting"),t.onBack()):t.$util.error(i.message)}))},init:function(){var t=this.config;t&&t.double_track&&(this.form=this.$util.restJson(t.double_track))}}},c=r,u=(e("e4bc"),e("3d7a")),l=Object(u["a"])(c,s,a,!1,null,null,null);i["default"]=l.exports},e4bc:function(t,i,e){"use strict";e("1e0a")}}]);