Sfoglia il codice sorgente

课酬调整流程简化

wolyshaw 4 anni fa
parent
commit
32aebf4c91
1 ha cambiato i file con 21 aggiunte e 10 eliminazioni
  1. 21 10
      src/views/teamDetail/componentCourse/teacherList.vue

+ 21 - 10
src/views/teamDetail/componentCourse/teacherList.vue

@@ -80,7 +80,7 @@
       <gpsLoction v-if="gpsVisible"
                   :activeRow='activeRow' />
     </el-dialog>
-    <el-dialog title="课酬调整"
+    <!-- <el-dialog title="课酬调整"
                width="800px"
                append-to-body
                :visible.sync="dialogTableVisible">
@@ -96,10 +96,10 @@
           </template>
         </el-table-column>
         <el-table-column label="课程课酬"
-                         prop="expectSalary"></el-table-column>
+                         prop="expectSalary"></el-table-column> -->
         <!-- <el-table-column label="课时补贴"
                          prop="subsidy"></el-table-column> -->
-        <el-table-column label="操作">
+        <!-- <el-table-column label="操作">
           <template slot-scope="scope">
             <div>
               <el-button type='text'
@@ -108,15 +108,19 @@
             </div>
           </template>
         </el-table-column>
-      </el-table>
+      </el-table> -->
       <el-dialog width="500px"
-                 title=""
+                 :title="activeTeacher&&(activeTeacher.teacherName + ` (${activeTeacher.teacherId})`)"
                  :visible.sync="innerVisible"
                  append-to-body>
         <!-- 修改代码 -->
         <el-form :model="teacherMask"
                  :rules="teacherRules"
                  ref='teacherMask'>
+          <el-form-item label="原课程课酬"
+                        prop="expectSalary">
+            <span>{{activeTeacher && activeTeacher.expectSalary | moneyFormat}}</span>
+          </el-form-item>
           <el-form-item label="调整范围"
                         prop="radio">
             <el-radio v-model.trim="teacherMask.radio"
@@ -137,7 +141,7 @@
                      @click="resetSalary">确 定</el-button>
         </div>
       </el-dialog>
-    </el-dialog>
+    <!-- </el-dialog> -->
   </div>
 </template>
 <script>
@@ -216,13 +220,20 @@ export default {
 
     },
     setCourseInfo (row) {
-      this.tempSelectRow = row
+      // this.tempSelectRow = row
       getTeacherSalary({ courseScheduleId: this.courseScheduleId }).then(res => {
         if (res.code == 200) {
-          this.dialogTableVisible = true;
+          this.innerVisible = true;
+          for (const item of res.data) {
+            if (row.teacherId == item.teacherId) {
+              this.activeTeacher = item
+              console.log({...item})
+              break
+            }
+          }
           // this.courseScheduleId = row.courseScheduleId;
           // row.teachingTeachers
-          this.activeTeacherList = res.data;
+          // this.activeTeacherList = res.data;
         }
       })
 
@@ -262,4 +273,4 @@ export default {
     }
   },
 }
-</script>
+</script>