File tree Expand file tree Collapse file tree
src/views/overview/candidate/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
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+
230237const openTerminate = () => {
231238 if (! allAccepted .value ) {
232239 Message .error (t (' candidate.noAbandonedRejected' ));
You can’t perform that action at this time.
0 commit comments