Commit 27f40d03 by RuoYi

取消回车自动提交表单

parent cb32d5cc
......@@ -8,6 +8,7 @@ layer.config({
});
var isMobile = $.common.isMobile() || $(window).width() < 769;
var sidebarHeight = isMobile ? '100%' : '96%';
$(function() {
// MetsiMenu
......@@ -15,7 +16,7 @@ $(function() {
// 固定菜单栏
$('.sidebar-collapse').slimScroll({
height: '96%',
height: sidebarHeight,
railOpacity: 0.9,
alwaysVisible: false
});
......
......@@ -53,6 +53,11 @@ $(function() {
if (!$(".popover:hover").length) $(_this).popover("hide");
}, 100);
});
// 取消回车自动提交表单
$(document).on("keypress", "form", function(event) {
return event.keyCode != 13;
});
// laydate 时间控件绑定
if ($(".select-time").length > 0) {
......
......@@ -174,7 +174,7 @@ public class ExcelUtil<T>
for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++)
{
Cell cell = heard.getCell(i);
if (StringUtils.isNotNull(cell != null))
if (StringUtils.isNotNull(cell))
{
String value = this.getCellValue(heard, i).toString();
cellMap.put(value, i);
......@@ -835,7 +835,7 @@ public class ExcelUtil<T>
try
{
Cell cell = row.getCell(column);
if (cell != null)
if (StringUtils.isNotNull(cell))
{
if (cell.getCellTypeEnum() == CellType.NUMERIC || cell.getCellTypeEnum() == CellType.FORMULA)
{
......
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