(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08c4f008"],{1721:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group margin-top"},[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(e){t.$set(t.form,"status",e)},expression:"form.status"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),i("el-alert",{attrs:{title:"开启后，积分商城的订单算入业绩。",type:"error"}})],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)},a=[],n=i("7f70"),o=i("8327"),r={name:"sachievement",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0}}},computed:Object(n["a"])({},Object(o["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(e){e&&t.api.post("sachievement/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;if(t.sachievement){var e=this.$util.restJson(t.sachievement);this.form=e}}}},c=r,l=(i("d57d"),i("3d7a")),u=Object(l["a"])(c,s,a,!1,null,null,null);e["default"]=u.exports},c856:function(t,e,i){},d57d:function(t,e,i){"use strict";i("c856")}}]);