Commit be47286a authored by zhengke's avatar zhengke

修改

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