修改bgp导出异常bug
This commit is contained in:
@@ -80,7 +80,7 @@ public class BgpLogController extends BaseController {
|
||||
|
||||
// radius配置导出
|
||||
@RequestMapping(value = "exportBgp")
|
||||
public void exportBgp(@ModelAttribute("log") NtcBGPLog log, Model model, String hColumns, String type,
|
||||
public void exportBgp(@ModelAttribute("log") NtcBGPLog log, Model model, String hColumns, String types,
|
||||
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||
System.out.println("进来了bgp");
|
||||
try {
|
||||
@@ -125,7 +125,7 @@ public class BgpLogController extends BaseController {
|
||||
noExportMap.put("bgp_control", cfgIndexInfoNoExport);
|
||||
dataMap.put("bgp_control", list);
|
||||
/* } */
|
||||
if ("csv".equals(type)) {
|
||||
if ("csv".equals(types)) {
|
||||
this._exportCsv(model, request, response, redirectAttributes, "bgp_control", titleList, classMap,
|
||||
dataMap, noExportMap);
|
||||
} else {
|
||||
|
||||
@@ -133,8 +133,8 @@
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right" style="min-width: 110px;" >
|
||||
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?type=excel" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="excel"></sys:delRow></li>
|
||||
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?type=csv" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="csv"></sys:delRow></li>
|
||||
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?types=excel" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="excel"></sys:delRow></li>
|
||||
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?types=csv" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="csv"></sys:delRow></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||
|
||||
Reference in New Issue
Block a user