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
2d07fcb4
Commit
2d07fcb4
authored
Sep 30, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选中/取消事件顺序调整
parent
81ec67d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js
+0
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+9
-9
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js
View file @
2d07fcb4
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
2d07fcb4
...
...
@@ -139,15 +139,6 @@
},
// 初始化事件
initEvent
:
function
(
data
)
{
// 触发行点击事件 加载成功事件
$
.
btTable
.
on
(
"check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table load-success.bs.table"
,
function
()
{
// 工具栏按钮控制
var
rows
=
$
.
common
.
isEmpty
(
$
.
table
.
_option
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
$
.
table
.
_option
.
uniqueId
);
// 非多个禁用
$
(
'#'
+
$
.
table
.
_option
.
toolbar
+
' .multiple'
).
toggleClass
(
'disabled'
,
!
rows
.
length
);
// 非单个禁用
$
(
'#'
+
$
.
table
.
_option
.
toolbar
+
' .single'
).
toggleClass
(
'disabled'
,
rows
.
length
!=
1
);
});
// 绑定选中事件、取消事件、全部选中、全部取消
$
.
btTable
.
on
(
"check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table"
,
function
(
e
,
rows
)
{
// 复选框分页保留保存选中数组
...
...
@@ -158,6 +149,15 @@
selectionRows
=
_
[
func
](
selectionRows
,
rows
);
}
});
// 触发行点击事件 加载成功事件
$
.
btTable
.
on
(
"check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table load-success.bs.table"
,
function
()
{
// 工具栏按钮控制
var
rows
=
$
.
common
.
isEmpty
(
$
.
table
.
_option
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
$
.
table
.
_option
.
uniqueId
);
// 非多个禁用
$
(
'#'
+
$
.
table
.
_option
.
toolbar
+
' .multiple'
).
toggleClass
(
'disabled'
,
!
rows
.
length
);
// 非单个禁用
$
(
'#'
+
$
.
table
.
_option
.
toolbar
+
' .single'
).
toggleClass
(
'disabled'
,
rows
.
length
!=
1
);
});
// 图片预览事件
$
.
btTable
.
on
(
'click'
,
'.img-circle'
,
function
()
{
var
src
=
$
(
this
).
attr
(
'src'
);
...
...
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