diff --git a/src/enumerate/constant/index.js b/src/enumerate/constant/index.js index 26a511d..9b3fb95 100644 --- a/src/enumerate/constant/index.js +++ b/src/enumerate/constant/index.js @@ -4,10 +4,61 @@ export {}; +// 口门类型 +export const AREA_TYPE_ENUM = [ + { name: "人行口门", bianma: "1" }, + { name: "车行口门", bianma: "2" }, + { name: "综合口门", bianma: "3" }, +]; + +// 口门状态 +export const AREA_STATUS_ENUM = [ + { name: "停用", bianma: "0" }, + { name: "正常", bianma: "1" }, + { name: "暂时关闭", bianma: "2" }, +]; + +// 闸机类型 +export const FARE_GATE_TYPE_ENUM = [ + { name: "入", bianma: "1" }, + { name: "出", bianma: "2" }, +]; + +// 闸机类别 +export const FARE_GATE_CATEGORY_ENUM = [ + { name: "人行闸机", bianma: "1" }, + { name: "车辆闸机", bianma: "2" }, + { name: "综合闸机", bianma: "3" }, +]; + +// 闸机状态 +export const FARE_GATE_STATUS_ENUM = [ + { name: "停用", bianma: "0" }, + { name: "正常", bianma: "1" }, + { name: "暂时关闭", bianma: "2" }, +]; + +// 通道类型 +export const CHANNEL_TYPE_ENUM = [ + { name: "人行通道", bianma: "1" }, + { name: "车辆通道", bianma: "2" }, + { name: "综合通道", bianma: "3" }, +]; + +// 通道状态 +export const CHANNEL_STATUS_ENUM = [ + { name: "停用", bianma: "0" }, + { name: "正常", bianma: "1" }, + { name: "暂时关闭", bianma: "2" }, +]; + +// 车辆类型 export const VEHICLE_TYPE_ENUM = [ { bianma: "1", name: "单位车辆" }, { bianma: "2", name: "员工车辆" }, ]; + +// 当前在港状态 export const CURRENT_IN_PORT_STATUS_ENUM = [ { name: "港内", bianma: "1" }, { name: "港外", bianma: "2" }, diff --git a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/FareGate/index.js b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/FareGate/index.js index 984db47..8dd24b5 100644 --- a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/FareGate/index.js +++ b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/FareGate/index.js @@ -13,25 +13,9 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender"; import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery"; import useTable from "zy-react-library/hooks/useTable"; import { getLabelName } from "zy-react-library/utils"; +import { FARE_GATE_CATEGORY_ENUM, FARE_GATE_STATUS_ENUM, FARE_GATE_TYPE_ENUM } from "~/enumerate/constant"; import { NS_FIRST_LEVEL_DOOR_INFO } from "~/enumerate/namespace"; -const FARE_GATE_TYPE_ENUM = [ - { name: "入", bianma: "1" }, - { name: "出", bianma: "2" }, -]; - -const FARE_GATE_CATEGORY_ENUM = [ - { name: "人行闸机", bianma: "1" }, - { name: "车辆闸机", bianma: "2" }, - { name: "综合闸机", bianma: "3" }, -]; - -const FARE_GATE_STATUS_ENUM = [ - { name: "停用", bianma: "0" }, - { name: "正常", bianma: "1" }, - { name: "暂时关闭", bianma: "2" }, -]; - function List(props) { const [addModalVisible, setAddModalVisible] = useState(false); const [currentId, setCurrentId] = useState(""); diff --git a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/List/index.js b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/List/index.js index 54106cb..4b55562 100644 --- a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/List/index.js +++ b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/Channel/List/index.js @@ -13,20 +13,9 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender"; import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery"; import useTable from "zy-react-library/hooks/useTable"; import { getLabelName } from "zy-react-library/utils"; +import { CHANNEL_STATUS_ENUM, CHANNEL_TYPE_ENUM } from "~/enumerate/constant"; import { NS_FIRST_LEVEL_DOOR_INFO } from "~/enumerate/namespace"; -const CHANNEL_TYPE_ENUM = [ - { name: "人行通道", bianma: "1" }, - { name: "车辆通道", bianma: "2" }, - { name: "综合通道", bianma: "3" }, -]; - -const CHANNEL_STATUS_ENUM = [ - { name: "停用", bianma: "0" }, - { name: "正常", bianma: "1" }, - { name: "暂时关闭", bianma: "2" }, -]; - function List(props) { const [addModalVisible, setAddModalVisible] = useState(false); const [currentId, setCurrentId] = useState(""); diff --git a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/List/index.js b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/List/index.js index 31991dd..939597d 100644 --- a/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/List/index.js +++ b/src/pages/Container/Supervision/FirstLevelDoor/BasicInfo/FirstLevelDoorInfo/List/index.js @@ -13,19 +13,9 @@ import Table from "zy-react-library/components/Table"; import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender"; import useTable from "zy-react-library/hooks/useTable"; import { getLabelName } from "zy-react-library/utils"; +import { AREA_STATUS_ENUM, AREA_TYPE_ENUM } from "~/enumerate/constant"; import { NS_FIRST_LEVEL_DOOR_INFO } from "~/enumerate/namespace"; -const AREA_TYPE_ENUM = [ - { name: "人行口门", bianma: "1" }, - { name: "车行口门", bianma: "2" }, - { name: "综合口门", bianma: "3" }, -]; - -const AREA_STATUS_ENUM = [ - { name: "停用", bianma: "0" }, - { name: "正常", bianma: "1" }, - { name: "暂时关闭", bianma: "2" }, -]; const areaLevel = 1; function List(props) {