Pārlūkot izejas kodu

Update salaryList.vue

lex-xin 5 gadi atpakaļ
vecāks
revīzija
57afad4f6e
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      src/views/teamDetail/components/salaryList.vue

+ 6 - 2
src/views/teamDetail/components/salaryList.vue

@@ -195,6 +195,7 @@ export default {
         subsidy: [{ required: true, message: '请输入课时补贴', trigger: 'blur' }],
         radio: [{ required: true, message: '请选择调整范围', trigger: 'blur' }]
       },
+      tempSelectRow: {}, // 选中班级数据
     }
 
 
@@ -237,6 +238,7 @@ export default {
       })
     },
     setCourseInfo (row) {
+      this.tempSelectRow = row
       getTeacherSalary({ courseScheduleId: row.courseScheduleId }).then(res => {
         if (res.code == 200) {
           this.dialogTableVisible = true;
@@ -252,6 +254,7 @@ export default {
       this.activeTeacher = row;
     },
     resetSalary () {
+      let that = this
       this.$refs['teacherMask'].validate(res => {
         if (res) {
           updateTeacherCoursesSalary({
@@ -268,9 +271,10 @@ export default {
                 salary: '',
                 subsidy: '',
                 radio: ''
-              },
+              }
                 // this.dialogTableVisible = false;
-                this.innerVisible = false;
+              this.innerVisible = false;
+              that.setCourseInfo(this.tempSelectRow)
             }
           })
         } else {