1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cbde6"],{"4c01":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"outmain ba_f"},[e._m(0),r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"180px"}},[r("el-form-item",{attrs:{label:"后台语音提醒",required:!0}},[r("el-radio-group",{model:{value:e.form.voiceOpen,callback:function(t){e.$set(e.form,"voiceOpen",t)},expression:"form.voiceOpen"}},[r("el-radio",{attrs:{label:"1"}},[e._v("开启")]),r("el-radio",{attrs:{label:"2"}},[e._v("关闭")])],1),r("div",{staticClass:"yb_margin lh16"},[e._v("如需开启后台语音提醒,需先在服务器开启定时任务才能使用.")])],1)],1)],1),r("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("订单提醒")])])])}],i=(r("96cf"),r("1da1")),s=r("294d"),c={created:function(){this.bus.$emit("loading",!0),this.init()},data:function(){return{form:{voiceOpen:"1"}}},methods:{init:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["o"])({ident:"voice"});case 2:r=t.sent,n=r.data,n.voiceOpen&&(e.form=Object.assign({},n)),e.bus.$emit("loading",!1);case 6:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return e.form.ident="voice",e.form.identName="语音提醒设置",t.next=5,Object(s["S"])(e.form);case 5:n=t.sent,a=n.msg,e.$baseMessage(a,"success"),e.init(),t.next=12;break;case 11:return t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},o=c,u=r("2877"),l=Object(u["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports}}]);
|