From 43d621b0bf2ebbda79a24ba812f9d799850934d2 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 26 Mar 2021 10:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8C=85=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_Deployment/Main.js | 8 ++++---- o2web/source/x_component_Deployment/lp/zh-cn.js | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/o2web/source/x_component_Deployment/Main.js b/o2web/source/x_component_Deployment/Main.js index 8622857589..634b82607b 100644 --- a/o2web/source/x_component_Deployment/Main.js +++ b/o2web/source/x_component_Deployment/Main.js @@ -32,7 +32,7 @@ MWF.xApplication.Deployment.Main = new Class({ MWF.require("MWF.widget.Tab", function(){ this.tab = new MWF.widget.Tab(this.content, {"style": "processlayout"}); this.tab.load(); - this.appPage = this.tab.addTab(this.appDeploymentContent, "已部署组件", false); + this.appPage = this.tab.addTab(this.appDeploymentContent, this.lp.deployedComponent, false); this.appPage.showIm(); this.setContentHeight(); @@ -112,9 +112,9 @@ MWF.xApplication.Deployment.Main = new Class({ var title = tileInput.get("value"); if (!name || !title){ - this.notice("请输入应用名称和应用标题", "error", this.appContentNode); + this.notice( this.lp.inputNameAndTitle , "error", this.appContentNode); }else if (!fileInput.files.length){ - this.notice("请上传文件的ZIP包", "error", this.appContentNode); + this.notice( this.lp.uploadZipFile, "error", this.appContentNode); }else{ var formData = new FormData(); formData.append('file', fileInput.files[0]); @@ -132,7 +132,7 @@ MWF.xApplication.Deployment.Main = new Class({ status = (status == 1223) ? 204 : status; if ((status >= 200 && status < 300)) { - this.notice("部署成功", "success", this.appContentNode); + this.notice( this.lp.deploySuccess, "success", this.appContentNode); this.appListNode.empty(); this.loadApps(); }; diff --git a/o2web/source/x_component_Deployment/lp/zh-cn.js b/o2web/source/x_component_Deployment/lp/zh-cn.js index 5c835ba4ed..45e124219e 100644 --- a/o2web/source/x_component_Deployment/lp/zh-cn.js +++ b/o2web/source/x_component_Deployment/lp/zh-cn.js @@ -32,5 +32,9 @@ MWF.xApplication.Deployment.LP = { "removeComponent": "您确定要卸载组件:{name} 吗?", "removeComponentOk": "组件已卸载", - "modify": "修改组件信息" + "modify": "修改组件信息", + + "deployedComponent" : "已部署组件", + "inputNameAndTitle" : "请输入应用名称和应用标题", + "uploadZipFile" : "请上传文件的ZIP包" }; \ No newline at end of file -- GitLab