Commit 5a6e0cd8 by wasx8023

1.下载路径区分开发和正式

parent f053bca3
......@@ -4,9 +4,11 @@ $(function () {
columns: [{
field: "operator",
template: function (item) {
let docId = item.docId;
let href = IPLATUI.CONTEXT_PATH + ("run" == projectEnv ? ('/docFileDownload/' + docId)
: ('/EU/DM/EUDM06.jsp?docId=' + docId));
let template = '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'href="' + IPLATUI.CONTEXT_PATH + '/EU/DM/EUDM06.jsp?docId=' + item.docId
+ '" >附件下载</a>';
+ 'href="' + href + '" >附件下载</a>';
return template;
}
}],
......
<%@ page import="com.baosight.iplat4j.core.ProjectInfo" %>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<%
String projectEnv = ProjectInfo.getProjectEnv().toLowerCase();
%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript">
let projectEnv = "${projectEnv}";
</script>
<EF:EFPage title="附件清单">
<EF:EFRegion id="inqu" title="查询区域" type="query">
<EF:EFInput cname="质量巡检单ID" ename="checkId" blockId="inqu_status" row="0" type="hidden"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment