webpackJsonp([21],{542:function(e,t,o){function i(e){o(759),o(760)}var n=o(125)(o(624),o(873),i,"data-v-3f7252f2",null);e.exports=n.exports},624:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={inject:["reload"],data:function(){return{resTime:"",addTime:"",hasRecord:!1}},mounted:function(){this.getRecord()},methods:{getRecord:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",target:".timeConfig",background:"rgba(255, 255, 255,0.9)"});myAxios.get("/fedyy/api/getDelayProperty.do",{},function(o){t.close(),o.result.delayLessThanProperty&&o.result.delayAddProperty?(e.hasRecord=!0,e.resTime=o.result.delayLessThanProperty,e.addTime=o.result.delayAddProperty):e.hasRecord=!1},function(o){t.close(),e.hasRecord=!1})},setting:function(){var e=this,t=/^[1-9]{1}[0-9]*$/,o=/^(?!0)(?:[0-9]{1,3}|1000)$/;return""==e.resTime||null==e.resTime?(e.$message("请输入延时时间，输入的数值不能为负"),!1):t.exec(e.resTime)?o.exec(e.addTime)?void(e.hasRecord?e.modifyReq():e.addReq()):(e.$message("请输入延时增加值，输入的数值不能为负数，不能超过1000"),!1):(e.$message("请输入延时时间，输入的数值不能为负"),!1)},modifyReq:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",target:".timeConfig",background:"rgba(255, 255, 255,0.9)"});myAxios.post("/fedyy/api/editDelayProperty.do",{delayLessThanProperty:e.resTime,delayAddProperty:e.addTime},function(o){t.close(),1==o.code?(e.$message("应用成功"),e.reload()):e.$message("网络错误，请重新设置")},function(o){t.close(),e.$message("网络错误")})},addReq:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",target:".timeConfig",background:"rgba(255, 255, 255,0.9)"});myAxios.post("/fedyy/api/addDelayProperty.do",{delayLessThanProperty:e.resTime,delayAddProperty:e.addTime},function(o){t.close(),1==o.code?(e.$message("应用成功"),e.reload()):e.$message("网络错误，请重新设置")},function(o){t.close(),e.$message("网络错误")})}}}},680:function(e,t,o){t=e.exports=o(524)(!1),t.push([e.i,".timeConfig .conditionBox .el-input-group__append{padding:0 10px;background-color:#fff;border-left:none}.timeConfig .conditionBox .el-input--small.el-input-group .el-input__inner{border-right:none}.timeConfig .conditionBox .el-input--small.el-input-group .el-input__inner:focus,.timeConfig .conditionBox .el-input--small.el-input-group .el-input__inner:hover{border-color:#dcdfe6}",""])},681:function(e,t,o){t=e.exports=o(524)(!1),t.push([e.i,".timeConfig[data-v-3f7252f2]{width:100%;height:100%;background:#f0f2f5}.timeConfig .conditionBox[data-v-3f7252f2]{padding:24px 56px;background:#fff}",""])},759:function(e,t,o){var i=o(680);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o(525).default;n("1199026a",i,!0,{})},760:function(e,t,o){var i=o(681);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o(525).default;n("75d944ac",i,!0,{})},873:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"timeConfig"},[o("div",{staticClass:"conditionBox"},[o("el-row",{attrs:{gutter:32}},[o("el-col",{attrs:{xs:10,sm:10,md:10,lg:6}},[o("el-input",{attrs:{placeholder:"请输入",size:"small",maxlength:"4"},model:{value:e.resTime,callback:function(t){e.resTime=t},expression:"resTime"}},[o("template",{slot:"prepend"},[e._v("响应时间低于")]),e._v(" "),o("template",{slot:"append"},[e._v("ms")])],2)],1),e._v(" "),o("el-col",{attrs:{xs:12,sm:12,md:12,lg:8}},[o("el-input",{attrs:{placeholder:"请输入",size:"small",maxlength:"4"},model:{value:e.addTime,callback:function(t){e.addTime=t},expression:"addTime"}},[o("template",{slot:"prepend"},[e._v("延时增加(上限1000ms)")]),e._v(" "),o("template",{slot:"append"},[e._v("ms")])],2)],1),e._v(" "),o("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:2,sm:2,md:2,lg:2}},[o("el-button",{staticStyle:{"font-size":"14px",border:"none"},attrs:{type:"primary",size:"small"},on:{click:function(t){return e.setting()}}},[e._v("应用")])],1)],1)],1)])},staticRenderFns:[]}}});