Feature/reports road items

This commit is contained in:
2025-01-19 09:37:25 +00:00
committed by AmirHossein Mahmoodi
parent 897a3b3988
commit e2dacdf448
81 changed files with 2722 additions and 430 deletions

View File

@@ -27,7 +27,17 @@ const DataTableProvider = ({ children, user_id, page_name, table_name, columns,
JSON.stringify(sortData) !== JSON.stringify(initSort) ||
JSON.stringify(filterData) !== JSON.stringify(initFilter);
const CheckFilterValues = Object.values(filterData).every((innerObject) => innerObject.value === "");
const CheckFilterValues = Object.values(filterData).every((innerObject) => {
if (innerObject.datatype === "date" && innerObject.filterMode === "between") {
return (
Array.isArray(innerObject.value) &&
innerObject.value.length === 2 &&
innerObject.value.every((v) => v === "")
);
} else {
return innerObject.value === "";
}
});
const CheckHideValues = Object.values(hideData).every((value) => value === true);
hasAnyConflict =

View File

@@ -1,5 +1,4 @@
import { useState, useEffect } from "react";
import axios from "axios";
import { GET_CITY_LISTS } from "@/core/utils/routes";
import useRequest from "@/lib/hooks/useRequest";