perf: 详情页逻辑处理

This commit is contained in:
rd
2025-08-12 16:18:18 +08:00
parent b886123746
commit 4b7d3f9f2a
2 changed files with 14 additions and 20 deletions

View File

@ -107,14 +107,9 @@ export default {
};
const renderFooterRow = () => {
const isPassed = audit_status === AuditStatus.Passed;
const _fn = () => {
if (isPassed) {
console.log('审核详情');
} else {
slsWithCatch('writerManuscriptCheckIds', [workId.value]);
router.push({ path: `/writer/manuscript/check/${writerCode.value}` });
}
};
return (
@ -130,9 +125,11 @@ export default {
>
编辑
</Button>
{audit_status !== AuditStatus.Passed && (
<Button type="primary" size="medium" onClick={_fn}>
{isPassed ? '审核详情' : '去审核'}
去审核
</Button>
)}
</>
);
};

View File

@ -106,14 +106,9 @@ export default {
};
const renderFooterRow = () => {
const isPassed = audit_status === AuditStatus.Passed;
const _fn = () => {
if (isPassed) {
console.log('审核详情');
} else {
slsWithCatch('manuscriptCheckIds', [workId.value]);
router.push({ name: 'ManuscriptCheck' });
}
};
return (
@ -129,9 +124,11 @@ export default {
>
编辑
</Button>
{audit_status !== AuditStatus.Passed && (
<Button type="primary" size="medium" onClick={_fn}>
{isPassed ? '审核详情' : '去审核'}
去审核
</Button>
)}
</>
);
};