|
@@ -1,6 +1,11 @@
|
|
|
<template>
|
|
|
<div class="courseInfo">
|
|
|
- <save-form :model="searchList" :inline="true" @submit="search" save-key='teacherDetail-courseInfo'>
|
|
|
+ <save-form
|
|
|
+ :model="searchList"
|
|
|
+ :inline="true"
|
|
|
+ @submit="search"
|
|
|
+ save-key="teacherDetail-courseInfo"
|
|
|
+ >
|
|
|
<el-form-item label="乐团状态">
|
|
|
<el-select v-model.trim="searchList.status" clearable>
|
|
|
<el-option
|
|
@@ -87,8 +92,8 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
- save-key='teacherDetail-courseInfo'
|
|
|
- sync
|
|
|
+ save-key="teacherDetail-courseInfo"
|
|
|
+ sync
|
|
|
:total.sync="pageInfo.total"
|
|
|
:page.sync="pageInfo.page"
|
|
|
:limit.sync="pageInfo.limit"
|
|
@@ -103,7 +108,7 @@
|
|
|
prop="targetTeacherId"
|
|
|
:rules="[{ required: true, message: '请选择老师', trigger: 'blur' }]"
|
|
|
>
|
|
|
- <remote-search
|
|
|
+ <remote-search
|
|
|
:commit="'setTeachers'"
|
|
|
v-model="maskForm.targetTeacherId"
|
|
|
/>
|
|
@@ -243,12 +248,34 @@ export default {
|
|
|
obj.targetTeacherId = this.maskForm.targetTeacherId;
|
|
|
obj.teacherId = this.teacherId;
|
|
|
// obj.memo = this.maskForm.memo;
|
|
|
+
|
|
|
classGroupTeacherAdjust(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.maskVisible = false;
|
|
|
this.$message.success("修改成功");
|
|
|
this.getList();
|
|
|
}
|
|
|
+ if (res.code == 206) {
|
|
|
+ this.$confirm(`当前课程课酬预计为0,是否继续`, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ obj.allowZeroSalary = true;
|
|
|
+ // obj.allowZeroSalary = true;
|
|
|
+ classGroupTeacherAdjust(obj).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.maskVisible = false;
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return;
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
});
|