Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
27f40d03
Commit
27f40d03
authored
Apr 28, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消回车自动提交表单
parent
cb32d5cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ruoyi-admin/src/main/resources/static/ruoyi/index.js
+2
-1
ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
+5
-0
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
+2
-2
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/index.js
View file @
27f40d03
...
...
@@ -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
});
...
...
ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
View file @
27f40d03
...
...
@@ -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
)
{
...
...
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
View file @
27f40d03
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment