(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21f25b"],{d91a: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",{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)])])},n=[],o=e("7f70"),s=e("8327"),c={name:"PayrouteSet",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(){this.config.payroute&&(this.formData=this.$util.restJson(this.config.payroute))},handleBasicSubmit:function(t){var a=this;this.api.post("payroute/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=e("3d7a"),f=Object(u["a"])(r,i,n,!1,null,"63ed1dec",null);a["default"]=f.exports}}]);