|
@@ -102,8 +102,10 @@ export default {
|
|
},
|
|
},
|
|
applyAlgorithm() {
|
|
applyAlgorithm() {
|
|
// 暂时只支持一种算法,不排队以后会支持多种
|
|
// 暂时只支持一种算法,不排队以后会支持多种
|
|
|
|
+ this.lockPage()
|
|
const algorithm = config.electiveDMAlgorithm.rankFirst.value
|
|
const algorithm = config.electiveDMAlgorithm.rankFirst.value
|
|
applyElectiveDMAlgorithm(algorithm, this.commitParams.roundId).finally(() => {
|
|
applyElectiveDMAlgorithm(algorithm, this.commitParams.roundId).finally(() => {
|
|
|
|
+ this.unlockPage()
|
|
this.notifyRootRefresh()
|
|
this.notifyRootRefresh()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -112,7 +114,9 @@ export default {
|
|
this.$emit('jumpDetail')
|
|
this.$emit('jumpDetail')
|
|
},
|
|
},
|
|
flushIntoDM() {
|
|
flushIntoDM() {
|
|
|
|
+ this.lockPage()
|
|
flushIntoGenerationDM(this.commitParams).finally(() => {
|
|
flushIntoGenerationDM(this.commitParams).finally(() => {
|
|
|
|
+ this.unlockPage()
|
|
this.notifyRootRefresh(true)
|
|
this.notifyRootRefresh(true)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -122,20 +126,27 @@ export default {
|
|
this.pushSettingFormVisible = true
|
|
this.pushSettingFormVisible = true
|
|
},
|
|
},
|
|
async commitPushSetting() {
|
|
async commitPushSetting() {
|
|
|
|
+ this.lockPage()
|
|
const setting = await this.$refs.settingForm.validate()
|
|
const setting = await this.$refs.settingForm.validate()
|
|
setting.roundId = this.status.roundId
|
|
setting.roundId = this.status.roundId
|
|
pushGenerationSetting(setting).finally(() => {
|
|
pushGenerationSetting(setting).finally(() => {
|
|
|
|
+ this.pushSettingFormVisible = false
|
|
|
|
+ this.unlockPage()
|
|
this.notifyRootRefresh(true)
|
|
this.notifyRootRefresh(true)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async jumpForceAdjust() {
|
|
async jumpForceAdjust() {
|
|
await this.$confirm('确认进入调剂阶段?')
|
|
await this.$confirm('确认进入调剂阶段?')
|
|
|
|
+ this.lockPage()
|
|
jumpGenerationForceAdjust(this.commitParams).finally(() => {
|
|
jumpGenerationForceAdjust(this.commitParams).finally(() => {
|
|
|
|
+ this.unlockPage()
|
|
this.notifyRootRefresh(true)
|
|
this.notifyRootRefresh(true)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async jumpRankBalance() {
|
|
async jumpRankBalance() {
|
|
|
|
+ this.lockPage()
|
|
jumpGenerationRankBalance(this.commitParams).finally(() => {
|
|
jumpGenerationRankBalance(this.commitParams).finally(() => {
|
|
|
|
+ this.unlockPage()
|
|
this.notifyRootRefresh(true)
|
|
this.notifyRootRefresh(true)
|
|
})
|
|
})
|
|
},
|
|
},
|