@visns-studio/visns-components 2.7.9 → 2.7.11
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.
|
@@ -1892,12 +1892,26 @@ const DataGrid = forwardRef(
|
|
|
1892
1892
|
useEffect(() => {
|
|
1893
1893
|
columns.forEach((column) => {
|
|
1894
1894
|
if (column.filter && column.filter.url) {
|
|
1895
|
+
let filterWhere = {};
|
|
1896
|
+
|
|
1897
|
+
if (column.filter.where) {
|
|
1898
|
+
filterWhere = {
|
|
1899
|
+
...filterWhere,
|
|
1900
|
+
where: column.filter.where,
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
if (column.filter.fields) {
|
|
1905
|
+
filterWhere = {
|
|
1906
|
+
...filterWhere,
|
|
1907
|
+
fields: column.filter.fields,
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1895
1911
|
CustomFetch(
|
|
1896
1912
|
column.filter.url,
|
|
1897
1913
|
'POST',
|
|
1898
|
-
|
|
1899
|
-
? { where: column.filter.where }
|
|
1900
|
-
: {},
|
|
1914
|
+
filterWhere,
|
|
1901
1915
|
(res) => {
|
|
1902
1916
|
let filterName;
|
|
1903
1917
|
if (Array.isArray(column.id)) {
|
package/components/crm/Field.jsx
CHANGED
package/package.json
CHANGED