|
@@ -28,7 +28,7 @@ export default {
|
|
|
return this.selectedList.some(this.isGroupRejected)
|
|
|
},
|
|
|
enableCommit() {
|
|
|
- return this.selectedList.length >= this.generation.activeModel.preferenceCount
|
|
|
+ return this.selectedList.length >= this.generation.status.preferenceCount
|
|
|
},
|
|
|
preferenceCount() {
|
|
|
return this.generation.status.preferenceCount
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async handleCommit() {
|
|
|
- if (!this.enableCommit) {
|
|
|
+ if (this.enableCommit) {
|
|
|
this.$message.error(this.preferenceCount == 1 ? `只能填报1个志愿` : `最多只能填报${this.preferenceCount}个志愿`)
|
|
|
return
|
|
|
}
|