完善课程管理页面

master
aiyadc 5 years ago
parent 3c4f0c5bb4
commit 1f5c6e5eb1

@ -65,10 +65,10 @@
},
methods:{
selectYear(){
console.log(this.year)
this.$emit('selectYear')
},
selectSemester(){
console.log(this.semester)
this.$emit('semester')
}
},
mounted() {

@ -1,7 +1,7 @@
<template>
<div>
<nav-bar></nav-bar>
<time-select style="margin-top: 20px" ref="timeSelect"></time-select>
<time-select style="margin-top: 20px" ref="timeSelect" @selectYear="selectYear" @selectSemester="selectSemester"></time-select>
<div style="margin-bottom: 10px">
<el-row :gutter="20">
<el-col :span="2">
@ -164,6 +164,12 @@
async load() {
this.tableData = await get('lb/course/courseManagement')
},
selectYear(){
this.tableData = get('lb/course/selectYear',this.$refs.timeSelect.year)
},
selectSemester(){
this.tableData = get('lb/course/selectSemester',this.$refs.timeSelect.semester)
},
//
addCourse() {
this.edit = 0

Loading…
Cancel
Save