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
e517741f
Commit
e517741f
authored
Mar 25, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全屏editFull打开适配表树
parent
d0665396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+18
-4
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
e517741f
...
...
@@ -214,10 +214,15 @@ var table = {
// 图片预览事件
$
(
optionsIds
).
off
(
"click"
).
on
(
"click"
,
'.img-circle'
,
function
()
{
var
src
=
$
(
this
).
attr
(
'src'
);
var
target
=
$
(
this
).
data
(
'target'
);
var
height
=
$
(
this
).
data
(
'height'
);
var
width
=
$
(
this
).
data
(
'width'
);
if
(
$
.
common
.
equals
(
"self"
,
target
))
{
var
height
=
$
(
this
).
data
(
'height'
);
var
width
=
$
(
this
).
data
(
'width'
);
// 如果是移动端,就使用自适应大小弹窗
if
(
$
.
common
.
isMobile
())
{
width
=
'auto'
;
height
=
'auto'
;
}
layer
.
open
({
title
:
false
,
type
:
1
,
...
...
@@ -1031,8 +1036,17 @@ var table = {
if
(
$
.
common
.
isNotEmpty
(
id
))
{
url
=
table
.
options
.
updateUrl
.
replace
(
"{id}"
,
id
);
}
else
{
var
row
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
url
=
table
.
options
.
updateUrl
.
replace
(
"{id}"
,
row
);
if
(
table
.
options
.
type
==
table_type
.
bootstrapTreeTable
)
{
var
row
=
$
(
"#"
+
table
.
options
.
id
).
bootstrapTreeTable
(
'getSelections'
)[
0
];
if
(
$
.
common
.
isEmpty
(
row
))
{
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
return
;
}
url
=
table
.
options
.
updateUrl
.
replace
(
"{id}"
,
row
[
table
.
options
.
uniqueId
]);
}
else
{
var
row
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
url
=
table
.
options
.
updateUrl
.
replace
(
"{id}"
,
row
);
}
}
$
.
modal
.
openFull
(
"修改"
+
table
.
options
.
modalName
,
url
);
},
...
...
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