(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-abf75d5a"],{"633c":function(t,a,i){},e946:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("el-form",{ref:"dataForm",attrs:{model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),i("div",{staticClass:"padding-top-lg"},[i("el-form-item",{attrs:{label:"状态",prop:"status"}},[i("el-radio-group",{model:{value:t.form.status,callback:function(a){t.$set(t.form,"status",a)},expression:"form.status"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1)]),i("div",{staticClass:"padding-lg flex justify-center"},[i("el-button",{on:{click:t.onBack}},[t._v("返回")]),i("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),i("copyright")],1)},o=[],e=i("7f70"),n=i("8327"),c={name:"Chaoyue",data:function(){return{form:{status:1}}},computed:Object(e["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(a){a&&t.api.post("chaoyue/config/set",t.form).then((function(a){1===a.code?(t.$util.success(a.message),t.$store.dispatch("settings/getSetting")):t.$util.error(a.message)}))}))},init:function(){var t=this.config;t.chaoyue&&(this.form=this.$util.restJson(t.chaoyue))}}},r=c,u=(i("ef5a"),i("3d7a")),l=Object(u["a"])(r,s,o,!1,null,null,null);a["default"]=l.exports},ef5a:function(t,a,i){"use strict";i("633c")}}]);