|
@@ -7,7 +7,9 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button v-if="showFastPush" type="primary" @click="flushIntoDM">提前进入{{ nextStepName }}</el-button>
|
|
|
- <el-button v-if="showForceAdjustSend" type="primary" @click="jumpForceAdjust">进入{{ generation.options.forceAdjust.title }}</el-button>
|
|
|
+ <el-button v-if="showForceAdjustSend" type="primary" @click="jumpForceAdjust">
|
|
|
+ 进入{{ generation.options.forceAdjust.title }}
|
|
|
+ </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>
|
|
@@ -89,8 +91,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- notifyRootRefresh() {
|
|
|
- this.refreshData()
|
|
|
+ notifyRootRefresh(syncStep = false) {
|
|
|
+ this.refreshData(syncStep)
|
|
|
},
|
|
|
applyAlgorithm() {
|
|
|
// 暂时只支持一种算法,不排队以后会支持多种
|
|
@@ -105,7 +107,7 @@ export default {
|
|
|
},
|
|
|
flushIntoDM() {
|
|
|
flushIntoGenerationDM().finally(() => {
|
|
|
- this.notifyRootRefresh()
|
|
|
+ this.notifyRootRefresh(true)
|
|
|
})
|
|
|
},
|
|
|
pushGeneration() {
|
|
@@ -117,17 +119,17 @@ export default {
|
|
|
const setting = await this.$refs.settingForm.validate()
|
|
|
setting.roundId = this.status.roundId
|
|
|
pushGenerationSetting(setting).finally(() => {
|
|
|
- this.notifyRootRefresh()
|
|
|
+ this.notifyRootRefresh(true)
|
|
|
})
|
|
|
},
|
|
|
jumpForceAdjust() {
|
|
|
jumpGenerationForceAdjust().finally(() => {
|
|
|
- this.notifyRootRefresh()
|
|
|
+ this.notifyRootRefresh(true)
|
|
|
})
|
|
|
},
|
|
|
async jumpRankBalance() {
|
|
|
jumpGenerationRankBalance().finally(() => {
|
|
|
- this.notifyRootRefresh()
|
|
|
+ this.notifyRootRefresh(true)
|
|
|
})
|
|
|
},
|
|
|
async terminateAndJumpDispatch() {
|