部分按钮添加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),
});
}}
ghost
>
返回
</Button>

View File

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

View File

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

View File

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

View File

@ -79,6 +79,7 @@ function List(props) {
backDepartmentIds: urlState.backDepartmentIds.slice(0, -1),
});
}}
ghost
>
返回
</Button>
@ -101,7 +102,7 @@ function List(props) {
fixed: "right",
render: (_, record) => (
<Space>
{props.permission(props.authorizationScopeBtn || "jgd-io-stock-pv-edit") && (
{props.permission(props.authorizationScopeBtn || "jgd-io-stock-pv-edit") && (
<Button
type="link"
disabled={!record.userFaceUrl || !record.userCard}

View File

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

View File

@ -34,7 +34,8 @@ function List(props) {
form,
params: {
personBelongType: 4,
processOrRecord: !props.isRecords ? 1 : 2 },
processOrRecord: !props.isRecords ? 1 : 2,
},
});
const getFirstLevelDoorInfoListAll = async () => {
@ -85,6 +86,7 @@ function List(props) {
onClick={() => {
setQrCodeModalVisible(true);
}}
ghost
>
访客二维码
</Button>
@ -119,17 +121,17 @@ function List(props) {
查看
</Button>
)}
{/*{props.permission(props.auditInfoBtn || "jgd-entry-temp-personnel-audit-info") && (*/}
{/* <Button*/}
{/* type="link"*/}
{/* onClick={() => {*/}
{/* setApprovalDetailsModalVisible(true);*/}
{/* setCurrentId(record.id);*/}
{/* }}*/}
{/* >*/}
{/* 审批详情*/}
{/* </Button>*/}
{/*)}*/}
{/* {props.permission(props.auditInfoBtn || "jgd-entry-temp-personnel-audit-info") && ( */}
{/* <Button */}
{/* type="link" */}
{/* onClick={() => { */}
{/* setApprovalDetailsModalVisible(true); */}
{/* setCurrentId(record.id); */}
{/* }} */}
{/* > */}
{/* 审批详情 */}
{/* </Button> */}
{/* )} */}
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-personnel-audit")) && (
<Button
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 { getLabelName } from "zy-react-library/utils";
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) {
const [qrCodeModalVisible, setQrCodeModalVisible] = useState(false);
@ -80,6 +80,7 @@ function List(props) {
onClick={() => {
setQrCodeModalVisible(true);
}}
ghost
>
访客二维码
</Button>
@ -117,18 +118,18 @@ function List(props) {
查看
</Button>
)}
{/*{props.permission(props.auditInfoBtn || "jgd-entry-temp-vehicle-audit-info") && (*/}
{/* <Button*/}
{/* type="link"*/}
{/* onClick={() => {*/}
{/* setApprovalDetailsModalVisible(true);*/}
{/* setCurrentId(record.id);*/}
{/* setCurrentVehicleApplyId(record.vehicleApplyId);*/}
{/* }}*/}
{/* >*/}
{/* 审批详情*/}
{/* </Button>*/}
{/*)}*/}
{/* {props.permission(props.auditInfoBtn || "jgd-entry-temp-vehicle-audit-info") && ( */}
{/* <Button */}
{/* type="link" */}
{/* onClick={() => { */}
{/* setApprovalDetailsModalVisible(true); */}
{/* setCurrentId(record.id); */}
{/* setCurrentVehicleApplyId(record.vehicleApplyId); */}
{/* }} */}
{/* > */}
{/* 审批详情 */}
{/* </Button> */}
{/* )} */}
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission(props.auditBtn || "jgd-entry-temp-vehicle-audit")) && (
<Button
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);
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));