(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217175"],{c4f4:function(t,a,e){"use strict";e.r(a);var n=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("div",{staticClass:"app-form-group"},[e("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),e("form-generator",{ref:"basicForm",attrs:{"form-config":t.formConfig,"show-footer":!0,showCancel:!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.formData,callback:function(a){t.formData=a},expression:"formData"}})],1)])])},i=[],o=e("7f70"),s=e("8327"),c={name:"JiandanRecommend",data:function(){return{formData:{status:1}}},computed:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",required:!0,width:"400px",tip:"见单推荐奖仅支持跟随等级的见单奖，开启后，到分销等级进行编辑",options:[{label:"启用",value:1},{label:"禁用",value:0}]}];return t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){var t=this.$util.restJson(this.config.jiandan_recommend);t&&(this.formData=t)},handleBasicSubmit:function(t){var a=this;this.api.post("jiandan_recommend/config/set",t).then((function(t){1==t.code?(a.$util.success(t.message),a.$store.dispatch("settings/getSetting")):a.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},r=c,f=e("3d7a"),l=Object(f["a"])(r,n,i,!1,null,"ea9ac7ec",null);a["default"]=l.exports}}]);