Преглед изворни кода

Merge branch 'master' of http://121.4.203.192:9000/mingxue/front

hare8999@163.com пре 2 година
родитељ
комит
72937d3891
1 измењених фајлова са 12 додато и 8 уклоњено
  1. 12 8
      src/views/system/user/profile/components/report-table.vue

+ 12 - 8
src/views/system/user/profile/components/report-table.vue

@@ -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)