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
233089b3
Commit
233089b3
authored
Jun 28, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持openOptions方法多个按钮回调
parent
bb0e7bd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
16 deletions
+25
-16
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+25
-16
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
233089b3
...
@@ -801,22 +801,31 @@ var table = {
...
@@ -801,22 +801,31 @@ var table = {
options
.
callBack
(
index
,
layero
);
options
.
callBack
(
index
,
layero
);
}
}
}
}
layer
.
open
({
var
btnCallback
=
{};
type
:
2
,
if
(
options
.
btn
instanceof
Array
){
maxmin
:
true
,
for
(
var
i
=
1
,
len
=
options
.
btn
.
length
;
i
<
len
;
i
++
)
{
shade
:
0.3
,
var
btn
=
options
[
"btn"
+
(
i
+
1
)];
title
:
_title
,
if
(
btn
)
{
fix
:
false
,
btnCallback
[
"btn"
+
(
i
+
1
)]
=
btn
;
area
:
[
_width
+
'px'
,
_height
+
'px'
],
}
content
:
_url
,
}
shadeClose
:
$
.
common
.
isEmpty
(
options
.
shadeClose
)
?
true
:
options
.
shadeClose
,
}
skin
:
options
.
skin
,
layer
.
open
(
$
.
extend
({
btn
:
$
.
common
.
isEmpty
(
options
.
btn
)
?
_btn
:
options
.
btn
,
type
:
2
,
yes
:
options
.
yes
,
maxmin
:
true
,
cancel
:
function
()
{
shade
:
0.3
,
return
true
;
title
:
_title
,
}
fix
:
false
,
});
area
:
[
_width
+
'px'
,
_height
+
'px'
],
content
:
_url
,
shadeClose
:
$
.
common
.
isEmpty
(
options
.
shadeClose
)
?
true
:
options
.
shadeClose
,
skin
:
options
.
skin
,
btn
:
$
.
common
.
isEmpty
(
options
.
btn
)
?
_btn
:
options
.
btn
,
yes
:
options
.
yes
,
cancel
:
function
()
{
return
true
;
}
},
btnCallback
));
},
},
// 弹出层全屏
// 弹出层全屏
openFull
:
function
(
title
,
url
,
width
,
height
)
{
openFull
:
function
(
title
,
url
,
width
,
height
)
{
...
...
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