优化评查详情中用户操作的更新刷新为热更新
This commit is contained in:
@@ -129,6 +129,10 @@ export function ReviewPointsList({
|
||||
const handleReviewAction = (reviewPointResultId: string, editAuditStatusId: string | number | undefined, action: 'approve' | 'reject' | 'review', message: string) => {
|
||||
// 更新评查点状态
|
||||
// console.log('handleReviewAction-------', reviewPointResultId, editAuditStatusId, action, message);
|
||||
if(message.trim() === ''){
|
||||
toastService.error('请输入审核意见');
|
||||
return;
|
||||
}
|
||||
if (action === 'review') {
|
||||
// 重新审核时,不更新结果状态,只更新审核意见和审核状态
|
||||
// console.log('重新审核-------', reviewPointResultId, editAuditStatusId || '', 'review', message);
|
||||
@@ -592,13 +596,13 @@ export function ReviewPointsList({
|
||||
{reviewPoint.editAuditStatus === 0 ? (
|
||||
<div className="w-full flex justify-end gap-2">
|
||||
<button
|
||||
className="bg-[#1890ff] hover:bg-blue-600 text-xs text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
className="bg-[#1890ff] hover:bg-blue-600 text-sm text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
onClick={() => handleReviewAction(reviewPoint.id, reviewPoint.editAuditStatusId, 'approve', note)}
|
||||
>
|
||||
<i className="ri-check-line mr-1"></i> 通过
|
||||
</button>
|
||||
<button
|
||||
className="bg-[#f5222d] hover:bg-red-600 text-xs text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
className="bg-[#f5222d] hover:bg-red-600 text-sm text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
onClick={() => handleReviewAction(reviewPoint.id, reviewPoint.editAuditStatusId, 'reject', note)}
|
||||
>
|
||||
<i className="ri-close-line mr-1"></i> 不通过
|
||||
@@ -606,7 +610,7 @@ export function ReviewPointsList({
|
||||
</div>
|
||||
) : (
|
||||
<button
|
||||
className="bg-purple-600 hover:bg-purple-700 text-xs text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
className="bg-purple-600 hover:bg-purple-700 text-sm text-white py-1 px-2 rounded-md flex items-center justify-center"
|
||||
onClick={() => handleReviewAction(reviewPoint.id, reviewPoint.editAuditStatusId, 'review', note)}
|
||||
>
|
||||
<i className="ri-refresh-line mr-1"></i> 重新审核
|
||||
|
||||
Reference in New Issue
Block a user