提交 97a956c1 编写于 作者: NoSubject's avatar NoSubject

修正路径转发的一些地址错误

上级 db5d7ea3
...@@ -13,7 +13,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({ ...@@ -13,7 +13,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({
var url = this.action.actions.exportSelfHoliday.uri; var url = this.action.actions.exportSelfHoliday.uri;
url = url.replace("{startdate}", startdate); url = url.replace("{startdate}", startdate);
url = url.replace("{enddate}", enddate); url = url.replace("{enddate}", enddate);
window.open(this.action.address+url , "_blank"); window.open(o2.filterUrl(this.action.address+url , "_blank"));
}.bind(this)); }.bind(this));
}, },
uploadAttachment: function(success, failure, formData, file){ uploadAttachment: function(success, failure, formData, file){
...@@ -23,7 +23,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({ ...@@ -23,7 +23,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({
this.action.getActions(function(){ this.action.getActions(function(){
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));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
exportAbnormalAttachment: function(year, month, success, failure){ exportAbnormalAttachment: function(year, month, success, failure){
...@@ -31,7 +31,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({ ...@@ -31,7 +31,7 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({
var url = this.action.actions.exportAbnormalAttachment.uri; var url = this.action.actions.exportAbnormalAttachment.uri;
url = url.replace("{year}", year); url = url.replace("{year}", year);
url = url.replace("{month}", month); url = url.replace("{month}", month);
window.open(this.action.address+url , "_blank"); window.open(o2.filterUrl(this.action.address+url , "_blank"));
}.bind(this)); }.bind(this));
//this.action.invoke({"name": "exportAbnormalAttachment", "parameter": {"year": year, "month": month },"success": success,"failure": failure}); //this.action.invoke({"name": "exportAbnormalAttachment", "parameter": {"year": year, "month": month },"success": success,"failure": failure});
}, },
......
...@@ -25,7 +25,7 @@ MWF.xAction.RestActions.Action["x_bbs_assemble_control"] = new Class({ ...@@ -25,7 +25,7 @@ MWF.xAction.RestActions.Action["x_bbs_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){
...@@ -33,7 +33,7 @@ MWF.xAction.RestActions.Action["x_bbs_assemble_control"] = new Class({ ...@@ -33,7 +33,7 @@ MWF.xAction.RestActions.Action["x_bbs_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));
}, },
...@@ -42,7 +42,7 @@ MWF.xAction.RestActions.Action["x_bbs_assemble_control"] = new Class({ ...@@ -42,7 +42,7 @@ MWF.xAction.RestActions.Action["x_bbs_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){
......
...@@ -16,17 +16,16 @@ MWF.xAction.RestActions.Action["x_file_assemble_control"] = new Class({ ...@@ -16,17 +16,16 @@ MWF.xAction.RestActions.Action["x_file_assemble_control"] = new Class({
this.action.getActions(function(){ this.action.getActions(function(){
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));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getFileDownloadUrl: function(id, callback){ getFileDownloadUrl: function(id, callback){
this.action.getActions(function(){ this.action.getActions(function(){
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));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getBase64Code: function(success, failure, id, width, height, async){ getBase64Code: function(success, failure, id, width, height, async){
width = width || 0; width = width || 0;
height = height ||0; height = height ||0;
......
...@@ -33,28 +33,28 @@ MWF.xAction.RestActions.Action["x_meeting_assemble_control"] = new Class({ ...@@ -33,28 +33,28 @@ MWF.xAction.RestActions.Action["x_meeting_assemble_control"] = new Class({
this.action.getActions(function(){ this.action.getActions(function(){
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));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getFileDownloadUrl: function(id, callback){ getFileDownloadUrl: function(id, callback){
this.action.getActions(function(){ this.action.getActions(function(){
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));
if (callback) callback(this.action.address+url); if (callback) callback(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getFile: function(id, callback){ getFile: function(id, callback){
this.action.getActions(function(){ this.action.getActions(function(){
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));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getFileDownload: function(id, callback){ getFileDownload: function(id, callback){
this.action.getActions(function(){ this.action.getActions(function(){
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));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
......
...@@ -15,7 +15,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({ ...@@ -15,7 +15,7 @@ MWF.xAction.RestActions.Action["x_okr_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.actionAttachment.address+url); window.open(o2.filterUrl(this.actionAttachment.address+url));
}.bind(this)); }.bind(this));
}, },
getAttachmentStream: function(id, documentid){ getAttachmentStream: function(id, documentid){
...@@ -23,7 +23,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({ ...@@ -23,7 +23,7 @@ MWF.xAction.RestActions.Action["x_okr_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));
}, },
...@@ -32,7 +32,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({ ...@@ -32,7 +32,7 @@ MWF.xAction.RestActions.Action["x_okr_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));
}, },
...@@ -44,7 +44,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({ ...@@ -44,7 +44,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
var url = this.action.actions.getReportAttachmentData.uri; var url = this.action.actions.getReportAttachmentData.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.actionAttachment.address+url); window.open(o2.filterUrl(this.actionAttachment.address+url));
}.bind(this)); }.bind(this));
}, },
getReportAttachmentStream: function(id, documentid){ getReportAttachmentStream: function(id, documentid){
...@@ -52,7 +52,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({ ...@@ -52,7 +52,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
var url = this.action.actions.getReportAttachmentStream.uri; var url = this.action.actions.getReportAttachmentStream.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));
}, },
deleteReportAttachment: function(id, documentid, success, failure, async){ deleteReportAttachment: function(id, documentid, success, failure, async){
......
...@@ -6,7 +6,7 @@ MWF.xAction.RestActions.Action["x_processplatform_assemble_surface"] = new Class ...@@ -6,7 +6,7 @@ MWF.xAction.RestActions.Action["x_processplatform_assemble_surface"] = new Class
var url = this.action.actions["exportViewResult"].uri; var url = this.action.actions["exportViewResult"].uri;
//url = url.replace("{applicationFlag}", app); //url = url.replace("{applicationFlag}", app);
url = url.replace("{flag}", json.data.id); url = url.replace("{flag}", json.data.id);
window.open(this.action.address+url, "_blank"); window.open(o2.filterUrl(this.action.address+url, "_blank"));
}.bind(this)}); }.bind(this)});
}, },
saveDictionary: function(data, success, failure){ saveDictionary: function(data, success, failure){
......
...@@ -7,14 +7,14 @@ MWF.xAction.RestActions.Action["x_report_assemble_control"] = new Class({ ...@@ -7,14 +7,14 @@ MWF.xAction.RestActions.Action["x_report_assemble_control"] = new Class({
this.action.getActions(function(){ this.action.getActions(function(){
var url = this.action.actions.statByKeyWork.uri; var url = this.action.actions.statByKeyWork.uri;
url = url.replace("{year}", encodeURIComponent(year)); url = url.replace("{year}", encodeURIComponent(year));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
getExportFileStream: function(id){ getExportFileStream: function(id){
this.action.getActions(function(){ this.action.getActions(function(){
var url = this.action.actions.exportStatResult.uri; var url = this.action.actions.exportStatResult.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
window.open(this.action.address+url, "_blank"); window.open(o2.filterUrl(this.action.address+url), "_blank");
}.bind(this)); }.bind(this));
} }
//statByUnit : function( year, success,failure, async){ //statByUnit : function( year, success,failure, async){
......
...@@ -154,7 +154,7 @@ MWF.xAction.RestActions.Action["x_strategydeploy_assemble_control"] = new Class( ...@@ -154,7 +154,7 @@ MWF.xAction.RestActions.Action["x_strategydeploy_assemble_control"] = new Class(
var url = this.action.actions.getPriorityAttachmentData.uri; var url = this.action.actions.getPriorityAttachmentData.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{workId}", encodeURIComponent(workId)); url = url.replace("{workId}", encodeURIComponent(workId));
window.open(this.actionAttachment.address+url); window.open(o2.filterUrl(this.actionAttachment.address+url));
}.bind(this)); }.bind(this));
}, },
getPriorityAttachmentStream: function(id, workId){ getPriorityAttachmentStream: function(id, workId){
...@@ -162,7 +162,7 @@ MWF.xAction.RestActions.Action["x_strategydeploy_assemble_control"] = new Class( ...@@ -162,7 +162,7 @@ MWF.xAction.RestActions.Action["x_strategydeploy_assemble_control"] = new Class(
var url = this.action.actions.getPriorityAttachmentStream.uri; var url = this.action.actions.getPriorityAttachmentStream.uri;
url = url.replace("{id}", encodeURIComponent(id)); url = url.replace("{id}", encodeURIComponent(id));
url = url.replace("{workId}", encodeURIComponent(workId)); url = url.replace("{workId}", encodeURIComponent(workId));
window.open(this.action.address+url); window.open(o2.filterUrl(this.action.address+url));
}.bind(this)); }.bind(this));
}, },
///////////////////////////五项/////////////////////////////// ///////////////////////////五项///////////////////////////////
......
...@@ -18,7 +18,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({ ...@@ -18,7 +18,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({
var url = this.action.actions.attachmentDownload.uri; var url = this.action.actions.attachmentDownload.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.actionAttachment.address+url); window.open(o2.filterUrl(this.actionAttachment.address+url));
}.bind(this)); }.bind(this));
}, },
attachmentDownloadStream: function(id,documentid,callback){ attachmentDownloadStream: function(id,documentid,callback){
...@@ -26,7 +26,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({ ...@@ -26,7 +26,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({
var url = this.action.actions.attachmentDownloadStream.uri; var url = this.action.actions.attachmentDownloadStream.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));
}, },
...@@ -36,7 +36,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({ ...@@ -36,7 +36,7 @@ MWF.xAction.RestActions.Action["x_teamwork_assemble_control"] = new Class({
var url = this.action.actions.attachmentDownload.uri; var url = this.action.actions.attachmentDownload.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));
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册