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
0df61a63
Commit
0df61a63
authored
Jun 20, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增回显数据字典(字符串数组)
parent
68a4e6de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+15
-0
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
0df61a63
...
...
@@ -499,6 +499,21 @@ var table = {
});
return
actions
.
join
(
''
);
},
// 回显数据字典(字符串数组)
selectDictLabels
:
function
(
datas
,
value
,
separator
)
{
var
currentSeparator
=
$
.
common
.
isEmpty
(
separator
)
?
","
:
separator
;
var
actions
=
[];
$
.
each
(
value
.
split
(
currentSeparator
),
function
(
i
,
val
)
{
$
.
each
(
datas
,
function
(
index
,
dict
)
{
if
(
dict
.
dictValue
==
(
''
+
val
))
{
var
listClass
=
$
.
common
.
equals
(
"default"
,
dict
.
listClass
)
||
$
.
common
.
isEmpty
(
dict
.
listClass
)
?
""
:
"badge badge-"
+
dict
.
listClass
;
actions
.
push
(
$
.
common
.
sprintf
(
"<span class='%s'>%s </span>"
,
listClass
,
dict
.
dictLabel
));
return
false
;
}
});
});
return
actions
.
join
(
''
);
},
// 显示表格指定列
showColumn
:
function
(
column
,
tableId
)
{
var
currentId
=
$
.
common
.
isEmpty
(
tableId
)
?
table
.
options
.
id
:
tableId
;
...
...
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