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
9cf4b893
Commit
9cf4b893
authored
Jul 24, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
冻结列去除选中背景
parent
aa5d2b9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js
+4
-2
ruoyi-admin/src/main/resources/static/css/style.css
+0
-6
ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
+7
-0
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js
View file @
9cf4b893
...
...
@@ -94,7 +94,8 @@
this
.
$selectAll
=
$ltr
.
find
(
'[name="btSelectAll"]'
);
this
.
$selectAll
.
on
(
'click'
,
function
()
{
var
checked
=
$
(
this
).
prop
(
'checked'
);
$
(
".left-fixed-table-columns input[name=btSelectItem]"
).
filter
(
':enabled'
).
prop
(
'checked'
,
checked
);
$
(
".left-fixed-body-columns input[name=btSelectItem]"
).
filter
(
':enabled'
).
prop
(
'checked'
,
checked
);
$
(
'.fixed-table-body input[name=btSelectItem]'
).
closest
(
'tr'
).
removeClass
(
'selected'
);
});
}
};
...
...
@@ -235,11 +236,12 @@
$
.
btTable
.
on
(
"check.bs.table uncheck.bs.table"
,
function
(
e
,
rows
,
$element
)
{
var
index
=
$element
.
data
(
'index'
);
$
(
this
).
find
(
'.bs-checkbox'
).
find
(
'input[data-index="'
+
index
+
'"]'
).
prop
(
"checked"
,
true
);
var
selectFixedItem
=
$
(
'.left-fixed-
table
-columns input[name=btSelectItem]'
);
var
selectFixedItem
=
$
(
'.left-fixed-
body
-columns input[name=btSelectItem]'
);
var
checkAll
=
selectFixedItem
.
filter
(
':enabled'
).
length
&&
selectFixedItem
.
filter
(
':enabled'
).
length
===
selectFixedItem
.
filter
(
':enabled'
).
filter
(
':checked'
).
length
;
$
(
".left-fixed-table-columns input[name=btSelectAll]"
).
prop
(
'checked'
,
checkAll
);
$
(
'.fixed-table-body input[name=btSelectItem]'
).
closest
(
'tr'
).
removeClass
(
'selected'
);
});
//// events
...
...
ruoyi-admin/src/main/resources/static/css/style.css
View file @
9cf4b893
...
...
@@ -7065,9 +7065,4 @@ body.rtls .top-navigation .footer.fixed, body.rtls.top-navigation .footer.fixed
top
:
0px
;
z-index
:
9998
;
margin
:
0
;
}
.selected
{
background-color
:
#E8F7FD
;
color
:
#1890ff
;
}
\ No newline at end of file
ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
View file @
9cf4b893
...
...
@@ -956,4 +956,10 @@ label {
background-color
:
#999
!important
;
text-shadow
:
0
0
10px
black
,
0
0
10px
black
,
0
0
8px
black
,
0
0
6px
black
,
0
0
6px
black
;
box-shadow
:
0
12px
14px
-12px
#111
inset
,
0
-2px
2px
-1px
#333
inset
}
/** 表格选中样式 **/
.fixed-table-container
.selected
{
background-color
:
#E8F7FD
;
color
:
#1890ff
;
}
\ No newline at end of file
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