将口门类型、口门状态、闸机类型、闸机类别、闸机状态、通道类型、通道状态枚举定义移动到常量文件

master
LiuJiaNan 2026-02-04 15:33:11 +08:00
parent ae7627b1be
commit 3bafc36a3f
4 changed files with 54 additions and 40 deletions

View File

@ -4,10 +4,61 @@
export {}; 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 = [ export const VEHICLE_TYPE_ENUM = [
{ bianma: "1", name: "单位车辆" }, { bianma: "1", name: "单位车辆" },
{ bianma: "2", name: "员工车辆" }, { bianma: "2", name: "员工车辆" },
]; ];
// 当前在港状态
export const CURRENT_IN_PORT_STATUS_ENUM = [ export const CURRENT_IN_PORT_STATUS_ENUM = [
{ name: "港内", bianma: "1" }, { name: "港内", bianma: "1" },
{ name: "港外", bianma: "2" }, { name: "港外", bianma: "2" },

View File

@ -13,25 +13,9 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery"; import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
import useTable from "zy-react-library/hooks/useTable"; import useTable from "zy-react-library/hooks/useTable";
import { getLabelName } from "zy-react-library/utils"; 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"; 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) { function List(props) {
const [addModalVisible, setAddModalVisible] = useState(false); const [addModalVisible, setAddModalVisible] = useState(false);
const [currentId, setCurrentId] = useState(""); const [currentId, setCurrentId] = useState("");

View File

@ -13,20 +13,9 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery"; import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
import useTable from "zy-react-library/hooks/useTable"; import useTable from "zy-react-library/hooks/useTable";
import { getLabelName } from "zy-react-library/utils"; 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"; 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) { function List(props) {
const [addModalVisible, setAddModalVisible] = useState(false); const [addModalVisible, setAddModalVisible] = useState(false);
const [currentId, setCurrentId] = useState(""); const [currentId, setCurrentId] = useState("");

View File

@ -13,19 +13,9 @@ import Table from "zy-react-library/components/Table";
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender"; import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
import useTable from "zy-react-library/hooks/useTable"; import useTable from "zy-react-library/hooks/useTable";
import { getLabelName } from "zy-react-library/utils"; 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"; 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; const areaLevel = 1;
function List(props) { function List(props) {