(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd072"],{8048:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.loading?a("Loader"):a("div",{staticClass:"pos-page-inner uk-height-1-1"},[a("h4",{staticClass:"uk-heading-line"},[a("span",[t._v("Параметры сервера")])]),a("form",{staticClass:"uk-form-horizontal",staticStyle:{"max-width":"500px"},on:{submit:function(e){return e.preventDefault(),t.save(e)}}},[a("div",[a("label",{staticClass:"uk-form-label"},[t._v("Адрес сервера")]),a("div",{staticClass:"uk-form-controls"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.address,expression:"address"}],staticClass:"uk-input",domProps:{value:t.address},on:{input:function(e){e.target.composing||(t.address=e.target.value)}}})])]),a("div",{staticClass:"uk-margin-small-top"},[a("label",{staticClass:"uk-form-label"},[t._v("Порт web интерфейса")]),a("div",{staticClass:"uk-form-controls"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.port,expression:"port"}],staticClass:"uk-input",domProps:{value:t.port},on:{input:function(e){e.target.composing||(t.port=e.target.value)}}})])]),a("div",{staticClass:"uk-margin-small-top"},[a("label",{staticClass:"uk-form-label"},[t._v("Период обновления (ч)")]),a("div",{staticClass:"uk-form-controls"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.period,expression:"period"}],staticClass:"uk-input",domProps:{value:t.period},on:{input:function(e){e.target.composing||(t.period=e.target.value)}}})])]),a("div",{staticClass:"uk-margin-small-top uk-text-center"},[a("button",{staticClass:"uk-button uk-button-primary",attrs:{type:"submit"},domProps:{textContent:t._s(t.$t("actions.save"))}})])])])},r=[],n=(a("96cf"),a("3b8d")),i=a("728f"),o=a("01da"),u=a("3dfd"),l={name:"Upload",components:{Loader:i["a"]},metaInfo:function(){return{title:this.$route.meta.breadcrumb,titleTemplate:"%s - "+this.$t("app.title"),htmlAttrs:{lang:this.$t("app.lang")}}},data:function(){return{loading:!0,address:"",port:"",period:""}},mounted:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].configGetGlobal();case 2:e=t.sent,this.address=e.AppServerDomain,this.port=e.WebAppPort,this.period=e.UploadHours,this.loading=!1;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{save:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].configSetGlobal({AppServerDomain:this.address,WebAppPort:this.port,UploadHours:this.period});case 2:Object(u["b"])("Данные изменены","success");case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},p=l,c=a("2877"),d=Object(c["a"])(p,s,r,!1,null,null,null);e["default"]=d.exports}}]);