(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d229bd2"],{df71:function(t,a,i){"use strict";i.r(a);var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("form-generator",{ref:"basicForm",attrs:{"form-config":t.basicFormConfig,"show-cancel":!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.basicFormData,callback:function(a){t.basicFormData=a},expression:"basicFormData"}})],1)])])},n=[],o=i("7f70"),s=i("8327"),c={name:"Floatamount",computed:Object(o["a"])({},Object(s["b"])(["config"])),data:function(){return{basicFormData:{status:0},basicFormConfig:[{type:"radio",label:"是否开启",prop:"status",required:!0,width:"400px",tip:"开启后到商品编辑菜单栏进行浮动范围设置",options:[{label:"开启",value:1},{label:"关闭",value:0}]}]}},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){this.config.floatamount&&(this.basicFormData=this.$util.restJson(this.config.floatamount))},handleBasicSubmit:function(t){var a=this;this.api.post("floatamount/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.go(-1)}}},r=c,l=i("3d7a"),u=Object(l["a"])(r,e,n,!1,null,"23cbd7ef",null);a["default"]=u.exports}}]);