提交 025134f8 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/url_mapping' into 'develop'

Merge of fix/url_mapping to develop 修正根据路径转发的一些bug

See merge request o2oa/o2oa!637
...@@ -353,7 +353,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({ ...@@ -353,7 +353,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
var url = this.action.actions.getAttachmentData.uri; var url = this.action.actions.getAttachmentData.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{documentid}", encodeURIComponent(documentid)); url = url.replace("{documentid}", encodeURIComponent(documentid));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getAttachmentStream: function(id, documentid){ getAttachmentStream: function(id, documentid){
...@@ -361,7 +361,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({ ...@@ -361,7 +361,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
var url = this.action.actions.getAttachmentStream.uri; var url = this.action.actions.getAttachmentStream.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{documentid}", encodeURIComponent(documentid)); url = url.replace("{documentid}", encodeURIComponent(documentid));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getAttachmentUrl: function(id, documentid, callback){ getAttachmentUrl: function(id, documentid, callback){
...@@ -369,7 +369,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({ ...@@ -369,7 +369,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
var url = this.action.actions.getAttachmentData.uri; var url = this.action.actions.getAttachmentData.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{documentid}", encodeURIComponent(documentid)); url = url.replace("{documentid}", encodeURIComponent(documentid));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
convertLocalImageToBase64: function(size, success, failure, formData, file){ convertLocalImageToBase64: function(size, success, failure, formData, file){
...@@ -380,7 +380,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({ ...@@ -380,7 +380,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
var url = this.action.actions.getImage.uri; var url = this.action.actions.getImage.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{documentid}", encodeURIComponent(documentid)); url = url.replace("{documentid}", encodeURIComponent(documentid));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
//--index-- //--index--
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册