fix: 花名册操作按钮缩小(图标 h-3.5 + padding p-1)
This commit is contained in:
@@ -965,14 +965,14 @@ export default function Roster() {
|
|||||||
type="button"
|
type="button"
|
||||||
title="调薪"
|
title="调薪"
|
||||||
aria-label={`为${e.name}调薪`}
|
aria-label={`为${e.name}调薪`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
setSalaryEmployee(e)
|
setSalaryEmployee(e)
|
||||||
setShowSalaryModal(true)
|
setShowSalaryModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DollarSign className="h-4 w-4" />
|
<DollarSign className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
{/* 试用期员工显示转正按钮 */}
|
{/* 试用期员工显示转正按钮 */}
|
||||||
{e.probationInfo?.isProbation && (
|
{e.probationInfo?.isProbation && (
|
||||||
@@ -980,28 +980,28 @@ export default function Roster() {
|
|||||||
type="button"
|
type="button"
|
||||||
title="转正"
|
title="转正"
|
||||||
aria-label={`为${e.name}办理转正`}
|
aria-label={`为${e.name}办理转正`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
setConfirmEmployee(e)
|
setConfirmEmployee(e)
|
||||||
setShowConfirmModal(true)
|
setShowConfirmModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CheckCircle className="h-4 w-4" />
|
<CheckCircle className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
title="调动"
|
title="调动"
|
||||||
aria-label={`为${e.name}调动`}
|
aria-label={`为${e.name}调动`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
setDeptEmployee(e)
|
setDeptEmployee(e)
|
||||||
setShowDeptModal(true)
|
setShowDeptModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Building2 className="h-4 w-4" />
|
<Building2 className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-center gap-0.5 border-t border-gray-100 pt-1.5">
|
<div className="flex items-center justify-center gap-0.5 border-t border-gray-100 pt-1.5">
|
||||||
@@ -1009,7 +1009,7 @@ export default function Roster() {
|
|||||||
type="button"
|
type="button"
|
||||||
title="开具证明"
|
title="开具证明"
|
||||||
aria-label={`为${e.name}开具证明`}
|
aria-label={`为${e.name}开具证明`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
setCertEmployee(e)
|
setCertEmployee(e)
|
||||||
@@ -1018,14 +1018,14 @@ export default function Roster() {
|
|||||||
setShowCertModal(true)
|
setShowCertModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FileText className="h-4 w-4" />
|
<FileText className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
{(e.contractStatus === 'expiring' || e.contractStatus === 'expired') && (
|
{(e.contractStatus === 'expiring' || e.contractStatus === 'expired') && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
title="续签合同"
|
title="续签合同"
|
||||||
aria-label={`为${e.name}续签合同`}
|
aria-label={`为${e.name}续签合同`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
// 自动推导新合同开始日期:原合同结束日 + 1天
|
// 自动推导新合同开始日期:原合同结束日 + 1天
|
||||||
@@ -1043,21 +1043,21 @@ export default function Roster() {
|
|||||||
setShowRenewModal(true)
|
setShowRenewModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<RotateCcw className="h-4 w-4" />
|
<RotateCcw className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
title="离职"
|
title="离职"
|
||||||
aria-label={`为${e.name}办理离职`}
|
aria-label={`为${e.name}办理离职`}
|
||||||
className="rounded-md p-1.5 text-gray-500 transition hover:bg-danger/10 hover:text-danger"
|
className="rounded-md p-1 text-gray-500 transition hover:bg-danger/10 hover:text-danger"
|
||||||
onClick={(ev) => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
setResignEmployee(e)
|
setResignEmployee(e)
|
||||||
setShowResignModal(true)
|
setShowResignModal(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<UserX className="h-4 w-4" />
|
<UserX className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user