refactor(form): 统一表单组件的使用
- 将 Form.useForm() 替换为 Search.useForm() - 将 Form.useForm() 替换为 FormBuilder.useForm()master
parent
8de6f12667
commit
749241c85a
|
|
@ -1,6 +1,6 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, message, Modal, Space } from "antd";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import BackIcon from "zy-react-library/components/Icon/BackIcon";
|
||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const [authorizationScopeModalVisible, setAuthorizationScopeModalVisible] = useState(false);
|
||||
const [currentInfo, setCurrentInfo] = useState({});
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const [urlState, setUrlState] = useUrlState({
|
||||
departmentId: "",
|
||||
backDepartmentIds: [],
|
||||
|
|
@ -141,7 +141,7 @@ function List(props) {
|
|||
}
|
||||
|
||||
const AuthorizationScopeModalComponent = (props) => {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["enclosedEnterprisePersonnelPermissionsInfo"]({ id: props.info.id });
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -15,7 +14,7 @@ const ENTRY_AND_EXIT_STATUS_ENUM = [
|
|||
];
|
||||
|
||||
function PersonnelRecords(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const query = useGetUrlQuery();
|
||||
const { tableProps, getData } = useTable(props["enclosedEnterprisePersonnelPermissionsPersonnelRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form } from "antd";
|
||||
import { Button } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -14,7 +14,7 @@ export const BELONGING_END_ENUM = [
|
|||
];
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enclosedLongTermPersonnelReviewList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form, message } from "antd";
|
||||
import { message } from "antd";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
|
|
@ -8,7 +8,7 @@ import ViewPage from "~/pages/Container/Supervision/EnclosedArea/Apply/Personnel
|
|||
|
||||
function Review(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const onSubmit = async (values) => {
|
||||
const { success } = await props["enclosedLongTermPersonnelReviewSubmit"]({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -13,7 +13,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enclosedLongTermPersonnelReviewRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form } from "antd";
|
||||
import { Button } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -7,7 +7,7 @@ import useTable from "zy-react-library/hooks/useTable";
|
|||
import { NS_ENCLOSED_TEMPORARY_PERSONNEL_REVIEW } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enclosedTemporaryPersonnelReviewList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Descriptions, Divider, Form, message, Spin } from "antd";
|
||||
import { Descriptions, Divider, message, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -12,7 +12,7 @@ function Review(props) {
|
|||
const [info, setInfo] = useState({});
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["enclosedTemporaryPersonnelReviewInfo"]({ id: query.id });
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -11,7 +11,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enclosedTemporaryPersonnelReviewRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form } from "antd";
|
||||
import { Button } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -15,7 +15,7 @@ export const BELONGING_END_ENUM = [
|
|||
];
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["enclosedLongTermVehicleReviewList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form, message } from "antd";
|
||||
import { message } from "antd";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
|
|
@ -8,7 +8,7 @@ import ViewPage from "~/pages/Container/Supervision/EnclosedArea/Apply/Vehicle/V
|
|||
|
||||
function Review(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const onSubmit = async (values) => {
|
||||
const { success } = await props["enclosedLongTermVehicleReviewSubmit"]({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -13,7 +13,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["enclosedLongTermVehicleReviewRecordsList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form } from "antd";
|
||||
import { Button } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -7,7 +7,7 @@ import useTable from "zy-react-library/hooks/useTable";
|
|||
import { NS_ENCLOSED_TEMPORARY_VEHICLE_REVIEW } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["enclosedTemporaryVehicleReviewList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Descriptions, Divider, Form, message, Spin } from "antd";
|
||||
import { Descriptions, Divider, message, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -12,7 +12,7 @@ function Review(props) {
|
|||
const [info, setInfo] = useState({});
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["enclosedTemporaryVehicleReviewInfo"]({ id: query.id });
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -12,7 +12,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["enclosedTemporaryVehicleReviewRecordsList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, message, Modal } from "antd";
|
||||
import { Button, message, Modal } from "antd";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -11,7 +11,7 @@ import NeedToKnowModal from "~/components/NeedToKnowModal";
|
|||
import { NS_FIRST_LEVEL_DOOR_INFO, NS_PERSONNEL_APPLICATION } from "~/enumerate/namespace";
|
||||
|
||||
function Add(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
const gateLevelAuthArea = FormBuilder.useWatch("gateLevelAuthArea", form);
|
||||
|
||||
const [personnelList, setPersonnelList] = useState([]);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -14,7 +14,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [viewModalVisible, setViewModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["personnelApplicationList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import PreviewImg from "zy-react-library/components/PreviewImg";
|
||||
|
|
@ -19,7 +19,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [viewModalVisible, setViewModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["personnelApplicationList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, Modal } from "antd";
|
||||
import { Button, Descriptions, Divider, Modal } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import PreviewImg from "zy-react-library/components/PreviewImg";
|
||||
|
|
@ -12,7 +12,7 @@ function List(props) {
|
|||
const [infoModalVisible, setInfoModalVisible] = useState(false);
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["personnelPermissionRecordsList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, message } from "antd";
|
||||
import { Button, message } from "antd";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -14,8 +14,8 @@ import NeedToKnowModal from "~/components/NeedToKnowModal";
|
|||
import { NS_FIRST_LEVEL_DOOR_INFO, NS_VEHICLE_APPLICATION } from "~/enumerate/namespace";
|
||||
|
||||
function Add(props) {
|
||||
const [form] = Form.useForm();
|
||||
const todo7 = Form.useWatch("todo7", form);
|
||||
const [form] = FormBuilder.useForm();
|
||||
const todo7 = FormBuilder.useWatch("todo7", form);
|
||||
const gateLevelAuthArea = FormBuilder.useWatch("gateLevelAuthArea", form);
|
||||
|
||||
const [needToKnowModalVisible, setNeedToKnowModalVisible] = useState(false);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -14,7 +14,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [viewModalVisible, setViewModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["vehicleApplicationList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import PreviewImg from "zy-react-library/components/PreviewImg";
|
||||
|
|
@ -19,7 +19,7 @@ function List(props) {
|
|||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
const [viewModalVisible, setViewModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["vehicleApplicationList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Space } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -7,7 +7,7 @@ import useTable from "zy-react-library/hooks/useTable";
|
|||
import { NS_BRANCH_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["branchPersonnelAndVehiclesList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Space } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -10,7 +10,7 @@ import { NS_BRANCH_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
|||
|
||||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["branchPersonnelAndVehiclesPersonnelAndVehicleList"], {
|
||||
form,
|
||||
params: { id: query.id },
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Space } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
|
|
@ -12,7 +12,7 @@ import { NS_BRANCH_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
|||
|
||||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["branchPersonnelAndVehiclesVehicleManagementList"], {
|
||||
form,
|
||||
params: { id: query.id },
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, message, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
|
|
@ -17,7 +17,7 @@ function List(props) {
|
|||
const [addModalVisible, setAddModalVisible] = useState(false);
|
||||
const [viewModalVisible, setViewModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["inspectDepartmentVehiclesList"], {
|
||||
form,
|
||||
});
|
||||
|
|
@ -140,7 +140,7 @@ function List(props) {
|
|||
}
|
||||
|
||||
const AddModalComponent = (props) => {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["inspectDepartmentVehiclesInfo"]({ id: props.id });
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form } from "antd";
|
||||
import { Button } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -7,7 +7,7 @@ import useTable from "zy-react-library/hooks/useTable";
|
|||
import { NS_PORT_BASED_UNITS_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["portBasedUnitsPersonnelAndVehiclesList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Space } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import { useEffect } from "react";
|
||||
import BackIcon from "zy-react-library/components/Icon/BackIcon";
|
||||
import DepartmentLeftTree from "zy-react-library/components/LeftTree/Department/Gwj";
|
||||
|
|
@ -14,7 +14,7 @@ import { NS_PORT_BASED_UNITS_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespac
|
|||
|
||||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const [urlState, setUrlState] = useUrlState({
|
||||
departmentId: "",
|
||||
backDepartmentIds: [],
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Space } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -7,7 +7,7 @@ import useTable from "zy-react-library/hooks/useTable";
|
|||
import { NS_STAKEHOLDER_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["stakeholderPersonnelAndVehiclesList"], {
|
||||
form,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Modal, Space } from "antd";
|
||||
import { Button, Modal, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -15,7 +15,7 @@ const STATUS_ENUM = [
|
|||
|
||||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["stakeholderPersonnelAndVehiclesPersonnelList"], {
|
||||
form,
|
||||
params: { id: query.query },
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, Modal, Space } from "antd";
|
||||
import { Button, Modal, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -15,7 +15,7 @@ const STATUS_ENUM = [
|
|||
|
||||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["stakeholderPersonnelAndVehiclesVehicleList"], {
|
||||
form,
|
||||
params: { id: query.id },
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, message, Modal, Space } from "antd";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import BackIcon from "zy-react-library/components/Icon/BackIcon";
|
||||
|
|
@ -16,7 +16,7 @@ import { NS_STOCK_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
|||
function List(props) {
|
||||
const [authorizationModalVisible, setAuthorizationModalVisible] = useState(false);
|
||||
const [currentInfo, setCurrentInfo] = useState("");
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const [urlState, setUrlState] = useUrlState({
|
||||
departmentId: "",
|
||||
backDepartmentIds: [],
|
||||
|
|
@ -150,7 +150,7 @@ function List(props) {
|
|||
}
|
||||
|
||||
const AuthorizationModalVisibleComponent = (props) => {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const onSubmit = async (values) => {
|
||||
const { userId, corpinfoId, corpName, departmentId, departmentName, userName, userFaceUrl, userPhone, userCard } = props.info;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -15,7 +14,7 @@ const ENTRY_AND_EXIT_STATUS_ENUM = [
|
|||
];
|
||||
|
||||
function PersonnelRecords(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const query = useGetUrlQuery();
|
||||
const { tableProps, getData } = useTable(props["stockPersonnelAndVehiclesPersonnelRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Form, message, Modal, Space } from "antd";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -18,7 +18,7 @@ const VEHICLE_APPROVAL_STATUS_ENUM = [
|
|||
];
|
||||
|
||||
function List(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const query = useGetUrlQuery();
|
||||
const { tableProps, getData } = useTable(props["vehicleApplyList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
|
|
@ -16,7 +15,7 @@ const ENTRY_AND_EXIT_STATUS_ENUM = [
|
|||
];
|
||||
|
||||
function VehicleRecords(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const query = useGetUrlQuery();
|
||||
const { tableProps, getData } = useTable(props["stockPersonnelAndVehiclesVehicleManagementVehicleRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Form } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
|
|
@ -12,7 +11,7 @@ import { CURRENT_IN_PORT_STATUS_ENUM } from "~/enumerate/constant";
|
|||
import { NS_VEHICLE_APPLY } from "~/enumerate/namespace";
|
||||
|
||||
function VehicleRecords(props) {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const query = useGetUrlQuery();
|
||||
const { tableProps, getData } = useTable(props["vehicleApplyRecordsList"], {
|
||||
form,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, Form, message, Modal, Space } from "antd";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -26,7 +26,7 @@ function RelatedPersonnel(props) {
|
|||
const [infoModalVisible, setInfoModalVisible] = useState(false);
|
||||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["temporaryPersonnelList"], {
|
||||
form,
|
||||
params: { processOrRecord: !props.isRecords ? 1 : 2 },
|
||||
|
|
@ -144,7 +144,7 @@ function RelatedPersonnel(props) {
|
|||
}
|
||||
|
||||
const ReviewModalComponent = (props) => {
|
||||
const [form] = Form.useForm();
|
||||
const [form] = FormBuilder.useForm();
|
||||
|
||||
const onSubmit = async (values) => {
|
||||
const { success } = await props["temporaryPersonnelReview"]({
|
||||
|
|
|
|||
Loading…
Reference in New Issue