Ver código fonte

计量台账,附件下载问题

MaiXinRong 14 horas atrás
pai
commit
f7550a1837
1 arquivos alterados com 0 adições e 6 exclusões
  1. 0 6
      app/service/stage_att.js

+ 0 - 6
app/service/stage_att.js

@@ -64,12 +64,6 @@ module.exports = app => {
                 item.orginpath = this.ctx.app.config.fujianOssPath + item.filepath;
                 item.orginpath = this.ctx.app.config.fujianOssPath + item.filepath;
                 item.filepath = this.ctx.app.config.fujianOssPath + item.filepath;
                 item.filepath = this.ctx.app.config.fujianOssPath + item.filepath;
                 item.viewpath = this.ctx.helper.getPreviewPath(item.fileext, item.filepath);
                 item.viewpath = this.ctx.helper.getPreviewPath(item.fileext, item.filepath);
-                delete item.filepath;
-                // if (!this.ctx.helper.canPreview(item.fileext)) {
-                //     item.filepath = `/tender/${this.ctx.tender.id}/measure/stage/${this.ctx.params.order}/download/file/${item.id}`;
-                // } else {
-                //     item.filepath = this.ctx.app.config.fujianOssPath + item.filepath;
-                // }
                 item.in_time = this.ctx.moment(item.in_time * 1000).format('YYYY-MM-DD');
                 item.in_time = this.ctx.moment(item.in_time * 1000).format('YYYY-MM-DD');
             });
             });
         }
         }