(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-775e92b5"],{
/***/4524:
/***/function(e,t,s){"use strict";
/* harmony import */s("cb41");
/* harmony import */},
/***/b197:
/***/function(e,t,s){"use strict";
// ESM COMPAT FLAG
s.r(t);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/Setting/SystemUpgrade.vue?vue&type=template&id=7beda9a1&scoped=true
var i=s("5530"),a=(s("b0c0"),s("1d40")),r=s("2f62"),o=s("7424"),n=s("3dd1"),m=s.n(n),c=(s("2345"),{name:"SystemParams",i18n:s("89fe"),data:function(){return{currentVersionDes:"",RemoteVersionDes:"",remoteVersion:"",localUpgradeUrl:o.LOCALUPGRADE,remoteDate:"",remoteVersionLog:"",remoteIsBete:!1,messageShowLoad:!1,licenseRemainDays:0,
// 剩余天数
licenseRemainHours:0,
// 剩余小时数
licenseRemainMinutes:0,
// 剩余小时数
licenseStatus:"",
// 授权状态（例如：正常、过期、即将过期）
IsAuthLimit:!1,IsAuthTimeLimit:!1}},components:{},created:function(){this.currentVersionDes=this.$t("SystemUpgrade.Version")+":"+this.systemVersion+"  ("+(this.versionBete?this.$t("SystemUpgrade.BeteVersion"):this.$t("SystemUpgrade.RCVersion"))+")    "+this.$t("SystemUpgrade.VersionDate")+":"+this.versionDate+"    (x64)",this.OnlineUpgrade(),this.GetSystemParams()},computed:Object(i.a)(Object(i.a)({},Object(r.e)("setting",["isMobile","theme","layout","footerLinks","systemName","copyright","fixedHeader","fixedSideBar","fixedTabs","versionDate","versionBete","systemVersion"])),{},{systemLogo:function(){return this.$store.state.setting.SystemLogo}}),methods:{beforeUpload:function(){this.$message.loading({content:this.$t("dataModel.opcuaModel.ImportNodeIDLoading"),duration:0})},BeginUpgrade:function(){var e=this;this.$confirm({title:this.$t("SystemUpgrade.UpgradeConfirm"),content:this.$t("SystemUpgrade.UpgradeContent"),okText:this.$t("SystemUpgrade.ConfirmUpgrade"),cancelText:this.$t("SystemUpgrade.ConfirmCancel"),onOk:function(){e.$message.loading(e.$t("SystemUpgrade.BeginUpgradeLoading"),0),Object(a.a)().then((function(t){e.$message.destroy(),0==t.data.code?(e.remoteVersion=t.data.Result.currentVersion,e.remoteIsBete=t.data.Result.IsBete,e.remoteDate=t.data.Result.versionData,e.remoteVersionLog=t.data.Result.currentVersionDescribeCH,e.RemoteVersionDes=e.$t("SystemUpgrade.RemoteVersion")+":"+e.remoteVersion+"  ("+(e.remoteIsBete?e.$t("SystemUpgrade.BeteVersion"):e.$t("SystemUpgrade.RCVersion"))+")    "+e.$t("SystemUpgrade.VersionDate")+":"+e.remoteDate+"    (x64)"):4006==t.data.code?e.$message.error(e.$t("SystemUpgrade.OnlineCheckNoAuth")):e.$message.error(e.$t("SystemUpgrade.OnlineCheckError")),setTimeout((function(){e.$message.destroy()}),5e3),e.messageShowLoad=!1})).catch((function(t){e.messageShowLoad=!1,e.$message.success(e.$t("SystemUpgrade.BeginUpgradeLoading")),setTimeout((function(){location.reload()}),1e4)}))}})},OnlineUpgrade:function(){var e=this,t={DebugEnable:this.DebugEnable};this.messageShowLoad=!0,Object(a.s)(t).then((function(t){0==t.data.code?(e.remoteVersion=t.data.Result.currentVersion,e.remoteIsBete=t.data.Result.IsBete,e.remoteDate=t.data.Result.versionData,e.remoteVersionLog=t.data.Result.currentVersionDescribeCH,e.RemoteVersionDes=e.$t("SystemUpgrade.RemoteVersion")+":"+e.remoteVersion+" ("+(e.remoteIsBete?e.$t("SystemUpgrade.BeteVersion"):e.$t("SystemUpgrade.RCVersion"))+") "+e.$t("SystemUpgrade.VersionDate")+":"+e.remoteDate+" (x64)",e.remoteVersion!=e.systemVersion&&m.a.fire({title:e.$t("SystemUpgrade.HaveNewVersion"),text:e.RemoteVersionDes,html:'<div style="white-space: pre-wrap;text-align:left" >'+e.RemoteVersionDes+"\n\n"+e.$t("SystemUpgrade.UpgradeLogger")+"\n"+e.remoteVersionLog+"</div>",icon:"success",showCancelButton:!0,cancelButtonText:e.$t("SystemUpgrade.ConfirmCancel"),confirmButtonText:e.$t("SystemUpgrade.BeginUpgrade"),preConfirm:function(){e.BeginUpgrade()}})):e.$message.error(e.$t("SystemUpgrade.OnlineCheckError")),e.messageShowLoad=!1})).catch((function(t){e.messageShowLoad=!1,e.$message.error(e.$t("loginPage.serverError"),3)}))},localUpgradeCharge:function(e){if(this.dataSource=[],this.messageShowLoad=!0,"done"===e.file.status){var t=e.file.response;this.$message.destroy(),0==t.Code?(this.$message.success("".concat(e.file.name," ")+this.$t("SystemUpgrade.BeginUpgradeLoading")),this.OnlineUpgrade()):-2==t.Code?this.$message.error("".concat(e.file.name," ")+this.$t("SystemUpgrade.UpgradeFileError")):this.$message.error("".concat(e.file.name," ")+this.$t("SystemUpgrade.UpgradeFileSaveError"))}else if("uploading"===e.file.status);else if("error"===e.file.status){this.$message.loading(this.$t("SystemUpgrade.BeginUpgradeLoading"),0),setTimeout((function(){location.reload()}),1e4)}this.messageShowLoad=!1},GetSystemParams:function(){var e=this;Object(a.o)().then((function(t){e.licenseRemainDays=t.data.list.AuthRemainingTimeDays,// 假设返回结果中有剩余天数
e.licenseRemainHours=t.data.list.AuthRemainingTimeHours,// 假设返回结果中有剩余小时数
e.licenseRemainMinutes=t.data.list.AuthRemainingTimeMinutes,// 假设返回结果中有剩余小时数
e.IsAuthLimit=t.data.list.IsAuthLimit,// 假设返回结果中有授权状态
e.IsAuthTimeLimit=t.data.list.IsAuthTimeLimit})).catch((function(e){}))}}}),d=(s("4524"),s("2877")),l=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("a-card",{attrs:{title:e.$t("SystemUpgrade.about"),headStyle:{"font-size":"20px","font-weight":600}}},[t("a-list",{attrs:{"item-layout":"horizontal"}},[t("a-list-item",[t("a-list-item-meta",{attrs:{description:e.currentVersionDes}},[t("a",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.systemName))]),t("a-avatar",{attrs:{slot:"avatar",src:e.systemLogo},slot:"avatar"})],1)],1)],1),e.IsAuthTimeLimit?t("div",{staticStyle:{margin:"16px 0",padding:"20px",background:"#fff5f5","border-radius":"8px",border:"1px solid #ffccc7"}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("a-icon",{staticStyle:{color:"#ff4d4f","font-size":"20px","margin-right":"10px"},attrs:{type:"exclamation-circle"}}),t("div",[t("h4",{staticStyle:{margin:"0 0 8px 0","font-size":"15px","font-weight":"600",color:"#2d3748"}},[e._v(" "+e._s(e.$t("SystemUpgrade.AuthExpiredTitle"))+" ")]),t("p",{staticStyle:{margin:"0","font-size":"14px",color:"#e53e3e"}},[e._v(" "+e._s(e.$t("SystemUpgrade.AuthExpiredDesc"))+" ")])])],1)]):e._e(),e.IsAuthLimit&&!e.IsAuthTimeLimit?t("div",{staticStyle:{margin:"16px 0",padding:"20px",background:"#f0f7ff","border-radius":"8px",border:"1px solid #dee2e6"}},[t("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"16px"}},[t("a-icon",{staticStyle:{color:"#40a9ff","font-size":"20px","margin-right":"10px"},attrs:{type:"clock-circle"}}),t("h4",{staticStyle:{margin:"0","font-size":"15px","font-weight":"600",color:"#2d3748"}},[e._v(" "+e._s(e.$t("SystemUpgrade.RemainingLicenseTime"))+" ")])],1),t("div",{staticStyle:{display:"flex",gap:"30px","align-items":"center"}},[t("div",{staticStyle:{"text-align":"center"}},[t("p",{staticStyle:{margin:"0","font-size":"32px","font-weight":"700",color:"#1890ff"}},[e._v(" "+e._s(e.licenseRemainDays)+" ")]),t("p",{staticStyle:{margin:"0","font-size":"14px",color:"#718096"}},[e._v(" "+e._s(e.$t("SystemUpgrade.Days"))+" ")])]),t("span",{staticStyle:{"font-size":"24px",color:"#cbd5e0"}},[e._v(":")]),t("div",{staticStyle:{"text-align":"center"}},[t("p",{staticStyle:{margin:"0","font-size":"32px","font-weight":"700",color:"#1890ff"}},[e._v(" "+e._s(e.licenseRemainHours)+" ")]),t("p",{staticStyle:{margin:"0","font-size":"14px",color:"#718096"}},[e._v(" "+e._s(e.$t("SystemUpgrade.Hours"))+" ")])]),t("span",{staticStyle:{"font-size":"24px",color:"#cbd5e0"}},[e._v(":")]),t("div",{staticStyle:{"text-align":"center"}},[t("p",{staticStyle:{margin:"0","font-size":"32px","font-weight":"700",color:"#1890ff"}},[e._v(" "+e._s(e.licenseRemainMinutes)+" ")]),t("p",{staticStyle:{margin:"0","font-size":"14px",color:"#718096"}},[e._v(" "+e._s(e.$t("SystemUpgrade.Minutes"))+" ")])])])]):e._e(),t("a-spin",{attrs:{spinning:e.messageShowLoad}},[t("a-card",[e.remoteVersion==e.systemVersion?t("p",{staticStyle:{"font-size":"14px","line-height":"20px","font-weight":"600"}},[e._v(e._s(e.$t("SystemUpgrade.LastVersion")))]):t("p",[t("a-button",{attrs:{type:"dashed"},on:{click:e.BeginUpgrade}},[e._v(" "+e._s(e.RemoteVersionDes))])],1),e.remoteVersion!=e.systemVersion?t("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(e.remoteVersionLog)+" ")]):e._e(),t("p",{staticStyle:{"margin-top":"20px"}},[t("a-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",icon:"check"},on:{click:e.OnlineUpgrade}},[e._v(" "+e._s(e.$t("SystemUpgrade.OnlineCheck"))+" ")]),t("a-upload",{attrs:{name:"file",multiple:!1,action:e.localUpgradeUrl,showUploadList:!1,beforeUpload:e.beforeUpload},on:{change:e.localUpgradeCharge}},[t("a-button",{attrs:{type:"default"}},[t("a-icon",{attrs:{type:"upload"}}),e._v(" "+e._s(e.$t("SystemUpgrade.localUpgrade"))+" ")],1)],1)],1)])],1)],1)}),[],!1,null,"7beda9a1",null)
/* harmony default export */;t.default=l.exports},
/***/cb41:
/***/function(e,t,s){
// extracted by mini-css-extract-plugin
/***/}}]);