Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
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
easyUI
hls-easy-ui
Commits
4935a91d
Commit
4935a91d
authored
Oct 12, 2024
by
王纵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化getBindValue
parent
92492547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.js
src/Dynamic/utils/utils.js
+2
-2
No files found.
src/Dynamic/utils/utils.js
View file @
4935a91d
...
...
@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-30 14:39:47
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-
09-19 16:16:57
* @LastEditTime: 2024-
10-12 15:32:31
* @Version: 1.0.0
* @Description: 工具类
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -287,7 +287,7 @@ const reloadData = (dataSets, type = 'all') => {
const
getBindValue
=
(
bindStr
,
record
)
=>
{
const
bindArr
=
bindStr
.
split
(
'.'
);
if
(
bindArr
.
length
>
1
)
{
return
record
[
bindArr
[
0
]]
[
bindArr
[
1
]];
return
record
[
bindArr
[
0
]]
?
record
[
bindArr
[
0
]][
bindArr
[
1
]]
:
record
[
bindArr
[
0
]];
}
else
{
return
record
[
bindArr
[
0
]];
}
...
...
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