lex il y a 2 ans
Parent
commit
449ea3670e

+ 86 - 69
src/views/teacherManager/teacherOperation/components/salarySet.vue

@@ -60,7 +60,9 @@
                   v-else-if="scope.row.courseScheduleType == 'CLASSROOM'"
                   >元/40分钟</template
                 >
-                <template slot="append" v-else>元/90分钟</template>
+                <template slot="append" v-else
+                  >元/90分钟</template
+                >
                 <!-- <template slot="append">元/{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template> -->
               </el-input>
             </template>
@@ -83,7 +85,9 @@
                   v-else-if="scope.row.courseScheduleType == 'CLASSROOM'"
                   >元/40分钟</template
                 >
-                <template slot="append" v-else>元/90分钟</template>
+                <template slot="append" v-else
+                  >元/90分钟</template
+                >
                 <!-- <template slot="append">元/{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template> -->
               </el-input>
             </template>
@@ -109,7 +113,9 @@
                 v-model.trim="scope.row.v1"
                 placeholder="请输入课酬"
               >
-                <template slot="append">元/节</template>
+                <template slot="append"
+                  >元/节</template
+                >
               </el-input>
             </template>
           </el-table-column>
@@ -121,7 +127,9 @@
                 v-model.trim="scope.row.v2"
                 placeholder="请输入课酬"
               >
-                <template slot="append">元/节</template>
+                <template slot="append"
+                  >元/节</template
+                >
               </el-input>
             </template>
           </el-table-column>
@@ -133,7 +141,9 @@
                 v-model.trim="scope.row.v3"
                 placeholder="请输入课酬"
               >
-                <template slot="append">元/节</template>
+                <template slot="append"
+                  >元/节</template
+                >
               </el-input>
             </template>
           </el-table-column>
@@ -145,7 +155,9 @@
                 v-model.trim="scope.row.v4"
                 placeholder="请输入课酬"
               >
-                <template slot="append">元/节</template>
+                <template slot="append"
+                  >元/节</template
+                >
               </el-input>
             </template>
           </el-table-column>
@@ -157,7 +169,9 @@
                 v-model.trim="scope.row.v5"
                 placeholder="请输入课酬"
               >
-                <template slot="append">元/节</template>
+                <template slot="append"
+                  >元/节</template
+                >
               </el-input>
             </template>
           </el-table-column>
@@ -194,7 +208,9 @@
                   v-model.trim="scope.row.offlineClassesSalary"
                   placeholder="请输入内容"
                 >
-                  <template slot="append"> 人/节</template>
+                  <template slot="append">
+                    人/节</template
+                  >
                   <!-- <template slot="append" v-else>节/人</template>  v-if="scope.row.musicTheory" -->
                 </el-input>
 
@@ -205,7 +221,9 @@
                   v-model.trim="scope.row.offlineClassesSalary"
                   placeholder="请输入内容"
                 >
-                  <template slot="append"> 元/节</template>
+                  <template slot="append">
+                    元/节</template
+                  >
                   <!-- <template slot="append" v-else>节/人</template>  v-if="scope.row.musicTheory" -->
                 </el-input>
               </div>
@@ -247,8 +265,8 @@
               {
                 required: true,
                 message: '请选择是否结算课酬',
-                trigger: 'change',
-              },
+                trigger: 'change'
+              }
             ]"
           >
             <el-select
@@ -267,7 +285,7 @@
             label-width="120px"
             prop="startDate"
             :rules="[
-              { required: true, message: '请选择生效日期', trigger: 'change' },
+              { required: true, message: '请选择生效日期', trigger: 'change' }
             ]"
           >
             <el-date-picker
@@ -309,7 +327,7 @@ import {
   teacherDefaultPracticeGroupSalary,
   PracticeGroupSalaryUpdate,
   teacherGet,
-  teacherUpdate1,
+  teacherUpdate1
 } from "@/api/teacherManager";
 
 import { sysConfigList } from "@/api/generalSettings";
@@ -335,7 +353,7 @@ export default {
           courseScheduleType: "SINGLE",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -343,7 +361,7 @@ export default {
           courseScheduleType: "MIX",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -351,7 +369,7 @@ export default {
           courseScheduleType: "COMPREHENSIVE",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -359,7 +377,7 @@ export default {
           courseScheduleType: "TRAINING_SINGLE",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -367,7 +385,7 @@ export default {
           courseScheduleType: "TRAINING_MIX",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -375,7 +393,7 @@ export default {
           courseScheduleType: "HIGH",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           assistantTeacher30MinSalary: 0,
@@ -383,8 +401,8 @@ export default {
           courseScheduleType: "CLASSROOM",
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
-        },
+          userId: this.teacherId
+        }
       ],
       // salaryRuleJson: { 3: 0, 4: 0, 5: 0 },
       // userId: this.teacherId
@@ -401,7 +419,7 @@ export default {
           assistantTeacher90MinSalary: 0,
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
+          userId: this.teacherId
         },
         {
           courseScheduleType: "MUSIC_NETWORK",
@@ -415,8 +433,8 @@ export default {
           assistantTeacher90MinSalary: 0,
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: this.teacherId,
-        },
+          userId: this.teacherId
+        }
       ],
       vipTable: [],
       musicGroupTable: [],
@@ -424,7 +442,7 @@ export default {
       vipList: [],
       updateForm: {
         startDate: null,
-        isSettlementSalary: 1,
+        isSettlementSalary: 1
       },
       rules: {},
       accompanyTable: [
@@ -432,17 +450,17 @@ export default {
           assistantTeacherSalary: 30,
           minutes: 25,
           userId: this.teacherId,
-          mainTeacherSalary: 0,
-        },
+          mainTeacherSalary: 0
+        }
       ],
       pickerOptions: {
         disabledDate(time) {
           return time.getTime() > Date.now();
         },
-        firstDayOfWeek: 1,
+        firstDayOfWeek: 1
       },
       tenantId: "",
-      studentRuleNum: "",
+      studentRuleNum: ""
     };
   },
   created() {},
@@ -470,7 +488,7 @@ export default {
       if (this.$route.query.rules) {
         this.Frules = this.$route.query.rules;
       }
-      teacherGet({ teacherId: this.teacherId }).then((res) => {
+      teacherGet({ teacherId: this.teacherId }).then(res => {
         if (res.code == 200) {
           let result = res.data;
           this.updateForm.isSettlementSalary = result.isSettlementSalary
@@ -480,25 +498,25 @@ export default {
       });
 
       // 获取课程形态 设置vip课酬
-      findTeacherDefaultSalary({ userId: this.teacherId }).then((res) => {
+      findTeacherDefaultSalary({ userId: this.teacherId }).then(res => {
         if (res.code == 200 && res.data.length > 0) {
           let vipData = [];
-          res.data.forEach((item) => {
+          res.data.forEach(item => {
             vipData.push({
               offlineClassesSalary: null,
               onlineClassesSalary: null,
               vipGroupCategoryId: item.id,
               vipGroupCategoryName: item.name,
               userId: this.teacherId,
-              musicTheory: item.musicTheory,
+              musicTheory: item.musicTheory
             });
           });
           // VIP课列表
           vipGroupSalaryList({
             rows: 9999,
             page: 1,
-            search: this.teacherId,
-          }).then((res) => {
+            search: this.teacherId
+          }).then(res => {
             if (res.code == 200) {
               let rows = res.data.rows;
               this.vipListCompare(vipData, rows);
@@ -510,9 +528,9 @@ export default {
       teacherSalaryList({
         rows: 9999,
         page: 1,
-        teacherId: this.teacherId,
+        teacherId: this.teacherId
         // settlementType: 'FIXED_SALARY'
-      }).then((res) => {
+      }).then(res => {
         if (res.code == 200) {
           // this.teamTable = res.data.rows
           let rows = res.data.rows;
@@ -521,7 +539,7 @@ export default {
       });
       // 网管课
       teacherDefaultPracticeGroupSalary({ teacherId: this.teacherId }).then(
-        (res) => {
+        res => {
           if (res.code == 200 && res.data.length > 0) {
             this.accompanyTable = res.data;
           }
@@ -536,8 +554,8 @@ export default {
         return;
       }
       let result = [];
-      vipData.forEach((item) => {
-        rows.forEach((c) => {
+      vipData.forEach(item => {
+        rows.forEach(c => {
           if (item.vipGroupCategoryId == c.vipGroupCategoryId) {
             item.checked = true;
             result.push({
@@ -546,13 +564,13 @@ export default {
               onlineClassesSalary: c.onlineClassesSalary,
               vipGroupCategoryName: c.vipGroupCategoryName,
               userId: c.userId,
-              musicTheory: c.musicTheory,
+              musicTheory: c.musicTheory
             });
           }
         });
       });
       if (result.length > 0) {
-        vipData.forEach((item) => {
+        vipData.forEach(item => {
           if (!item.checked) {
             result.push(item);
           }
@@ -568,8 +586,8 @@ export default {
       if (!rows || rows.length <= 0) return;
       let teamTable = this.teamTable;
       let result = [];
-      teamTable.forEach((item) => {
-        rows.forEach((c) => {
+      teamTable.forEach(item => {
+        rows.forEach(c => {
           if (item.courseScheduleType == c.courseScheduleType) {
             item.checked = true;
             result.push({
@@ -578,13 +596,13 @@ export default {
               assistantTeacher30MinSalary: c.assistantTeacher30MinSalary,
               assistantTeacher90MinSalary: c.assistantTeacher90MinSalary,
               courseScheduleType: c.courseScheduleType,
-              userId: this.teacherId,
+              userId: this.teacherId
             });
           }
         });
       });
       if (result.length > 0) {
-        teamTable.forEach((item) => {
+        teamTable.forEach(item => {
           if (!item.checked) {
             result.push(item);
           }
@@ -596,8 +614,8 @@ export default {
 
       let smallResult = [];
       let teamSmallTable = this.teamSmallTable;
-      teamSmallTable.forEach((item) => {
-        rows.forEach((c) => {
+      teamSmallTable.forEach(item => {
+        rows.forEach(c => {
           if (item.courseScheduleType == c.courseScheduleType) {
             item.checked = true;
             let tempJson = c.salaryRuleJson
@@ -616,14 +634,14 @@ export default {
               v4: tempJson[4] ? tempJson[4] : 0,
               v5: tempJson[5] ? tempJson[5] : 0,
               courseScheduleType: c.courseScheduleType,
-              userId: this.teacherId,
+              userId: this.teacherId
             });
           }
         });
       });
 
       if (smallResult.length > 0) {
-        teamSmallTable.forEach((item) => {
+        teamSmallTable.forEach(item => {
           if (!item.checked) {
             smallResult.push(item);
           }
@@ -636,7 +654,7 @@ export default {
     onSave() {
       let teamTable = this.teamTable;
       let checkStatus = true;
-      teamTable.forEach((item) => {
+      teamTable.forEach(item => {
         if (
           item.assistantTeacher30MinSalary < 0 ||
           item.assistantTeacher90MinSalary < 0 ||
@@ -649,7 +667,7 @@ export default {
         }
       });
       let temps = [];
-      this.teamSmallTable.forEach((item) => {
+      this.teamSmallTable.forEach(item => {
         if (
           item.v1 < 0 ||
           item.v2 < 0 ||
@@ -668,16 +686,16 @@ export default {
             2: Number(item.v2),
             3: Number(item.v3),
             4: Number(item.v4),
-            5: Number(item.v5),
+            5: Number(item.v5)
           }),
           assistantTeacher30MinSalary: 0,
           assistantTeacher90MinSalary: 0,
           mainTeacher30MinSalary: 0,
           mainTeacher90MinSalary: 0,
-          userId: item.userId,
+          userId: item.userId
         });
       });
-      this.vipTable.forEach((item) => {
+      this.vipTable.forEach(item => {
         // console.log(item)
         if (item.offlineClassesSalary < 0 || item.onlineClassesSalary < 0) {
           this.$message.error("输入课酬不能为负数");
@@ -685,7 +703,7 @@ export default {
           return;
         }
       });
-      this.accompanyTable.forEach((item) => {
+      this.accompanyTable.forEach(item => {
         if (item.mainTeacherSalary < 0) {
           this.$message.error("输入课酬不能为负数");
           checkStatus = false;
@@ -700,19 +718,19 @@ export default {
       if (!checkStatus) {
         return;
       }
-      this.$refs["salaryForm"].validate((valid) => {
+      this.$refs["salaryForm"].validate(valid => {
         if (valid) {
           this.$confirm("您确定更改老师课酬", "提示", {
             confirmButtonText: "确定",
             cancelButtonText: "取消",
-            type: "warning",
+            type: "warning"
           })
             .then(async () => {
               let params = teamTable.concat(temps);
               let updateForm = this.updateForm;
               let res = await teacherUpdate1({
                 id: this.teacherId,
-                isSettlementSalary: updateForm.isSettlementSalary,
+                isSettlementSalary: updateForm.isSettlementSalary
               });
               if (res.code != 200) {
                 this.$message.error(res.msg);
@@ -720,26 +738,25 @@ export default {
               }
               teacherSalaryBatchUpset({
                 teacherDefaultMusicGroupSalaries: params,
-                startDate: updateForm.startDate,
-              }).then((res) => {
+                startDate: updateForm.startDate
+              }).then(res => {
                 if (res.code == 200) {
                   // 判断输入的值是否正确
                   vipGroupSalarySet({
                     teacherDefaultVipGroupSalaries: this.vipTable,
-                    startDate: updateForm.startDate,
-                  }).then((res) => {
+                    startDate: updateForm.startDate
+                  }).then(res => {
                     if (res.code == 200) {
                       PracticeGroupSalaryUpdate({
                         startDate: updateForm.startDate,
-                        teacherDefaultPracticeGroupSalaries:
-                          this.accompanyTable,
-                      }).then((res) => {
+                        teacherDefaultPracticeGroupSalaries: this.accompanyTable
+                      }).then(res => {
                         if (res.code == 200) {
                           this.$message.success("保存成功");
                           this.$store.dispatch("delVisitedViews", this.$route);
                           this.$router.push({
                             path: "/teacherManager/teacherList",
-                            query: { rules: this.Frules, search: this.Fsearch },
+                            query: { rules: this.Frules, search: this.Fsearch }
                           });
                         }
                       });
@@ -756,8 +773,8 @@ export default {
       //   this.$message.error("请填写生效日期");
       //   return;
       // }
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>

+ 60 - 49
src/views/teacherManager/teacherOperation/components/teacherOperation.vue

@@ -42,7 +42,7 @@
                   v-model.trim="topForm.birthdate"
                   type="date"
                   :picker-options="{
-                    firstDayOfWeek: 1,
+                    firstDayOfWeek: 1
                   }"
                   value-format="yyyy-MM-dd"
                   placeholder="出生日期"
@@ -116,19 +116,19 @@
               </el-form-item>
             </el-col>
           </el-row>
-          <el-row >
-            <el-alert class="alert"  :closable="false" type="info">
+          <el-row>
+            <el-alert class="alert" :closable="false" type="info">
               <template #title>
                 <div>
                   <p style="font-weight:600">老师课酬结算规则:</p>
                   <p>1.入职日期之前的课程,按老师课酬的100%结算</p>
-                  <p>2.入职日期当天及以后的课程,按老师课酬*试用期课酬折算值结算</p>
+                  <p>
+                    2.入职日期当天及以后的课程,按老师课酬*试用期课酬折算值结算
+                  </p>
                   <p>3.转正日期当天及以后的课程,按老师课酬的100%结算</p>
-                  <p>4.入职日期和转正日期设置为同一天,则日期当天及以后的课程按老师课酬的100%结算</p>
-
-
-
-
+                  <p>
+                    4.入职日期和转正日期设置为同一天,则日期当天及以后的课程按老师课酬的100%结算
+                  </p>
                 </div>
               </template>
             </el-alert>
@@ -396,7 +396,14 @@
       </div>
       <div class="right">
         <div class="teacherIcon">
-           <image-cropper ref="imgCropper" :options="cropperOptions" :imgSize="2" showSize :imageUrl="topForm.avatar?topForm.avatar:avatar1" @crop-upload-success="handleSuccess" />
+          <image-cropper
+            ref="imgCropper"
+            :options="cropperOptions"
+            :imgSize="2"
+            showSize
+            :imageUrl="topForm.avatar ? topForm.avatar : avatar1"
+            @crop-upload-success="handleSuccess"
+          />
           <!-- <img v-if="topForm.avatar" key="avatar" :src="topForm.avatar" alt />
           <img v-else key="avatar1" src="@/assets/images/base/woman.png" alt /> -->
         </div>
@@ -412,8 +419,8 @@
           action="/api-web/uploadFile"
         >  -->
 
-          <!-- <el-button icon="ios-cloud-upload-outline" @click="$refs.imgCropper.$refs.upload.submit">修改头像</el-button> -->
-          <!--
+        <!-- <el-button icon="ios-cloud-upload-outline" @click="$refs.imgCropper.$refs.upload.submit">修改头像</el-button> -->
+        <!--
                v-if="pageType != 'create'"
             <el-button
             icon="ios-cloud-upload-outline"
@@ -445,7 +452,7 @@ import { permission } from "@/utils/directivePage";
 import { jobNature, ProbationPeriodList } from "@/utils/searchArray";
 import { isvalidPhone } from "@/utils/validate";
 import ImageCropper from "@/components/ImageCropper";
-import avatar1 from '@/assets/images/base/woman.png'
+import avatar1 from "@/assets/images/base/woman.png";
 import dayjs from "dayjs";
 let validPhone = (rule, value, callback) => {
   if (!value) {
@@ -463,7 +470,7 @@ export default {
     const that = this;
     return {
       headers: {
-        Authorization: getToken(),
+        Authorization: getToken()
       },
       avatar1,
       jobNature: jobNature,
@@ -497,7 +504,7 @@ export default {
         certificateNum: null,
         isSupportCourseScheduleRewardsRules: true,
         isSupportExtraPracticeLesson: null,
-        memo: null,
+        memo: null
       },
       subjectIds: [],
       tenantId: null,
@@ -506,16 +513,16 @@ export default {
         realName: [{ required: true, message: "请输入姓名", trigger: "blur" }],
         gender: [{ required: true, message: "请选择性别", trigger: "change" }],
         entryDate: [
-          { required: true, message: "请选择入职日期", trigger: "change" },
+          { required: true, message: "请选择入职日期", trigger: "change" }
         ],
         jobNature: [
-          { required: true, message: "请选择工作类型", trigger: "change" },
+          { required: true, message: "请选择工作类型", trigger: "change" }
         ],
         isProbationPeriod: [
-          { required: true, message: "请选择员工状态", trigger: "change" },
+          { required: true, message: "请选择员工状态", trigger: "change" }
         ],
         organId: [
-          { required: true, message: "请选择所属分部", trigger: "change" },
+          { required: true, message: "请选择所属分部", trigger: "change" }
         ],
         phone: [{ required: true, validator: validPhone, trigger: "blur" }],
         subjectIds: [
@@ -523,10 +530,10 @@ export default {
             required: true,
             type: "array",
             message: "请选择专业技能",
-            trigger: "change",
-          },
+            trigger: "change"
+          }
         ],
-        isAvatar: null,
+        isAvatar: null
       },
       pickerOptions2: {
         firstDayOfWeek: 1,
@@ -538,7 +545,7 @@ export default {
           return that.topForm.formalStaffDate
             ? time.getTime() > date.getTime()
             : false;
-        },
+        }
       },
       pickerOptions: {
         firstDayOfWeek: 1,
@@ -549,7 +556,7 @@ export default {
           return that.topForm.entryDate
             ? date.getTime() > time.getTime()
             : false;
-        },
+        }
       },
       cropperOptions: {
         autoCrop: true, //是否默认生成截图框
@@ -557,11 +564,11 @@ export default {
         autoCropHeight: 200, //默认生成截图框高度
         fixedBox: true, //是否固定截图框大小 不允许改变
         previewsCircle: false, //预览图是否是圆形
-        title: "老师头像", //模态框上显示的标题
-      },
+        title: "老师头像" //模态框上显示的标题
+      }
     };
   },
-  components:{
+  components: {
     ImageCropper
   },
   created() {},
@@ -587,21 +594,21 @@ export default {
       branchQueryPage({
         // 获取分部
         delFlag: 0,
-        rows: 9999,
-      }).then((res) => {
+        rows: 9999
+      }).then(res => {
         if (res.code == 200 && res.data && res.data.rows) {
           this.branchList = [];
-          res.data.rows.forEach((item) => {
+          res.data.rows.forEach(item => {
             this.branchList.push({
               label: item.name,
-              value: item.id,
+              value: item.id
             });
           });
         }
       });
 
       if (this.pageType == "update") {
-        teacherGet({ teacherId: this.teacherId }).then((res) => {
+        teacherGet({ teacherId: this.teacherId }).then(res => {
           if (res.code == 200) {
             let result = res.data;
             this.topForm = {
@@ -630,14 +637,18 @@ export default {
                 result.isSupportCourseScheduleRewardsRules,
               isSupportExtraPracticeLesson: result.isSupportExtraPracticeLesson,
               memo: result.memo,
+              postDeptIds: result.postDeptIds,
+              postIds: result.postIds,
+              deptId: result.deptId,
+              deptIds: result.deptIds
             };
             let sn = [];
-            result.teacherSchools.forEach((item) => {
+            result.teacherSchools.forEach(item => {
               sn.push(item.name);
             });
             if (result.subjectId) {
               let arr = result.subjectId.split(",");
-              this.subjectIds = arr.map((item) => {
+              this.subjectIds = arr.map(item => {
                 return parseInt(item);
               });
             }
@@ -666,7 +677,7 @@ export default {
       }
     },
     onSubmit(formName) {
-      this.$refs[formName].validate((valid) => {
+      this.$refs[formName].validate(valid => {
         if (valid) {
           if (this.subjectIds.length <= 0) {
             this.$message.error("请选择专业技能");
@@ -683,13 +694,13 @@ export default {
           if (this.pageType == "update") {
             this.topForm.id = this.teacherId;
 
-            teacherUpdate(this.topForm).then((res) => {
+            teacherUpdate(this.topForm).then(res => {
               if (res.code == 200) {
                 // this.$emit('onTeacher')
                 this.$store.dispatch("delVisitedViews", this.$route);
                 this.$router.push({
                   path: "/teacherManager/teacherList",
-                  query: { rules: this.Frules, search: this.Fsearch },
+                  query: { rules: this.Frules, search: this.Fsearch }
                 });
               }
               this.messageTips("修改", res);
@@ -698,7 +709,7 @@ export default {
             if (this.topForm.id) {
               delete this.topForm.id;
             }
-            teacherAdd(this.topForm).then((res) => {
+            teacherAdd(this.topForm).then(res => {
               if (res.code == 200) {
                 // 权限判断,是否有课酬设置
                 if (permission("/teacherAdd/salarySeting")) {
@@ -707,7 +718,7 @@ export default {
                   this.$store.dispatch("delVisitedViews", this.$route);
                   this.$router.push({
                     path: "/teacherManager/teacherList",
-                    query: { rules: this.Frules, search: this.Fsearch },
+                    query: { rules: this.Frules, search: this.Fsearch }
                   });
                 }
               }
@@ -722,7 +733,7 @@ export default {
               // 值有start,center,end,nearest,当前显示在视图区域中间
               block: "center",
               // 值有auto、instant,smooth,缓动动画(当前是慢速的)
-              behavior: "smooth",
+              behavior: "smooth"
             });
           });
           return false;
@@ -759,7 +770,7 @@ export default {
         certificateType: null,
         certificateNum: null,
         jobType: "ADVISER",
-        memo: null,
+        memo: null
       };
       this.subjectIds = [];
       this.$refs[formName].resetFields();
@@ -768,7 +779,7 @@ export default {
       this.$store.dispatch("delVisitedViews", this.$route);
       this.$router.push({
         path: "/teacherManager/teacherList",
-        query: { rules: this.Frules, search: this.Fsearch },
+        query: { rules: this.Frules, search: this.Fsearch }
       });
     },
     handleSuccess(res) {
@@ -776,9 +787,9 @@ export default {
       // let quill = this.editor
       // 如果上传成功
       // if (res.code == 200) {
-        console.log(res)
-        // 获取光标所在位置
-        this.topForm.avatar = res.data.url;
+      console.log(res);
+      // 获取光标所在位置
+      this.topForm.avatar = res.data.url;
       // }
     },
     // 选择分部
@@ -788,13 +799,13 @@ export default {
       } else {
         this.tenantId = 1;
       }
-      getSubject({ tenantId: this.tenantId }).then((res) => {
+      getSubject({ tenantId: this.tenantId }).then(res => {
         if (res.code == 200) {
           this.subjectList = res.data;
         }
       });
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>
@@ -898,4 +909,4 @@ export default {
     width: 855px;
   }
 }
-</style>
+</style>