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
30b3909f
Commit
30b3909f
authored
May 23, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复selectColumns方法获取子对象数据无效问题。
parent
f72d399f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+6
-6
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
30b3909f
...
...
@@ -447,13 +447,13 @@ var table = {
// 查询表格指定列值
selectColumns
:
function
(
column
)
{
var
rows
=
$
.
map
(
$
(
"#"
+
table
.
options
.
id
).
bootstrapTable
(
'getSelections'
),
function
(
row
)
{
return
getItemField
(
row
,
column
);
return
$
.
common
.
getItemField
(
row
,
column
);
});
if
(
$
.
common
.
isNotEmpty
(
table
.
options
.
rememberSelected
)
&&
table
.
options
.
rememberSelected
)
{
var
selectedRows
=
table
.
rememberSelecteds
[
table
.
options
.
id
];
if
(
$
.
common
.
isNotEmpty
(
selectedRows
))
{
rows
=
$
.
map
(
table
.
rememberSelecteds
[
table
.
options
.
id
],
function
(
row
)
{
return
getItemField
(
row
,
column
);
return
$
.
common
.
getItemField
(
row
,
column
);
});
}
}
...
...
@@ -465,7 +465,7 @@ var table = {
var
rowIds
;
if
(
$
.
isArray
(
rows
))
{
rowIds
=
$
.
map
(
rows
,
function
(
row
)
{
return
getItemField
(
row
,
column
);
return
$
.
common
.
getItemField
(
row
,
column
);
});
}
else
{
rowIds
=
[
rows
[
column
]];
...
...
@@ -475,13 +475,13 @@ var table = {
// 查询表格首列值
selectFirstColumns
:
function
()
{
var
rows
=
$
.
map
(
$
(
"#"
+
table
.
options
.
id
).
bootstrapTable
(
'getSelections'
),
function
(
row
)
{
return
getItemField
(
row
,
table
.
options
.
columns
[
1
].
field
);
return
$
.
common
.
getItemField
(
row
,
table
.
options
.
columns
[
1
].
field
);
});
if
(
$
.
common
.
isNotEmpty
(
table
.
options
.
rememberSelected
)
&&
table
.
options
.
rememberSelected
)
{
var
selectedRows
=
table
.
rememberSelecteds
[
table
.
options
.
id
];
if
(
$
.
common
.
isNotEmpty
(
selectedRows
))
{
rows
=
$
.
map
(
selectedRows
,
function
(
row
)
{
return
getItemField
(
row
,
table
.
options
.
columns
[
1
].
field
);
return
$
.
common
.
getItemField
(
row
,
table
.
options
.
columns
[
1
].
field
);
});
}
}
...
...
@@ -577,7 +577,7 @@ var table = {
// 查询表格树指定列值
selectColumns
:
function
(
column
)
{
var
rows
=
$
.
map
(
$
.
bttTable
.
bootstrapTreeTable
(
'getSelections'
),
function
(
row
)
{
return
getItemField
(
row
,
column
);
return
$
.
common
.
getItemField
(
row
,
column
);
});
return
$
.
common
.
uniqueFn
(
rows
);
},
...
...
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