@nokecy/qc-ui 0.1.37 → 0.1.39
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.
|
@@ -29,7 +29,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
29
29
|
|
|
30
30
|
var getFilter = function getFilter(objectKey, value) {
|
|
31
31
|
if (typeof value === 'string') {
|
|
32
|
-
return value && value != "" ? "".concat(objectKey, "
|
|
32
|
+
return value && value != "" ? "".concat(objectKey, " ^ ").concat(value) : "";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
if (typeof value === 'number') {
|
|
@@ -59,7 +59,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
if (typeof value === 'string') {
|
|
62
|
-
value && value != "" && items.push("".concat(objectKey, "
|
|
62
|
+
value && value != "" && items.push("".concat(objectKey, " ^ ").concat(value));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
if (typeof value === 'boolean') {
|
|
@@ -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
|
|
|
@@ -20,7 +20,7 @@ import dayjs from 'dayjs';
|
|
|
20
20
|
|
|
21
21
|
var getFilter = function getFilter(objectKey, value) {
|
|
22
22
|
if (typeof value === 'string') {
|
|
23
|
-
return value && value != "" ? "".concat(objectKey, "
|
|
23
|
+
return value && value != "" ? "".concat(objectKey, " ^ ").concat(value) : "";
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if (typeof value === 'number') {
|
|
@@ -50,7 +50,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
if (typeof value === 'string') {
|
|
53
|
-
value && value != "" && items.push("".concat(objectKey, "
|
|
53
|
+
value && value != "" && items.push("".concat(objectKey, " ^ ").concat(value));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
if (typeof value === 'boolean') {
|
|
@@ -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
|
|