@nokecy/qc-ui 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -231,7 +231,7 @@ function AgGridPlus(props) {
|
|
|
231
231
|
gridRef.current = {
|
|
232
232
|
onRefresh: onRefresh
|
|
233
233
|
};
|
|
234
|
-
}, [queryFilter, JSON.stringify(sortColumn)]);
|
|
234
|
+
}, [queryFilter, JSON.stringify(gridParams), JSON.stringify(sortColumn)]);
|
|
235
235
|
return /*#__PURE__*/_react.default.createElement(_antd.Spin, {
|
|
236
236
|
spinning: loading,
|
|
237
237
|
wrapperClassName: "grid-spin"
|
|
@@ -165,7 +165,7 @@ var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
|
165
165
|
}));
|
|
166
166
|
|
|
167
167
|
if (item[childrenName] && item[childrenName].length !== 0) {
|
|
168
|
-
flattenData(item[childrenName], res, item.id);
|
|
168
|
+
flattenData(item[childrenName], res, item.id, childrenName);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
delete item[childrenName];
|
|
@@ -175,6 +175,7 @@ var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
|
175
175
|
|
|
176
176
|
var res = [];
|
|
177
177
|
flattenData(treeData, res, null, childrenName);
|
|
178
|
+
console.log("tree", res);
|
|
178
179
|
return res;
|
|
179
180
|
};
|
|
180
181
|
|
|
@@ -204,7 +204,7 @@ function AgGridPlus(props) {
|
|
|
204
204
|
gridRef.current = {
|
|
205
205
|
onRefresh: onRefresh
|
|
206
206
|
};
|
|
207
|
-
}, [queryFilter, JSON.stringify(sortColumn)]);
|
|
207
|
+
}, [queryFilter, JSON.stringify(gridParams), JSON.stringify(sortColumn)]);
|
|
208
208
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
209
209
|
spinning: loading,
|
|
210
210
|
wrapperClassName: "grid-spin"
|
|
@@ -144,7 +144,7 @@ var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
|
144
144
|
}));
|
|
145
145
|
|
|
146
146
|
if (item[childrenName] && item[childrenName].length !== 0) {
|
|
147
|
-
flattenData(item[childrenName], res, item.id);
|
|
147
|
+
flattenData(item[childrenName], res, item.id, childrenName);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
delete item[childrenName];
|
|
@@ -154,6 +154,7 @@ var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
|
154
154
|
|
|
155
155
|
var res = [];
|
|
156
156
|
flattenData(treeData, res, null, childrenName);
|
|
157
|
+
console.log("tree", res);
|
|
157
158
|
return res;
|
|
158
159
|
};
|
|
159
160
|
|