|
@@ -268,165 +268,16 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="file_attachment">
|
|
<tbody id="file_attachment">
|
|
- <c:forEach items="${dailyOfficeWork.workAttachments}" var="workClientAttachment"
|
|
|
|
- varStatus="status">
|
|
|
|
- <tr>
|
|
|
|
- <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${dailyOfficeWork.uploadMode == 2}">
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
- <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
- <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)"
|
|
|
|
- onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
|
- </td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${dailyOfficeWork.uploadMode == 2}">
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
- <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
- <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
- <td><a href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
- or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <td>${workClientAttachment.createBy.name}</td>
|
|
|
|
- <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
|
- <td class="op-td">
|
|
|
|
- <div class="op-btn-box">
|
|
|
|
-
|
|
|
|
- <%--附件下载删除--%>
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${dailyOfficeWork.uploadMode == 2}">
|
|
|
|
- <c:choose>
|
|
|
|
- <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
- <a href="${workClientAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <a href="${workClientAttachment.temporaryUrl}" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- </c:when>
|
|
|
|
- <c:otherwise>
|
|
|
|
- <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
- </c:otherwise>
|
|
|
|
- </c:choose>
|
|
|
|
- <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
|
- <a href="javascript:void(0)"
|
|
|
|
- onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')"
|
|
|
|
- class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
|
|
|
|
- </c:if>
|
|
|
|
- <c:if test="${workClientAttachment.collectFlag != 1}">
|
|
|
|
- <a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${workClientAttachment.url}','${workClientAttachment.createBy.id}','${workClientAttachment.fileSize}')" class="op-btn layui-btn-warm" > 收藏</a>
|
|
|
|
- </c:if>
|
|
|
|
- </div>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- </c:forEach>
|
|
|
|
|
|
+ <%-- 引用附件列表Tag --%>
|
|
|
|
+ <!-- attachments" 附件列表数据(必填) -->
|
|
|
|
+ <!-- showSerialNo="false" 是否显示序号列(默认false) -->
|
|
|
|
+ <!-- uploadMode 上传模式(默认2-阿里云) -->
|
|
|
|
+ <!-- deleteParamsSuffix="_attachment" 删除参数后缀(防冲突) -->
|
|
|
|
+ <table:fileShowDisplay
|
|
|
|
+ attachments="${dailyOfficeWork.workAttachments}"
|
|
|
|
+ uploadMode="${dailyOfficeWork.uploadMode}"
|
|
|
|
+ deleteParamsSuffix="addFile"
|
|
|
|
+ />
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|