Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
2d4d7df1
Commit
2d4d7df1
authored
Dec 21, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
333
parent
c3711749
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
listeningFromData.js
...xt/src/main/webapp/biz/topsun/common/listeningFromData.js
+5
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/common/listeningFromData.js
View file @
2d4d7df1
...
...
@@ -370,8 +370,10 @@ function checkUpdata() {
let
rawData
=
dataSet
.
rawData
,
newData
=
dataSet
.
newData
;
window
.
dataSet
.
upData
=
{};
let
rawEntry
=
Object
.
entries
(
rawData
);
debugger
;
tryForEach
(
rawEntry
,
entry
=>
{
let
beanName
=
entry
[
0
];
console
.
log
(
beanName
);
let
mapping
=
window
.
dataMapping
[
beanName
],
raw
=
rawData
[
beanName
],
now
=
newData
[
beanName
];
if
(
mapping
instanceof
Array
)
{
// Form 时 执行此逻辑
...
...
@@ -382,7 +384,10 @@ function checkUpdata() {
}
else
if
(
mapping
instanceof
Object
)
{
// Grid 时 执行此逻辑
let
rawCompares
=
raw
.
compares
,
nowCompares
=
now
.
compares
;
if
(
!
rawCompares
)
{
rawCompares
=
{};
}
if
(
!
nowCompares
)
{
nowCompares
=
{};
}
if
(
!
(
getHashCode
(
JSON
.
stringify
(
rawCompares
))
===
getHashCode
(
JSON
.
stringify
(
nowCompares
))))
{
debugger
;
let
rawIds
=
raw
.
ids
,
nowIds
=
now
.
ids
;
dataSet
.
upData
[
beanName
]
=
{};
dataSet
.
upData
[
beanName
].
del
=
[];
...
...
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