(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c8697"],{5589:function(t,a,o){"use strict";o.r(a);var e,n=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("v-container",[o("v-form",{directives:[{name:"loading",rawName:"v-loading",value:t.tload,expression:"tload"}],staticStyle:{"max-width":"600px",margin:"auto"}},[o("p",[t._v("配送模式")]),o("v-radio-group",{attrs:{mandatory:!1,row:""},model:{value:t.formData.mode_type,callback:function(a){t.$set(t.formData,"mode_type",a)},expression:"formData.mode_type"}},[o("v-radio",{attrs:{label:"抢单模式",value:1}}),o("v-radio",{attrs:{label:"平均派单",value:2}}),o("v-radio",{attrs:{label:"就近派单",value:3}})],1),o("v-btn",{staticClass:"mt-3 dark",attrs:{loading:t.tload},on:{click:function(a){return t.submit()}}},[t._v("保存")])],1)],1)},i=[],s={props:{load:{type:Boolean,default:!1}},data:function(){return{formData:{mode_type:1},pageLoad:this.load,tload:!1}},watch:{load:function(t){t&&(this.pageLoad=t)},pageLoad:function(t){t&&this.getConfig()}},mounted:function(){e=this},methods:{getConfig:function(){e.tload=!0,this.$post("config/get",{config_key:"send_mode"},function(t){e.tload=!1,0==t.errno&&t.data.config_content&&(e.formData=JSON.parse(t.data.config_content))})},submit:function(){this.tload=!0,this.$post("config/update",{config_key:"send_mode",config_content:JSON.stringify(this.formData)},function(t){e.tload=!1,0===t.errno&&e.$message({showClose:!0,message:t.errmsg,type:"success"})})}}},r=s,d=o("6691"),l=Object(d["a"])(r,n,i,!1,null,null,null);a["default"]=l.exports}}]);
//# sourceMappingURL=chunk-2d0c8697.18780352.js.map