Commit 33c0eec2 authored by 刘怀志's avatar 刘怀志

71886 【管理端】新增开课-不填写任何内容,点击取消无反应

parent 56903cdf
...@@ -1230,7 +1230,7 @@ ...@@ -1230,7 +1230,7 @@
<span style="color: #FF9900;cursor: pointer;" @click="showSelectedLesson"><span style="text-decoration: underline">已选{{ selectedLessonCount }}门</span>课程</span> <span style="color: #FF9900;cursor: pointer;" @click="showSelectedLesson"><span style="text-decoration: underline">已选{{ selectedLessonCount }}门</span>课程</span>
</div> </div>
<div class="cancelArea"> <div class="cancelArea">
<el-button class="cancelBtn" @click="handleDrawerClose">取 消</el-button> <el-button class="cancelBtn" @click="drawerController.drawer = false">取 消</el-button>
<el-button class="submitBtn" type="primary" @click="submitForm">确 定</el-button> <el-button class="submitBtn" type="primary" @click="submitForm">确 定</el-button>
</div> </div>
</div> </div>
...@@ -1594,7 +1594,6 @@ export default { ...@@ -1594,7 +1594,6 @@ export default {
handleDrawerClose() { handleDrawerClose() {
this.resetAddFrom() this.resetAddFrom()
this.handleLessonClear() this.handleLessonClear()
this.drawerController.drawer = false
this.showLesson = false this.showLesson = false
this.$nextTick().then(() => { this.$nextTick().then(() => {
this.$refs.lessonRef.clearValidate() this.$refs.lessonRef.clearValidate()
...@@ -1863,14 +1862,14 @@ export default { ...@@ -1863,14 +1862,14 @@ export default {
handleLessonClear() { handleLessonClear() {
// 课程类型是企业类型 // 课程类型是企业类型
// if (this.applicantType === '0') { // if (this.applicantType === '0') {
this.form.classPlan = '' this.form.classPlan = ''
this.form.classPlanSchool = '' this.form.classPlanSchool = ''
this.form.jobClassification = '' this.form.jobClassification = ''
this.form.technicalClassification = '' this.form.technicalClassification = ''
this.form.technicalClassSchool = '' this.form.technicalClassSchool = ''
this.form.difficultyClassify = '' this.form.difficultyClassify = ''
this.jobClassification = [] this.jobClassification = []
this.technicalClassification = [] this.technicalClassification = []
// } // }
this.getLessonQueryPage() this.getLessonQueryPage()
}, },
...@@ -1891,11 +1890,24 @@ export default { ...@@ -1891,11 +1890,24 @@ export default {
}, },
/** 6.重置方法**/ /** 6.重置方法**/
resetAddFrom() { resetAddFrom() {
this.form = {
unitId: '',
unitName: '',
lessonId: '',
lessonName: '',
beginDate: null,
endDate: null,
classPlan: '',
lessonType: '',
settingList: []
}
this.$refs.lessonRef.resetFields() this.$refs.lessonRef.resetFields()
this.total1 = 0 this.total1 = 0
this.lessonList = [] this.lessonList = []
this.multipleSelection = [] this.multipleSelection = []
this.$refs.multipleTable.clearSelection() if (this.$refs.multipleTable) {
this.$refs.multipleTable.clearSelection()
}
}, },
/** 7.当课程有值是将课程label查询*/ /** 7.当课程有值是将课程label查询*/
handleLessonChange(value) { handleLessonChange(value) {
......
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