|
@@ -292,10 +292,12 @@ export default {
|
|
|
return this.models.findIndex()
|
|
|
},
|
|
|
toReport() {
|
|
|
- // if(this.selectedList.length) {
|
|
|
- // this.$message.warning('请先提交志愿')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ // 是否更改了报名数据 ?
|
|
|
+ const flag = this.activeModels.models.filter(item => item.selected).length == this.activeModels.selectedList.length
|
|
|
+ if(!flag) {
|
|
|
+ this.$message.warning('请先提交更改过的志愿')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$refs.reportDialog.open()
|
|
|
},
|
|
|
toAiAnalysis() {
|
|
@@ -345,10 +347,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
toSelectSub(row) {
|
|
|
- // if(this.selectedList.length) {
|
|
|
- // this.$message.warning('请先提交志愿')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ // 是否更改了报名数据 ?
|
|
|
+ const flag = this.activeModels.models.filter(item => item.selected).length == this.activeModels.selectedList.length
|
|
|
+ if(!flag) {
|
|
|
+ this.$message.warning('请先提交更改过的志愿')
|
|
|
+ return
|
|
|
+ }
|
|
|
// 打开选科弹窗
|
|
|
const course0 = this.translateCourse0(row.groupId)
|
|
|
const course1 = this.translateCourse1(row.groupId)
|