|
@@ -15,6 +15,11 @@
|
|
|
v-permission="'vipGroupManage/updateVipBaseInfo'"
|
|
|
@click="addrVisible = true"
|
|
|
>修改教学点</div>
|
|
|
+ <div
|
|
|
+ class="newBand"
|
|
|
+ v-permission="{parent:'/vipReset',child:'employee/findEducationUsers'}"
|
|
|
+ @click="educationalVisible = true"
|
|
|
+ >修改教务</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="tableWrap">
|
|
@@ -330,6 +335,15 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="addrVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="resetAddrSubmit">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 修改教务老师 -->
|
|
|
+ <el-dialog title="修改教务" width="400px" :visible.sync="educationalVisible">
|
|
|
+ <el-form :model="addrForm">
|
|
|
<el-form-item label="教务老师" prop="educationalTeacherId">
|
|
|
<el-select
|
|
|
v-model.trim="addrForm.educationalTeacherId"
|
|
@@ -346,8 +360,8 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="addrVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="resetAddrSubmit">确 定</el-button>
|
|
|
+ <el-button @click="educationalVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="resetEducationalVisible">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -380,6 +394,7 @@ export default {
|
|
|
adjustmentVisible: false,
|
|
|
addCourseVisible: false,
|
|
|
courseVisible: false,
|
|
|
+ educationalVisible:false,
|
|
|
tableList: [],
|
|
|
addTable: [],
|
|
|
educationList:[],
|
|
@@ -752,10 +767,6 @@ export default {
|
|
|
this.$message.error("请选择一个教学点");
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.addrForm.educationalTeacherId) {
|
|
|
- this.$message.error("请选择教务老师");
|
|
|
- return;
|
|
|
- }
|
|
|
// 修改教学点
|
|
|
updateVipBaseInfo({
|
|
|
id: this.vipid,
|
|
@@ -769,6 +780,24 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ resetEducationalVisible(){
|
|
|
+ if (!this.addrForm.educationalTeacherId) {
|
|
|
+ this.$message.error("请选择一个教学点");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // 修改教务老师
|
|
|
+ updateVipBaseInfo({
|
|
|
+ id: this.vipid,
|
|
|
+
|
|
|
+ educationalTeacherId:this.addrForm.educationalTeacherId
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.educationalVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 清除考勤
|
|
|
clearAttend(row) {
|
|
|
this.$confirm("是否清除考勤记录?", "提示", {
|