Commit be47286a authored by zhengke's avatar zhengke

修改

parent 25693b37
......@@ -26,7 +26,7 @@
</div>
</div>
<div class="page-option">
<q-btn color="accent" class="q-mr-md" icon="add" label="新增课程" @click="EditCourse(null)" />
<q-btn color="accent" class="q-mr-md" icon="add" label="新增班级" @click="EditCourse(null)" />
</div>
</div>
<div class="page-content">
......@@ -62,9 +62,9 @@
</q-td>
</template>
</q-table>
<!-- <course-form v-if="isShowCourseForm" :save-obj="courseObjOption" @close="closeMenuSaveForm"
<class-form v-if="isShowClassForm" :save-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage">
</course-form> -->
</class-form>
</div>
</div>
</template>
......@@ -73,11 +73,13 @@
// queryCoursePage,
// queryCourseCategoryTree,
// } from '../../api/course/index'
import classForm from '../../components/course/class-form'
export default {
meta: {
title: "班级管理"
},
components: {
classForm
},
data() {
return {
......@@ -137,6 +139,7 @@
],
data: [],
loading: false,
isShowClassForm:false,
msg: {
pageIndex: 1,
pageSize: 12,
......@@ -157,6 +160,7 @@
Name:'清华大学'
}],
pageCount: 0,
classObjOption:null,
}
},
mounted() {
......@@ -181,21 +185,21 @@
},
//刷新页面
refreshPage() {
this.isShowCourseForm = false;
this.isShowClassForm = false;
this.getcourselist();
},
//新增修改菜单
EditCourse(obj) {
// if (obj) {
// this.courseObjOption = obj
// this.classObjOption = obj
// } else {
// this.courseObjOption = null
// this.classObjOption = null
// }
// this.isShowCourseForm = true
this.isShowClassForm = true
},
//关闭弹窗
closeMenuSaveForm() {
// this.isShowCourseForm = false
closeClassSaveForm() {
// this.isShowClassForm = false
}
}
}
......
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