记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
706f5b31
Commit
706f5b31
authored
Jun 02, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove removeAll add message
parent
57e47bc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ry-ui.js
...ent-admin-web/src/main/resources/static/ruoyi/js/ry-ui.js
+7
-5
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
706f5b31
...
@@ -1008,9 +1008,10 @@ var table = {
...
@@ -1008,9 +1008,10 @@ var table = {
return
url
;
return
url
;
},
},
// 删除信息
// 删除信息
remove
:
function
(
id
)
{
remove
:
function
(
id
,
message
)
{
table
.
set
();
table
.
set
();
$
.
modal
.
confirm
(
"确定删除该条"
+
table
.
options
.
modalName
+
"信息吗?"
,
function
()
{
message
=
message
??
"确定删除该条"
+
table
.
options
.
modalName
+
"信息吗?"
;
$
.
modal
.
confirm
(
message
,
function
()
{
var
url
=
$
.
common
.
isEmpty
(
id
)
?
table
.
options
.
removeUrl
:
table
.
options
.
removeUrl
.
replace
(
"{id}"
,
id
);
var
url
=
$
.
common
.
isEmpty
(
id
)
?
table
.
options
.
removeUrl
:
table
.
options
.
removeUrl
.
replace
(
"{id}"
,
id
);
if
(
table
.
options
.
type
==
table_type
.
bootstrapTreeTable
)
{
if
(
table
.
options
.
type
==
table_type
.
bootstrapTreeTable
)
{
$
.
operate
.
get
(
url
);
$
.
operate
.
get
(
url
);
...
@@ -1021,14 +1022,15 @@ var table = {
...
@@ -1021,14 +1022,15 @@ var table = {
});
});
},
},
// 批量删除信息
// 批量删除信息
removeAll
:
function
()
{
removeAll
:
function
(
message
)
{
table
.
set
();
table
.
set
();
var
rows
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
var
rows
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
if
(
rows
.
length
==
0
)
{
message
=
message
??
"确认要删除选中的"
+
rows
.
length
+
"条数据吗?"
;
if
(
rows
.
length
==
0
)
{
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
return
;
return
;
}
}
$
.
modal
.
confirm
(
"确认要删除选中的"
+
rows
.
length
+
"条数据吗?"
,
function
()
{
$
.
modal
.
confirm
(
message
,
function
()
{
var
url
=
table
.
options
.
removeUrl
;
var
url
=
table
.
options
.
removeUrl
;
var
data
=
{
"ids"
:
rows
.
join
()
};
var
data
=
{
"ids"
:
rows
.
join
()
};
$
.
operate
.
submit
(
url
,
"post"
,
"json"
,
data
);
$
.
operate
.
submit
(
url
,
"post"
,
"json"
,
data
);
...
...
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