|
@@ -79,9 +79,9 @@
|
|
<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
|
|
<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
|
|
|
|
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_score-export')}">
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_score-export')}">
|
|
- <%-- <input id="export-button" class="btn" type="button" value="导出" onclick="goExport()"
|
|
|
|
- <c:if test="${!enableExport}">disabled</c:if> title="${exportMessage}"/> --%>
|
|
|
|
<input id="export-button-2" class="btn" type="button" value="导出" onclick="goExport2()"
|
|
<input id="export-button-2" class="btn" type="button" value="导出" onclick="goExport2()"
|
|
|
|
+ <c:if test="${!enableExport}">disabled</c:if> title="${exportMessage}"/>
|
|
|
|
+ <input id="export-button" class="btn" type="button" value="导出科目明细" onclick="goExport()"
|
|
<c:if test="${!enableExport}">disabled</c:if> title="${exportMessage}"/>
|
|
<c:if test="${!enableExport}">disabled</c:if> title="${exportMessage}"/>
|
|
</c:if>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
@@ -321,6 +321,11 @@
|
|
}
|
|
}
|
|
|
|
|
|
function goExport() {
|
|
function goExport() {
|
|
|
|
+ var subjectCode = $('#subject-select').val();
|
|
|
|
+ if (subjectCode == "") {
|
|
|
|
+ alert('请选择科目');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
$("#exportForm").attr('action', '${ctx}/admin/exam/score/export');
|
|
$("#exportForm").attr('action', '${ctx}/admin/exam/score/export');
|
|
$("#exportForm").submit();
|
|
$("#exportForm").submit();
|
|
}
|
|
}
|