|
@@ -11,7 +11,8 @@
|
|
|
<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>
|
|
|
+ <!--<el-button v-else type="primary" @click="jumpDispatch">选科分班</el-button>-->
|
|
|
+ <!--<el-button type="primary" @click="jumpReport" class="ml10">选科数据</el-button>-->
|
|
|
</div>
|
|
|
<el-dialog v-if="pushSettingFormVisible" :visible.sync="pushSettingFormVisible"
|
|
|
:title="nextStepName+'设置'" width="350">
|
|
@@ -73,6 +74,7 @@ export default {
|
|
|
return this.status.doneDMAlgorithm && !this.status.allMatched
|
|
|
},
|
|
|
showRankBalance() {
|
|
|
+ return false
|
|
|
const options = this.generation.options
|
|
|
return this.status.allMatched && this.generation.current < options.rankBalance.value
|
|
|
},
|
|
@@ -123,20 +125,25 @@ export default {
|
|
|
this.notifyRootRefresh()
|
|
|
})
|
|
|
},
|
|
|
- jumpRankBalance() {
|
|
|
+ async jumpRankBalance() {
|
|
|
jumpGenerationRankBalance().finally(() => {
|
|
|
this.notifyRootRefresh()
|
|
|
})
|
|
|
},
|
|
|
- terminateAndJumpDispatch() {
|
|
|
+ async terminateAndJumpDispatch() {
|
|
|
+ await this.$confirm('确认进入选科分班?该操作将锁定所有选科录取状态,且不可逆')
|
|
|
terminateGeneration().then(res => {
|
|
|
- // this.refreshData()
|
|
|
this.jumpDispatch()
|
|
|
- }).catch(_ => this.notifyRootRefresh())
|
|
|
+ }).finally(() => this.notifyRootRefresh())
|
|
|
},
|
|
|
jumpDispatch() {
|
|
|
- const path = '/evaluating/master-manage/permission/elective/dispatch/index'
|
|
|
+ const path = '/evaluating/master-manage/selectCourse/elective/dispatch/index'
|
|
|
this.transferTo(path)
|
|
|
+ },
|
|
|
+ jumpReport() {
|
|
|
+ // 跳转选科数据
|
|
|
+ // TODO: 页面还没有定义好
|
|
|
+ this.msgInfo('更多选科数据,敬请期待')
|
|
|
}
|
|
|
}
|
|
|
}
|