|
楼主 |
发表于 2019-12-4 17:07:37
|
显示全部楼层
已通过如下方法解决,二楼的方法我会继续研究
- Model.prototype.attachmentBrowse = function(event) {
- event[0].cancel = true;
- var docPath = event[0].source.rootPath;
- var fileID = event[0].data.fileID;
-
- var params = new biz.Request.ActionParam();
- params.setBoolean("isHttps", false);
- params.setString("docPath", docPath);
- params.setString("urlPattern", justep.String.format("/repository/file/download/{0}/last/content", fileID));
- params.setBoolean("isFormAction", false);
- biz.Request.sendBizRequest({
- "context" : this.getContext(),
- "action" : "queryNoPermissionHostAction",
- "parameters" : params,
- "callback" : function(data) {
- window.open("/x5" + data.response);
- }
- });
- };
复制代码
|
|