Commit 9e2906f5 authored by zhengke's avatar zhengke

修改

parent 5c5ae2a4
...@@ -140,6 +140,16 @@ ...@@ -140,6 +140,16 @@
}); });
} }
if(ClassStatus==2 && res.Data){
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '数据保存成功!但存在上课冲突数据,请调整。',
position: 'top'
})
this.$emit('getClassFlict', this.statusMsg.ClassId);
}
} else { } else {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
......
...@@ -633,6 +633,7 @@ ...@@ -633,6 +633,7 @@
ClassId: res.Data.ClassId, ClassId: res.Data.ClassId,
PlanList: res.Data.ClassPlanList, PlanList: res.Data.ClassPlanList,
} }
var NewClassId = res.Data.ClassId;
batchSaveClassPlan(newMsg).then(res => { batchSaveClassPlan(newMsg).then(res => {
this.saveCourseLoading = false this.saveCourseLoading = false
if (res.Code == 1) { if (res.Code == 1) {
...@@ -644,7 +645,7 @@ ...@@ -644,7 +645,7 @@
message: '数据保存成功!但存在上课冲突数据,请调整。', message: '数据保存成功!但存在上课冲突数据,请调整。',
position: 'top' position: 'top'
}) })
this.$emit('getClassFlict', this.objOption.ClassId); this.$emit('getClassFlict', NewClassId);
} else { } else {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<class-form v-if="isShowClassForm" :save-obj="classObjOption" @close="closeClassSaveForm" @success="refreshPage"> <class-form v-if="isShowClassForm" :save-obj="classObjOption" @getClassFlict="getClassFlict" @close="closeClassSaveForm" @success="refreshPage">
</class-form> </class-form>
<classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClassSaveForm" <classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage"> @success="refreshPage">
...@@ -199,10 +199,13 @@ ...@@ -199,10 +199,13 @@
<othercourseForm v-if="IsShowOtherCourse" :seting-obj="classObjOption" @close="closeClassSaveForm" <othercourseForm v-if="IsShowOtherCourse" :seting-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage"> @success="refreshPage">
</othercourseForm> </othercourseForm>
<changestatusForm v-if="isShowStatusChange" :seting-obj="classObjOption" @close="closeClassSaveForm" <changestatusForm v-if="isShowStatusChange" :seting-obj="classObjOption" @getClassFlict="getClassFlict" @close="closeClassSaveForm"
@success="refreshPage"></changestatusForm> @success="refreshPage"></changestatusForm>
<change-class-form v-if="isShowTiaoke" :seting-obj="classObjOption" @close="closeClassSaveForm" <change-class-form v-if="isShowTiaoke" :seting-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage"></change-class-form> @success="refreshPage"></change-class-form>
<classconflict-form :ClassId="ClassId" v-if="isShowConflict" @close="closeClassConflictForm"
@success="refreshPage"></classconflict-form>
</div> </div>
</template> </template>
...@@ -219,6 +222,8 @@ ...@@ -219,6 +222,8 @@
import othercourseForm from '../../components/course/othercourse-form'; import othercourseForm from '../../components/course/othercourse-form';
import changestatusForm from '../../components/course/changestatus-form' import changestatusForm from '../../components/course/changestatus-form'
import changeClassForm from '../../components/teacher/changeClassForm.vue' import changeClassForm from '../../components/teacher/changeClassForm.vue'
import classconflictForm from '../../components/course/classconflict-form';
export default { export default {
meta: { meta: {
title: "班级列表" title: "班级列表"
...@@ -238,7 +243,8 @@ ...@@ -238,7 +243,8 @@
classinfoForm, classinfoForm,
othercourseForm, othercourseForm,
changestatusForm, changestatusForm,
changeClassForm changeClassForm,
classconflictForm
}, },
data() { data() {
return { return {
...@@ -340,6 +346,8 @@ ...@@ -340,6 +346,8 @@
isShowStudentMenu: false, //显示未完成学员名单 isShowStudentMenu: false, //显示未完成学员名单
isShowApply: false //显示调课申请 isShowApply: false //显示调课申请
}, },
isShowConflict:false,
ClassId:0
} }
}, },
created() { created() {
...@@ -349,6 +357,18 @@ ...@@ -349,6 +357,18 @@
}, },
methods: { methods: {
//关闭、
closeClassConflictForm(){
this.isShowConflict=false;
},
//显示冲突切换弹窗
getClassFlict(ClassId) {
this.isShowClassForm = false;
this.isShowStatusChange = false;
this.isShowConflict = true;
this.ClassId = ClassId;
},
//初始化权限信息 //初始化权限信息
initAuth() { initAuth() {
if (this.authObj) { if (this.authObj) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment