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
28c861c6
Commit
28c861c6
authored
5 years ago
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复冻结列排序样式无效问题
parent
dcbc77b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
+26
-1
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js
+26
-1
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js
View file @
28c861c6
...
...
@@ -244,7 +244,32 @@
$
(
'.fixed-table-body input[name=btSelectItem]'
).
closest
(
'tr'
).
removeClass
(
'selected'
);
});
//// events
$
(
"#"
+
table
.
options
.
id
).
off
(
'click'
,
'.fixed-table-body'
).
on
(
'click'
,
'.th-inner'
,
function
(
event
)
{
$
.
each
(
that
.
$fixedHeader
.
find
(
'th'
),
function
(
i
,
th
)
{
$
(
th
).
find
(
'.sortable'
).
removeClass
(
'desc asc'
).
addClass
(
'both'
);
});
});
// events
this
.
$fixedHeader
.
off
(
'click'
,
'.th-inner'
).
on
(
'click'
,
'.th-inner'
,
function
(
event
)
{
var
target
=
$
(
this
);
var
$this
=
event
.
type
===
"keypress"
?
$
(
event
.
currentTarget
)
:
$
(
event
.
currentTarget
).
parent
(),
$this_
=
that
.
$header
.
find
(
'th'
).
eq
(
$this
.
index
());
var
sortOrder
=
""
;
if
(
table
.
options
.
sortName
===
$this
.
data
(
'field'
))
{
sortOrder
=
table
.
options
.
sortOrder
===
'asc'
?
'desc'
:
'asc'
;
}
else
{
sortOrder
=
$this
.
data
(
'order'
)
===
'asc'
?
'desc'
:
'asc'
;
}
table
.
options
.
sortOrder
=
sortOrder
;
var
sortName
=
$this
.
data
(
'sortName'
)
?
$this
.
data
(
'sortName'
)
:
$this
.
data
(
'field'
);
if
(
target
.
parent
().
data
().
sortable
)
{
$
.
each
(
that
.
$fixedHeader
.
find
(
'th'
),
function
(
i
,
th
)
{
$
(
th
).
find
(
'.sortable'
).
removeClass
(
'desc asc'
).
addClass
((
$
(
th
).
data
(
'field'
)
===
sortName
||
$
(
th
).
data
(
'sortName'
)
===
sortName
)
?
sortOrder
:
'both'
);
});
}
});
this
.
$tableBody
.
on
(
'scroll'
,
function
()
{
that
.
$fixedBody
.
find
(
'table'
).
css
(
'top'
,
-
$
(
this
).
scrollTop
());
});
...
...
This diff is collapsed.
Click to expand it.
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