Commit 1899b2ec by zhangleyuan

feat:处理编辑禁用

parent f9006b9b
......@@ -23,4 +23,7 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.edit-disable{
color:#666;
}
}
\ No newline at end of file
......@@ -209,11 +209,20 @@ function EmployeeManage() {
<div className="no-operate">-</div>
) : (
<div className="operation">
{!record.depNameList &&
<span className="edit edit-disable">
编辑
</span>
}
{record.depNameList &&
(record.depNameList.length > 0 &&
(record.depNameList.length > 0 ?
<span className="edit" onClick={() => handleEditEmployee(record)}>
编辑
</span>
:
<span className="edit edit-disable">
编辑
</span>
)
}
<span className="divider-line">{" | "}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment