Commit 6c4ca20e authored by lingqiao's avatar lingqiao
Browse files

修改导入加MASK

parent ca9072dd
Showing with 13 additions and 1 deletion
+13 -1
...@@ -181,6 +181,7 @@ MWF.xApplication.Org.Main = new Class({ ...@@ -181,6 +181,7 @@ MWF.xApplication.Org.Main = new Class({
}, },
loadPersonImport: function(){ loadPersonImport: function(){
var action = o2.Actions.get("x_organization_assemble_control"); var action = o2.Actions.get("x_organization_assemble_control");
MWF.require("MWF.widget.MaskNode", null, false);
var url = o2.filterUrl(action.action.address + action.action.actions.getImportPersonTemplate.uri); var url = o2.filterUrl(action.action.address + action.action.actions.getImportPersonTemplate.uri);
var infor = this.lp.importPersonInfor.replace("{url}", url); var infor = this.lp.importPersonInfor.replace("{url}", url);
...@@ -197,16 +198,27 @@ MWF.xApplication.Org.Main = new Class({ ...@@ -197,16 +198,27 @@ MWF.xApplication.Org.Main = new Class({
"method": "importPerson", "method": "importPerson",
"multiple": false, "multiple": false,
"onCompleted": function(json){ "onCompleted": function(json){
if (!this.maskNode){
this.maskNode = new MWF.widget.MaskNode(this.importConfiguratorContentNode, {"style": "bam"});
this.maskNode.load();
}
var url = o2.filterUrl(action.action.address + action.action.actions.getImportPersonResault.uri); var url = o2.filterUrl(action.action.address + action.action.actions.getImportPersonResault.uri);
url = url.replace("{flag}", json.data.flag); url = url.replace("{flag}", json.data.flag);
var result = this.lp.importPersonResult.replace("{url}", url); var result = this.lp.importPersonResult.replace("{url}", url);
this.importPersonResultNode.set("html", result); this.importPersonResultNode.set("html", result);
this.importPersonResultNode.show(); this.importPersonResultNode.show();
if (this.maskNode) this.maskNode.hide(function(){
MWF.release(this.maskNode);
this.maskNode = null;
}.bind(this));
}.bind(this) }.bind(this)
}).load(); }).load();
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));
var exporturl = o2.filterUrl(o2.Actions.getHost("x_cms_assemble_control") + "/x_organization_assemble_control/jaxrs/export/export/all"); var exporturl = o2.filterUrl(o2.Actions.getHost("x_cms_assemble_control") + "/x_organization_assemble_control/jaxrs/export/export/all");
this.exportPersonNode.set("text", this.lp.exportPersonText); this.exportPersonNode.set("text", this.lp.exportPersonText);
this.exportPersonNode.set("href", exporturl); this.exportPersonNode.set("href", exporturl);
......
...@@ -255,7 +255,7 @@ MWF.xApplication.Org.LP = { ...@@ -255,7 +255,7 @@ MWF.xApplication.Org.LP = {
"importPersonTitle": "组织导入导出", "importPersonTitle": "组织导入导出",
"importPersonInfor": "您可以通过Excel批量导入组织,<a target='_blank' href='{url}' >点击此处</a>获取组织导入模板", "importPersonInfor": "您可以通过Excel批量导入组织,<a target='_blank' href='{url}' >点击此处</a>获取组织导入模板",
"importPersonAction": "上传Excel文件,导入组织", "importPersonAction": "上传Excel文件,导入组织",
"importPersonResult": "组织已导入,<a target='_blank' href='{url}' >点击此处</a>查看导入结果", "importPersonResult": "数据导入已处理,<a target='_blank' href='{url}' >点击此处</a>查看导入结果(如有校验未通过则不会导入任何数据)",
"exportPersonText": "导出组织到excel文件", "exportPersonText": "导出组织到excel文件",
"queryPrivateConfigTitle":"个人通讯录权限配置", "queryPrivateConfigTitle":"个人通讯录权限配置",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment