change position actions

This commit is contained in:
AmirHossein Mahmoodi
2025-05-31 10:17:18 +03:30
parent 0992e1b768
commit 01896d129f
4 changed files with 13 additions and 21 deletions

View File

@@ -115,8 +115,8 @@ const ComplaintListTable = ({ open, setOpen, mutate }) => {
props.dependencyFieldValue?.value === ""
? "empty"
: loadingEdaratList
? "loading"
: props.filterParameters.value
? "loading"
: props.filterParameters.value
}
columnSelectOption={getColumnSelectOptions}
/>
@@ -259,13 +259,13 @@ const ComplaintListTable = ({ open, setOpen, mutate }) => {
need_filter={true}
table_title={"لیست شکایات"}
columns={columns}
sorting={[{ id: "fk_RegisteredEventMessage", desc: true }]}
sorting={[{ id: "StartTime_DateTime", desc: true }]}
table_url={GET_FAST_REACT_COMPLAINTS}
page_name={"fastReactComplaint"}
table_name={"fastReactComplaintList"}
TableToolbar={Toolbar}
enableRowActions
positionActionsColumn={"last"}
positionActionsColumn={"first"}
RowActions={(props) => <RowActions {...props} mutateParentTable={mutate} />}
/>
</Box>

View File

@@ -360,7 +360,7 @@ const OperatorList = () => {
table_name={"fastReactOperatorList"}
TableToolbar={Toolbar}
enableRowActions
positionActionsColumn={"last"}
positionActionsColumn={"first"}
RowActions={RowActions}
/>
</Box>

View File

@@ -127,8 +127,8 @@ const SupervisorList = () => {
props.dependencyFieldValue?.value === ""
? "empty"
: loadingEdaratList
? "loading"
: props.filterParameters.value
? "loading"
: props.filterParameters.value
}
columnSelectOption={getColumnSelectOptions}
/>
@@ -460,7 +460,7 @@ const SupervisorList = () => {
table_name={"fastReactSupervisorList"}
TableToolbar={Toolbar}
enableRowActions
positionActionsColumn={"last"}
positionActionsColumn={"first"}
RowActions={RowActions}
/>
</Box>

View File

@@ -378,19 +378,11 @@ export const pageMenu = [
id: "roadObservationsManagmentSupervisorCartable",
label: "کارتابل",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/supervisor/cartable",
permissions: ["supervise-fast-react", "supervise-fast-react-province"],
route: "/dashboard/fast-react/supervisor",
permissions: ["show-fast-react", "show-fast-react-province"],
},
],
},
{
id: "roadObservationsManagmentList",
label: "رسیدگی به شکایات",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations",
icon: <AssignmentLateIcon sx={{ width: "inherit", height: "inherit" }} />,
permissions: ["show-fast-react", "show-fast-react-province", "show-fast-react-edarate-shahri"],
},
{
id: "roadObservationsManagmentOparation",
label: "عملیات",
@@ -403,8 +395,8 @@ export const pageMenu = [
id: "roadObservationsManagmentOparationCartable",
label: "کارتابل",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/operator/cartable",
permissions: ["show-fast-react", "show-fast-react-province", "show-fast-react-edarate-shahri"],
route: "/dashboard/fast-react/operator",
permissions: ["show-fast-react-edarate-shahri"],
},
],
},
@@ -421,7 +413,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/report/index",
icon: <ReportIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
permissions: ["all"],
},
],