(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43498357"],{"3f53":function(t,a,e){},6992:function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;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(a){t.$set(t.form,"status",a)},expression:"form.status"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),e("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?[e("el-form-item",{attrs:{label:"排列架构",prop:"mode"}},[e("el-radio-group",{model:{value:t.form.mode,callback:function(a){t.$set(t.form,"mode",a)},expression:"form.mode"}},[e("el-radio",{attrs:{label:0}},[t._v("小公排架构")]),e("el-radio",{attrs:{label:1}},[t._v("大公排架构")])],1)],1),0==t.form.mode?e("el-form-item",{attrs:{label:"滑落方式",prop:"slip_method"}},[e("el-radio-group",{model:{value:t.form.slip_method,callback:function(a){t.$set(t.form,"slip_method",a)},expression:"form.slip_method"}},[e("el-radio",{attrs:{label:0}},[t._v("顺序滑落")]),e("el-radio",{attrs:{label:1}},[t._v("平均滑落")])],1)],1):t._e(),e("el-form-item",{attrs:{label:"跳出模式",prop:"is_transfer"}},[e("el-radio-group",{model:{value:t.form.is_transfer,callback:function(a){t.$set(t.form,"is_transfer",a)},expression:"form.is_transfer"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),e("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),e("el-form-item",{attrs:{label:"平级奖计算",prop:"pingji_calculate"}},[e("el-radio-group",{model:{value:t.form.pingji_calculate,callback:function(a){t.$set(t.form,"pingji_calculate",a)},expression:"form.pingji_calculate"}},[e("el-radio",{attrs:{label:0}},[t._v("当前关系计算")]),e("el-radio",{attrs:{label:1}},[t._v("原始关系计算")])],1)],1),e("el-form-item",{attrs:{label:"直推奖计算",prop:"commission1_calculate"}},[e("el-radio-group",{model:{value:t.form.commission1_calculate,callback:function(a){t.$set(t.form,"commission1_calculate",a)},expression:"form.commission1_calculate"}},[e("el-radio",{attrs:{label:0}},[t._v("当前关系计算")]),e("el-radio",{attrs:{label:1}},[t._v("原始关系计算")])],1)],1)]:t._e()],2)]),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)},i=[],s=e("7f70"),r=e("8327"),l={name:"TransferMode",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0,mode:0,slip_method:0,is_transfer:0,pingji_calculate:0,commission1_calculate:0}}},computed:Object(s["a"])({},Object(r["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,a){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(a){if(a){var e=t.config;if(1!=t.form.status||1!=e.fenxiao.transfer_mode&&1!=e.fenxiao.yies_mode&&1!=e.double_track.status)t.submitForm();else{var o="您已开启其他模式，为了避免影响本模式功能将会关闭其他模式。";1==e.fenxiao.transfer_mode&&(o="您已开启链动2+1架构，为了避免影响本模式功能将会关闭链动2+1架构。"),1==e.fenxiao.yies_mode&&(o="您已开启321模式，为了避免影响本模式功能将会关闭321模式。"),1==e.double_track.status&&(o="您已开启双轨模式，为了避免影响本模式功能将会关闭双轨模式。"),t.$util.confirm(o,(function(a){a&&t.submitForm()}))}}}))},submitForm:function(){var t=this;this.api.post("pyramid/config/set",this.form).then((function(a){1==a.code?(t.$util.success(a.message),t.$store.dispatch("settings/getSetting")):t.$util.error(a.message)}))},init:function(){var t=this.config;if(t){this.form={status:t.pyramid.status,mode:t.pyramid.mode,is_transfer:t.pyramid.is_transfer,slip_method:t.pyramid.slip_method,pingji_calculate:t.pyramid.pingji_calculate,commission1_calculate:t.pyramid.commission1_calculate}}}}},n=l,c=(e("6afb"),e("3d7a")),m=Object(c["a"])(n,o,i,!1,null,null,null);a["default"]=m.exports},"6afb":function(t,a,e){"use strict";e("3f53")}}]);