(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04ec3260"],{5091:function(t,e,a){},"697a":function(t,e,a){"use strict";a("5091")},ff54:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("el-form",{ref:"dataForm",attrs:{model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),a("el-form-item",{attrs:{label:"状态",prop:"settlement_type"}},[a("el-radio-group",{model:{value:t.form.settlement_type,callback:function(e){t.$set(t.form,"settlement_type",e)},expression:"form.settlement_type"}},[a("el-radio",{attrs:{label:0}},[t._v("每天结算")]),a("el-radio",{attrs:{label:1}},[t._v("每月结算")]),a("el-radio",{attrs:{label:2}},[t._v("每年结算")])],1)],1),a("el-form-item",{attrs:{label:"结算比例",prop:"settlement_balance_rate"}},[a("el-input",{staticClass:"form-input",staticStyle:{width:"300px"},model:{value:t.form.settlement_balance_rate,callback:function(e){t.$set(t.form,"settlement_balance_rate",t._n(e))},expression:"form.settlement_balance_rate"}},[a("div",{attrs:{slot:"prepend"},slot:"prepend"},[t._v("万分之")])])],1)],1)]),a("div",{staticClass:"padding-lg flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),a("copyright")],1)},i=[],n=a("7f70"),o=a("8327"),l={name:"Sinterest",data:function(){return{form:{status:0,settlement_type:0,settlement_balance_rate:""}}},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("sinterest/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.sinterest&&(this.form=this.$util.restJson(t.sinterest))}}},r=l,c=(a("697a"),a("3d7a")),m=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=m.exports}}]);