Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
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
liyang
sts网站
Commits
133a10ec
Commit
133a10ec
authored
Jul 22, 2020
by
若依
Committed by
Gitee
Jul 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
!47 修复和优化前端 utils 工具函数
Merge pull request !47 from FungLeo/master
parents
6a84ae42
a09a342f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
index.js
ruoyi-ui/src/utils/index.js
+3
-1
ruoyi.js
ruoyi-ui/src/utils/ruoyi.js
+3
-3
No files found.
ruoyi-ui/src/utils/index.js
View file @
133a10ec
import
{
parseTime
}
from
'./ruoyi'
/**
/**
* 表格时间格式化
* 表格时间格式化
*/
*/
...
...
ruoyi-ui/src/utils/ruoyi.js
View file @
133a10ec
...
@@ -68,10 +68,10 @@ export function addDateRange(params, dateRange) {
...
@@ -68,10 +68,10 @@ export function addDateRange(params, dateRange) {
// 回显数据字典
// 回显数据字典
export
function
selectDictLabel
(
datas
,
value
)
{
export
function
selectDictLabel
(
datas
,
value
)
{
var
actions
=
[];
var
actions
=
[];
Object
.
keys
(
datas
).
map
((
key
)
=>
{
Object
.
keys
(
datas
).
some
((
key
)
=>
{
if
(
datas
[
key
].
dictValue
==
(
''
+
value
))
{
if
(
datas
[
key
].
dictValue
==
(
''
+
value
))
{
actions
.
push
(
datas
[
key
].
dictLabel
);
actions
.
push
(
datas
[
key
].
dictLabel
);
return
fals
e
;
return
tru
e
;
}
}
})
})
return
actions
.
join
(
''
);
return
actions
.
join
(
''
);
...
...
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