(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0abf5f"],{1802:function(t,a,n){"use strict";n.r(a);var i=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"app-form margin-top"},[n("div",{staticClass:"app-form-group"},[n("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),n("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)])])},e=[],o=n("7f70"),s=n("8327"),c={name:"PintuanMiandan",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",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(){this.config.pintuan_miandan&&(this.formData=this.$util.restJson(this.config.pintuan_miandan))},handleBasicSubmit:function(t){var a=this;this.api.post("pintuan_miandan/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,u=n("3d7a"),f=Object(u["a"])(r,i,e,!1,null,"71566d6a",null);a["default"]=f.exports}}]);