(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56757df2"],{"6eb8":function(t,i,s){"use strict";s.r(i);var e=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)},o=[],a=s("7f70"),n=s("8327"),r={name:"fenxiaoscore",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0}}},computed:Object(a["a"])({},Object(n["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){i&&t.api.post("fenxiaoscore/config/set",t.form).then((function(i){1==i.code?(t.$util.success(i.message),t.$store.dispatch("settings/getSetting")):t.$util.error(i.message)}))}))},init:function(){var t=this.config;if(t.fenxiaoscore){var i=this.$util.restJson(t.fenxiaoscore);this.form=i}}}},c=r,l=(s("d0634"),s("3d7a")),u=Object(l["a"])(c,e,o,!1,null,null,null);i["default"]=u.exports},ce94:function(t,i,s){},d0634:function(t,i,s){"use strict";s("ce94")}}]);