(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-293cabf7"],{"480d":function(t,i,s){},4833:function(t,i,s){"use strict";s("480d")},"82e1":function(t,i,s){"use strict";s.r(i);var a=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"app-container"},[s("div",{staticClass:"app-form margin-top"},[s("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[s("div",{staticClass:"app-form-group margin-top"},[s("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),s("div",{staticClass:"padding-top-lg"},[s("el-form-item",{attrs:{label:"状态",prop:"status"}},[s("el-radio-group",{model:{value:t.form.status,callback:function(i){t.$set(t.form,"status",i)},expression:"form.status"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),s("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1)]),s("div",{staticClass:"padding-lg flex justify-center"},[s("el-button",{on:{click:t.onBack}},[t._v("返回")]),s("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),s("copyright")],1)},e=[],n=s("7f70"),o=s("8327"),r={name:"Pingji",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0}}},computed:Object(n["a"])({},Object(o["b"])(["config","fenxiao"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,i){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){i&&t.api.post("gift/config/set",t.form).then((function(i){1==i.code?(t.$util.success(i.message),t.$store.dispatch("settings/getSetting"),t.onBack()):t.$util.error(i.message)}))}))},init:function(){var t=this.config;t.gift&&(this.form=this.$util.restJson(t.gift))}}},c=r,l=(s("4833"),s("3d7a")),u=Object(l["a"])(c,a,e,!1,null,null,null);i["default"]=u.exports}}]);