Commit 2d4d7df1 authored by 覃振观's avatar 覃振观 👶

333

parent c3711749
......@@ -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 = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment