(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54654377"],{"1ad6":function(t,a,e){"use strict";e("1d64")},"1d64":function(t,a,e){},6777:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-container"},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-form"},[e("div",{staticClass:"app-form-group"},[e("div",{staticClass:"app-form-ti margin-top"},[t._v("基础设置")]),e("form-generator",{ref:"formGenerator",attrs:{"form-config":t.formConfig,"submit-text":"保存配置","show-cancel":!0,cancelText:"返回"},on:{submit:t.submit,cancel:t.onBack},model:{value:t.form,callback:function(a){t.form=a},expression:"form"}})],1)])])},n=[],o=e("7f70"),s=(e("e8d6"),e("8327")),r={name:"Atransfer",data:function(){return{id:"",form:{status:1},loading:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",options:[{label:"开启",value:1},{label:"关闭",value:0}]}];return 1==this.form.status&&t.push({type:"radio",label:"转移方式",prop:"zhitui_user_atransfer",options:[{label:"转移下级业绩",value:1},{label:"转移自己业绩",value:0}]}),t}}),created:function(){this.init()},methods:{init:function(){var t=this.config.atransfer;t&&(this.form=this.$util.restJson(t))},onBack:function(){this.$router.go(-1)},submit:function(){var t=this;this.api.post("atransfer/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)}))}}},c=r,u=(e("1ad6"),e("3d7a")),l=Object(u["a"])(c,i,n,!1,null,"4707d268",null);a["default"]=l.exports}}]);