(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e13a6"],{"7a17":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;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"},[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(e){t.$set(t.form,"status",e)},expression:"form.status"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),s("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),s("el-form-item",{attrs:{label:"活动审核",prop:"is_shenhe"}},[s("el-radio-group",{model:{value:t.form.is_shenhe,callback:function(e){t.$set(t.form,"is_shenhe",e)},expression:"form.is_shenhe"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),s("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),s("el-form-item",{attrs:{label:"活动编辑审核",prop:"edit_shenhe"}},[s("el-radio-group",{model:{value:t.form.edit_shenhe,callback:function(e){t.$set(t.form,"edit_shenhe",e)},expression:"form.edit_shenhe"}},[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)},a=[],o=s("7f70"),n=s("8327"),r=s("1fe5"),l={name:"CrazyIndex",components:{selgoods:r["a"]},data:function(){return{activeIndex:"1",rules:{},form:{status:1,is_shenhe:0,edit_shenhe:0}}},computed:Object(o["a"])({},Object(n["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("activity/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.config;t.activity&&(this.form=this.$util.restJson(t.activity))}}},c=l,u=s("3d7a"),d=Object(u["a"])(c,i,a,!1,null,null,null);e["default"]=d.exports}}]);