text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19dd1b3e"],{"0219":function(e,n,t){},"371d":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"app-container"},[t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"250px"}},[t("el-form-item",{attrs:{label:"提前截止订票时长(min)"}},[t("el-input-number",{attrs:{min:0},model:{value:e.form.beforeBookingDeadlineTime,callback:function(n){e.$set(e.form,"beforeBookingDeadlineTime",n)},expression:"form.beforeBookingDeadlineTime"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"车票过期延迟时长(min)"}},[t("el-input-number",{attrs:{min:0},model:{value:e.form.ticketInvalidDelayTime,callback:function(n){e.$set(e.form,"ticketInvalidDelayTime",n)},expression:"form.ticketInvalidDelayTime"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"车票过期扣除积分（分）"}},[t("el-input-number",{attrs:{min:0},model:{value:e.form.invalidTicketPunishIntegral,callback:function(n){e.$set(e.form,"invalidTicketPunishIntegral",n)},expression:"form.invalidTicketPunishIntegral"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"积分满分值（分）"}},[t("el-input-number",{attrs:{min:0},model:{value:e.form.fullIntegral,callback:function(n){e.$set(e.form,"fullIntegral",n)},expression:"form.fullIntegral"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"乘务员可提前上客时长（分）"}},[t("el-input-number",{attrs:{min:0},model:{value:e.form.scannerEndAdvanceTime,callback:function(n){e.$set(e.form,"scannerEndAdvanceTime",n)},expression:"form.scannerEndAdvanceTime"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")]),e._v(" "),t("el-button",{on:{click:e.onReset}},[e._v("重置")])],1)],1)],1)},a=[],l=t("6f8e"),r=t("2f62"),o=Object(r["a"])("form"),s=o.mapActions,m=o.mapState,f=o.mapMutations,c={data:function(){var e=this.$store.state.form.deadline,n=this.$store.state.form.punish,t=this.$store.state.form.full,i=this.$store.state.form.delay,a=this.$store.state.form.advance;return{form:{beforeBookingDeadlineTime:e,ticketInvalidDelayTime:i,invalidTicketPunishIntegral:n,fullIntegral:t,scannerEndAdvanceTime:a}}},methods:Object(l["a"])({onSubmit:function(){var e=this,n={deadline:this.form.beforeBookingDeadlineTime,delay:this.form.ticketInvalidDelayTime,punish:this.form.invalidTicketPunishIntegral,full:this.form.fullIntegral,advance:this.form.scannerEndAdvanceTime};this.setConfiguration(n).then((function(n){return e.$message({message:"提交成功！配置生效！",type:"success"})})).catch((function(){e.$message({message:"提交失败！请重新再试！",type:"error"}),e.onReset()}))},onReset:function(){this.form.beforeBookingDeadlineTime=this.deadline,this.form.invalidTicketPunishIntegral=this.punish,this.form.ticketInvalidDelayTime=this.delay,this.form.fullIntegral=this.full,this.form.scannerEndAdvanceTime=this.advance}},f(["GET_CONFIGURATIONS","SET_FORMITEM"]),{},s(["getConfigurations","setConfiguration"])),computed:Object(l["a"])({},m(["deadline","delay","punish","full","advance"])),beforeMount:function(){var e=this;this.getConfigurations().then((function(n){var t=n.deadline,i=n.delay,a=n.punish,l=n.full,r=n.advance;e.form.beforeBookingDeadlineTime=t,e.form.invalidTicketPunishIntegral=a,e.form.ticketInvalidDelayTime=i,e.form.fullIntegral=l,e.form.scannerEndAdvanceTime=r}))}},u=c,d=(t("7419"),t("2877")),v=Object(d["a"])(u,i,a,!1,null,"6516c2f3",null);n["default"]=v.exports},7419:function(e,n,t){"use strict";var i=t("0219"),a=t.n(i);a.a}}]);