fixed bug
This commit is contained in:
@@ -25,7 +25,7 @@ function TabPanel(props) {
|
||||
|
||||
const validationSchema = object({
|
||||
recognize_picture: mixed().nullable().required("لطفا تصویر بازدید 1 را بارگذاری کنید!"),
|
||||
recognize_picture_2: mixed().nullable().required("لطفا تصویر بازدید 2 را بارگذاری کنید!"),
|
||||
recognize_picture_second: mixed().nullable().required("لطفا تصویر بازدید 2 را بارگذاری کنید!"),
|
||||
info_id: number().required("نوع آیتم را مشخص کنید!"),
|
||||
axis_type_id: string().required("نوع محور را مشخص کنید!"),
|
||||
start_point: mixed()
|
||||
@@ -44,7 +44,7 @@ const CreateFormContent = ({ setOpen, mutate }) => {
|
||||
info_id: null,
|
||||
axis_type_id: "",
|
||||
recognize_picture: null,
|
||||
recognize_picture_2: null,
|
||||
recognize_picture_second: null,
|
||||
activity_date: "",
|
||||
activity_time: "",
|
||||
start_point: "",
|
||||
@@ -62,7 +62,7 @@ const CreateFormContent = ({ setOpen, mutate }) => {
|
||||
if (tabState === 2) {
|
||||
const fieldsToReset = [
|
||||
"recognize_picture",
|
||||
"recognize_picture_2",
|
||||
"recognize_picture_second",
|
||||
"activity_time",
|
||||
"activity_date",
|
||||
"start_point",
|
||||
@@ -94,7 +94,7 @@ const CreateFormContent = ({ setOpen, mutate }) => {
|
||||
formData.append("info_id", data.info_id);
|
||||
formData.append("axis_type_id", data.axis_type_id);
|
||||
formData.append("recognize_picture", data.recognize_picture);
|
||||
formData.append("recognize_picture_2", data.recognize_picture_2);
|
||||
formData.append("recognize_picture_second", data.recognize_picture_second);
|
||||
formData.append("point", startPoint);
|
||||
await requestServer(FIRST_STEP_STORE, "post", {
|
||||
data: formData,
|
||||
|
||||
@@ -112,7 +112,7 @@ const GetSubItemInfo = ({ itemsList, control, setValue, errors }) => {
|
||||
</Grid>
|
||||
<Grid item xs={12} sm={6}>
|
||||
<Controller
|
||||
name="recognize_picture_2"
|
||||
name="recognize_picture_second"
|
||||
control={control}
|
||||
render={({ field, fieldState: { error } }) => (
|
||||
<ImageUpload
|
||||
|
||||
@@ -206,8 +206,8 @@ const OperatorList = () => {
|
||||
{row.original.is_finished == 1
|
||||
? "خاتمه یافته"
|
||||
: row.original.is_finished == 0
|
||||
? "در جریان"
|
||||
: "-"}
|
||||
? "در جریان"
|
||||
: "-"}
|
||||
</>
|
||||
),
|
||||
},
|
||||
@@ -313,8 +313,8 @@ const OperatorList = () => {
|
||||
return row.original.recognize_picture ? (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
<RecognizePictureDialog
|
||||
image1={row.original.recognize_picture}
|
||||
image2={row.original.recognize_picture_2}
|
||||
image1={row.original.recognize_picture ?? ""}
|
||||
image2={row.original.recognize_picture_second ?? ""}
|
||||
/>
|
||||
</Stack>
|
||||
) : (
|
||||
@@ -369,7 +369,7 @@ const OperatorList = () => {
|
||||
return (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
{row.original.judiciary_document_upload_date !== "0000-00-00 00:00:00" &&
|
||||
row.original.judiciary_document_upload_date ? (
|
||||
row.original.judiciary_document_upload_date ? (
|
||||
<JudiciaryDocumentDialog rowId={row.getValue("id")} />
|
||||
) : (
|
||||
<>-</>
|
||||
@@ -454,9 +454,9 @@ const OperatorList = () => {
|
||||
return row.original.action_picture ? (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
<ActionPictureDialog
|
||||
image1={row.original.action_picture}
|
||||
image2={row.original.finish_picture}
|
||||
image3={row.original.evidence_picture}
|
||||
image1={row.original.action_picture ?? ""}
|
||||
image2={row.original.finish_picture ?? ""}
|
||||
image3={row.original.evidence_picture ?? ""}
|
||||
/>
|
||||
</Stack>
|
||||
) : (
|
||||
|
||||
@@ -87,7 +87,7 @@ const ContentInfoItem = ({ data }) => {
|
||||
<Chip size="small" label="تصویر بازدید" />
|
||||
<Box sx={{ position: "relative", height: 300, width: "100%" }}>
|
||||
<Image
|
||||
src={data.recognize_picture_2}
|
||||
src={data.recognize_picture_second}
|
||||
style={{ objectFit: "contain" }}
|
||||
alt="recognize_picture"
|
||||
fill
|
||||
|
||||
@@ -155,8 +155,8 @@ const SupervisorList = () => {
|
||||
props.dependencyFieldValue?.value === ""
|
||||
? "empty"
|
||||
: loadingEdaratList
|
||||
? "loading"
|
||||
: props.filterParameters.value
|
||||
? "loading"
|
||||
: props.filterParameters.value
|
||||
}
|
||||
columnSelectOption={getColumnSelectOptions}
|
||||
/>
|
||||
@@ -313,8 +313,8 @@ const SupervisorList = () => {
|
||||
{row.original.is_finished == 1
|
||||
? "خاتمه یافته"
|
||||
: row.original.is_finished == 0
|
||||
? "در جریان"
|
||||
: "-"}
|
||||
? "در جریان"
|
||||
: "-"}
|
||||
</>
|
||||
),
|
||||
},
|
||||
@@ -420,8 +420,8 @@ const SupervisorList = () => {
|
||||
return row.original.recognize_picture ? (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
<RecognizePictureDialog
|
||||
image1={row.original.recognize_picture}
|
||||
image2={row.original.recognize_picture_2}
|
||||
image1={row.original.recognize_picture ?? ""}
|
||||
image2={row.original.recognize_picture_second ?? ""}
|
||||
/>
|
||||
</Stack>
|
||||
) : (
|
||||
@@ -476,7 +476,7 @@ const SupervisorList = () => {
|
||||
return (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
{row.original.judiciary_document_upload_date !== "0000-00-00 00:00:00" &&
|
||||
row.original.judiciary_document_upload_date ? (
|
||||
row.original.judiciary_document_upload_date ? (
|
||||
<JudiciaryDocumentDialog rowId={row.getValue("id")} />
|
||||
) : (
|
||||
<>-</>
|
||||
@@ -561,9 +561,9 @@ const SupervisorList = () => {
|
||||
return row.original.action_picture ? (
|
||||
<Stack alignItems={"center"} justifyContent={"center"}>
|
||||
<ActionPictureDialog
|
||||
image1={row.original.action_picture}
|
||||
image2={row.original.finish_picture}
|
||||
image3={row.original.evidence_picture}
|
||||
image1={row.original.action_picture ?? ""}
|
||||
image2={row.original.finish_picture ?? ""}
|
||||
image3={row.original.evidence_picture ?? ""}
|
||||
/>
|
||||
</Stack>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user