|
@@ -7,7 +7,8 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button v-if="showFastPush" type="primary" @click="flushIntoDM">提前进入{{ nextStepName }}</el-button>
|
|
|
- <el-button v-if="showSend" type="primary" @click="pushGeneration">发送</el-button>
|
|
|
+ <el-button v-if="showForceAdjustSend" type="primary" @click="jumpForceAdjust">进入强制调剂</el-button>
|
|
|
+ <el-button v-else-if="showSend" type="primary" @click="pushGeneration">发送</el-button>
|
|
|
<el-button v-if="showRankBalance" type="primary" @click="jumpRankBalance">排名均衡</el-button>
|
|
|
<el-button v-if="showClassDispatch" type="primary" @click="terminateAndJumpDispatch">选科分班</el-button>
|
|
|
<el-button v-else type="primary" @click="jumpDispatch">选科分班</el-button>
|
|
@@ -26,7 +27,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
applyElectiveDMAlgorithm,
|
|
|
- flushIntoGenerationDM,
|
|
|
+ flushIntoGenerationDM, jumpGenerationForceAdjust,
|
|
|
jumpGenerationRankBalance, pushGenerationSetting,
|
|
|
terminateGeneration
|
|
|
} from '@/api/webApi/elective/generation'
|
|
@@ -65,6 +66,9 @@ export default {
|
|
|
const next = this.generation.current + 1
|
|
|
return Object.values(options).find(opt => opt.value == next).title
|
|
|
},
|
|
|
+ showForceAdjustSend() {
|
|
|
+ return this.status.enableForceAdjustEntry
|
|
|
+ },
|
|
|
showSend() {
|
|
|
return this.status.doneDMAlgorithm && !this.status.allMatched
|
|
|
},
|
|
@@ -114,6 +118,11 @@ export default {
|
|
|
this.notifyRootRefresh()
|
|
|
})
|
|
|
},
|
|
|
+ jumpForceAdjust() {
|
|
|
+ jumpGenerationForceAdjust().finally(() => {
|
|
|
+ this.notifyRootRefresh()
|
|
|
+ })
|
|
|
+ },
|
|
|
jumpRankBalance() {
|
|
|
jumpGenerationRankBalance().finally(() => {
|
|
|
this.notifyRootRefresh()
|