部分按钮添加ghost属性

master
LiuJiaNan 2026-04-01 17:57:49 +08:00
parent 9595358142
commit 40192f9621
8 changed files with 37 additions and 28 deletions

View File

@ -80,6 +80,7 @@ function List(props) {
backDepartmentIds: urlState.backDepartmentIds.slice(0, -1), backDepartmentIds: urlState.backDepartmentIds.slice(0, -1),
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -118,6 +118,7 @@ function DetailList(props) {
jurisdictionalCorpName: urlState.backParentIds.at(-1) === "0" ? undefined : urlState.jurisdictionalCorpName, jurisdictionalCorpName: urlState.backParentIds.at(-1) === "0" ? undefined : urlState.jurisdictionalCorpName,
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -58,6 +58,7 @@ function List(props) {
backParentIds: urlState.backParentIds.slice(0, -1), backParentIds: urlState.backParentIds.slice(0, -1),
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -85,6 +85,7 @@ function List(props) {
backDepartmentIds: urlState.backDepartmentIds.slice(0, -1), backDepartmentIds: urlState.backDepartmentIds.slice(0, -1),
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -79,6 +79,7 @@ function List(props) {
backDepartmentIds: urlState.backDepartmentIds.slice(0, -1), backDepartmentIds: urlState.backDepartmentIds.slice(0, -1),
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -112,6 +112,7 @@ function List(props) {
backDepartmentIds: urlState.backDepartmentIds.slice(0, -1), backDepartmentIds: urlState.backDepartmentIds.slice(0, -1),
}); });
}} }}
ghost
> >
返回 返回
</Button> </Button>

View File

@ -34,7 +34,8 @@ function List(props) {
form, form,
params: { params: {
personBelongType: 4, personBelongType: 4,
processOrRecord: !props.isRecords ? 1 : 2 }, processOrRecord: !props.isRecords ? 1 : 2,
},
}); });
const getFirstLevelDoorInfoListAll = async () => { const getFirstLevelDoorInfoListAll = async () => {
@ -85,6 +86,7 @@ function List(props) {
onClick={() => { onClick={() => {
setQrCodeModalVisible(true); setQrCodeModalVisible(true);
}} }}
ghost
> >
访客二维码 访客二维码
</Button> </Button>
@ -119,17 +121,17 @@ function List(props) {
查看 查看
</Button> </Button>
)} )}
{/*{props.permission(props.auditInfoBtn || "jgd-entry-temp-personnel-audit-info") && (*/} {/* {props.permission(props.auditInfoBtn || "jgd-entry-temp-personnel-audit-info") && ( */}
{/* <Button*/} {/* <Button */}
{/* type="link"*/} {/* type="link" */}
{/* onClick={() => {*/} {/* onClick={() => { */}
{/* setApprovalDetailsModalVisible(true);*/} {/* setApprovalDetailsModalVisible(true); */}
{/* setCurrentId(record.id);*/} {/* setCurrentId(record.id); */}
{/* }}*/} {/* }} */}
{/* >*/} {/* > */}
{/* 审批详情*/} {/* 审批详情 */}
{/* </Button>*/} {/* </Button> */}
{/*)}*/} {/* )} */}
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-personnel-audit")) && ( {(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-personnel-audit")) && (
<Button <Button
type="link" type="link"

View File

@ -15,7 +15,7 @@ import useGetFile from "zy-react-library/hooks/useGetFile";
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 { VEHICLE_AUDIT_STATUS_ENUM } from "~/enumerate/constant"; import { VEHICLE_AUDIT_STATUS_ENUM } from "~/enumerate/constant";
import { NS_FIRST_LEVEL_DOOR_INFO, NS_TEMPORARY_VEHICLE, NS_VEHICLE_AUDIT,NS_VEHICLE_APPLY } from "~/enumerate/namespace"; import { NS_FIRST_LEVEL_DOOR_INFO, NS_TEMPORARY_VEHICLE, NS_VEHICLE_APPLY, NS_VEHICLE_AUDIT } from "~/enumerate/namespace";
function List(props) { function List(props) {
const [qrCodeModalVisible, setQrCodeModalVisible] = useState(false); const [qrCodeModalVisible, setQrCodeModalVisible] = useState(false);
@ -80,6 +80,7 @@ function List(props) {
onClick={() => { onClick={() => {
setQrCodeModalVisible(true); setQrCodeModalVisible(true);
}} }}
ghost
> >
访客二维码 访客二维码
</Button> </Button>
@ -117,18 +118,18 @@ function List(props) {
查看 查看
</Button> </Button>
)} )}
{/*{props.permission(props.auditInfoBtn || "jgd-entry-temp-vehicle-audit-info") && (*/} {/* {props.permission(props.auditInfoBtn || "jgd-entry-temp-vehicle-audit-info") && ( */}
{/* <Button*/} {/* <Button */}
{/* type="link"*/} {/* type="link" */}
{/* onClick={() => {*/} {/* onClick={() => { */}
{/* setApprovalDetailsModalVisible(true);*/} {/* setApprovalDetailsModalVisible(true); */}
{/* setCurrentId(record.id);*/} {/* setCurrentId(record.id); */}
{/* setCurrentVehicleApplyId(record.vehicleApplyId);*/} {/* setCurrentVehicleApplyId(record.vehicleApplyId); */}
{/* }}*/} {/* }} */}
{/* >*/} {/* > */}
{/* 审批详情*/} {/* 审批详情 */}
{/* </Button>*/} {/* </Button> */}
{/*)}*/} {/* )} */}
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-vehicle-audit")) && ( {(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-vehicle-audit")) && (
<Button <Button
type="link" type="link"
@ -392,7 +393,7 @@ const ApprovalDetailsModalComponent = (props) => {
); );
}; };
const ReviewModal = Connect([NS_VEHICLE_AUDIT,NS_VEHICLE_APPLY], true)(ReviewModalComponent); const ReviewModal = Connect([NS_VEHICLE_AUDIT, NS_VEHICLE_APPLY], true)(ReviewModalComponent);
const ApprovalDetailsModal = Connect([NS_TEMPORARY_VEHICLE], true)(ApprovalDetailsModalComponent); const ApprovalDetailsModal = Connect([NS_TEMPORARY_VEHICLE], true)(ApprovalDetailsModalComponent);
export default Connect([NS_VEHICLE_AUDIT,NS_VEHICLE_APPLY, NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List)); export default Connect([NS_VEHICLE_AUDIT, NS_VEHICLE_APPLY, NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List));