(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e2d00"],{"7ffa":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"},[t.config.id?s("div",{staticClass:"app-form"},[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(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-top-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):t._e(),s("copyright")],1)},e=[],o=s("7f70"),n=s("8327"),c={name:"Contract",components:{},data:function(){return{activeIndex:"1",rules:{},form:{}}},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,i){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){i&&t.api.post("contract/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;t.contract&&(this.form=this.$util.restJson(t.contract))}}},r=c,l=s("3d7a"),u=Object(l["a"])(r,a,e,!1,null,null,null);i["default"]=u.exports}}]);