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
5bd1e2bd
Commit
5bd1e2bd
authored
Jun 01, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text name
parent
ec8d651e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/resources/static/ajax/libs/jqTreeGrid/jquery.treegrid.extension.js
+4
-4
No files found.
src/main/resources/static/ajax/libs/jqTreeGrid/jquery.treegrid.extension.js
View file @
5bd1e2bd
...
...
@@ -73,11 +73,11 @@
hasSelectItem
=
true
;
var
td
=
$
(
'<td style="text-align:center;width:36px"></td>'
);
if
(
column
.
radio
){
var
_ipt
=
$
(
'<input
text
="select_item" type="radio" value="'
+
item
[
options
.
id
]
+
'"></input>'
);
var
_ipt
=
$
(
'<input
name
="select_item" type="radio" value="'
+
item
[
options
.
id
]
+
'"></input>'
);
td
.
append
(
_ipt
);
}
if
(
column
.
checkbox
){
var
_ipt
=
$
(
'<input
text
="select_item" type="checkbox" value="'
+
item
[
options
.
id
]
+
'"></input>'
);
var
_ipt
=
$
(
'<input
name
="select_item" type="checkbox" value="'
+
item
[
options
.
id
]
+
'"></input>'
);
td
.
append
(
_ipt
);
}
tr
.
append
(
td
);
...
...
@@ -170,7 +170,7 @@
// 行点击选中事件
target
.
find
(
"tbody"
).
find
(
"tr"
).
click
(
function
(){
if
(
hasSelectItem
){
var
_ipt
=
$
(
this
).
find
(
"input[
text
='select_item']"
);
var
_ipt
=
$
(
this
).
find
(
"input[
name
='select_item']"
);
if
(
_ipt
.
attr
(
"type"
)
==
"radio"
){
_ipt
.
prop
(
'checked'
,
true
);
target
.
find
(
"tbody"
).
find
(
"tr"
).
removeClass
(
"treegrid-selected"
);
...
...
@@ -209,7 +209,7 @@
// 为了兼容bootstrap-table的写法,统一返回数组,这里只返回了指定的id
getSelections
:
function
(
target
,
data
)
{
// 所有被选中的记录input
var
_ipt
=
target
.
find
(
"tbody"
).
find
(
"tr"
).
find
(
"input[
text
='select_item']:checked"
);
var
_ipt
=
target
.
find
(
"tbody"
).
find
(
"tr"
).
find
(
"input[
name
='select_item']:checked"
);
var
chk_value
=
[];
// 如果是radio
if
(
_ipt
.
attr
(
"type"
)
==
"radio"
){
...
...
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