Skip to content

Commit ed2dfed

Browse files
Merge pull request #100 from yuki-sp/main
fix:通过的也可以转移阶段便于测试and转移阶段确定时页面未消失bug解决
2 parents f3b2c53 + a5026f5 commit ed2dfed

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/views/overview/candidate/components/edit-buttons.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="flex justify-end gap-2 items-center">
33
<a-button
44
type="primary"
5-
:disabled="props.curStep >= recruitSteps.length - 1 || !candidates.length"
5+
:disabled="props.curStep >= recruitSteps.length || !candidates.length"
66
:size="buttonSize"
77
class="max-sm:rounded-full rounded-none"
88
@click="openSwitchStage"
@@ -85,7 +85,7 @@
8585
<a-button @click="showSwitchStage = false">
8686
{{ $t('common.operation.cancel') }}
8787
</a-button>
88-
<a-button type="primary" @click="handleSwitchStage">
88+
<a-button type="primary" @click="handleConfirm">
8989
{{ $t('common.operation.confirm') }}
9090
</a-button>
9191
<a-button
@@ -227,6 +227,13 @@ const handleSwitchStage = async () => {
227227
}
228228
};
229229
230+
const handleConfirm = async () => {
231+
const isSuccess = await handleSwitchStage();
232+
if (isSuccess) {
233+
showSwitchStage.value = false;
234+
}
235+
};
236+
230237
const openTerminate = () => {
231238
if (!allAccepted.value) {
232239
Message.error(t('candidate.noAbandonedRejected'));

0 commit comments

Comments
 (0)