feat:相关方人员及车辆管理
parent
d94bb8b2e2
commit
4ea4964b03
|
|
@ -25,12 +25,12 @@ function List(props) {
|
||||||
onFinish={getData}
|
onFinish={getData}
|
||||||
options={[
|
options={[
|
||||||
{ name: "licenceNo", label: "车牌号" },
|
{ name: "licenceNo", label: "车牌号" },
|
||||||
{
|
// {
|
||||||
name: "todo2",
|
// name: "todo2",
|
||||||
label: "当前在港状态",
|
// label: "当前在港状态",
|
||||||
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
// render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
items: CURRENT_IN_PORT_STATUS_ENUM,
|
// items: CURRENT_IN_PORT_STATUS_ENUM,
|
||||||
},
|
// },
|
||||||
{ name: "gateLevelAuthArea", label: "访问港区范围", render: (<DictionarySelect dictValue="HG_AUTH_AREA" />) },
|
{ name: "gateLevelAuthArea", label: "访问港区范围", render: (<DictionarySelect dictValue="HG_AUTH_AREA" />) },
|
||||||
{ name: "visitStartTime", label: "访问开始时间", render: FORM_ITEM_RENDER_ENUM.DATE },
|
{ name: "visitStartTime", label: "访问开始时间", render: FORM_ITEM_RENDER_ENUM.DATE },
|
||||||
{ name: "visitEndTime", label: "访问结束时间", render: FORM_ITEM_RENDER_ENUM.DATE },
|
{ name: "visitEndTime", label: "访问结束时间", render: FORM_ITEM_RENDER_ENUM.DATE },
|
||||||
|
|
@ -49,7 +49,7 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ title: "访问起始时间", dataIndex: "visitStartTime" },
|
{ title: "访问起始时间", dataIndex: "visitStartTime" },
|
||||||
{ title: "访问结束时间", dataIndex: "visitEndTime" },
|
{ title: "访问结束时间", dataIndex: "visitEndTime" },
|
||||||
{ title: "当前在港状态", dataIndex: "todo8" },
|
// { title: "当前在港状态", dataIndex: "todo8" },
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
width: 200,
|
width: 200,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Modal, Space } from "antd";
|
import { Button, Modal,message, Space } from "antd";
|
||||||
import Page from "zy-react-library/components/Page";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
|
|
@ -9,8 +9,8 @@ import { getLabelName } from "zy-react-library/utils";
|
||||||
import { NS_STAKEHOLDER_PERSONNEL_AND_VEHICLES, NS_STOCK_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
import { NS_STAKEHOLDER_PERSONNEL_AND_VEHICLES, NS_STOCK_PERSONNEL_AND_VEHICLES } from "~/enumerate/namespace";
|
||||||
|
|
||||||
const STATUS_ENUM = [
|
const STATUS_ENUM = [
|
||||||
{ bianme: "1", name: "开启" },
|
{ bianma: 1, name: "开启" },
|
||||||
{ bianme: "2", name: "关闭" },
|
{ bianma: 2, name: "关闭" },
|
||||||
];
|
];
|
||||||
|
|
||||||
function List(props) {
|
function List(props) {
|
||||||
|
|
@ -22,10 +22,10 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const onUpdateStatus = (record) => {
|
const onUpdateStatus = (record) => {
|
||||||
const { userId, corpinfoId, corpName, departmentId, departmentName, userName, userFaceUrl, userPhone, userCard } = props.info;
|
const { userId, corpinfoId, corpName, departmentId, departmentName, userName, userFaceUrl, userPhone, userCard } = record;
|
||||||
const message = record.mkmjPermission === 1 ? "关闭" : "开启";
|
const messageInfo = record.mkmjPermission === 1 ? "关闭" : "开启";
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: `${message}口门权限`,
|
title: `${messageInfo}口门权限`,
|
||||||
content: record.mkmjPermission === 1
|
content: record.mkmjPermission === 1
|
||||||
? (
|
? (
|
||||||
<>
|
<>
|
||||||
|
|
@ -50,7 +50,7 @@ function List(props) {
|
||||||
userCard,
|
userCard,
|
||||||
});
|
});
|
||||||
if (success) {
|
if (success) {
|
||||||
message.success(`${message}成功`);
|
message.success(`${messageInfo}成功`);
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ function List(props) {
|
||||||
<div style={{ width: 300 }}>
|
<div style={{ width: 300 }}>
|
||||||
<DepartmentLeftTree
|
<DepartmentLeftTree
|
||||||
onGetNodePaths={(event) => {
|
onGetNodePaths={(event) => {
|
||||||
const departmentId = event.at(-1).departmentId;
|
const departmentId = event.at(-1).id;
|
||||||
setUrlState({
|
setUrlState({
|
||||||
departmentId,
|
departmentId,
|
||||||
backDepartmentIds: [...urlState.backDepartmentIds, urlState.departmentId],
|
backDepartmentIds: [...urlState.backDepartmentIds, urlState.departmentId],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue