|
|
@ -1,7 +1,7 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<nav-bar></nav-bar>
|
|
|
|
<nav-bar></nav-bar>
|
|
|
|
<time-select style="margin-top: 20px" ref="timeSelect" @selectYear="selectYear" @selectSemester="selectSemester"></time-select>
|
|
|
|
<time-select style="margin-top: 20px" ref="timeSelect" @selectYear="load" @selectSemester="load"></time-select>
|
|
|
|
<div style="margin-bottom: 10px">
|
|
|
|
<div style="margin-bottom: 10px">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="2">
|
|
|
@ -72,7 +72,6 @@
|
|
|
|
:key="item.value"
|
|
|
|
:key="item.value"
|
|
|
|
:label="item.label"
|
|
|
|
:label="item.label"
|
|
|
|
:value="item.value"
|
|
|
|
:value="item.value"
|
|
|
|
@click.native="selectSemester"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
@ -181,12 +180,6 @@
|
|
|
|
async load() {
|
|
|
|
async load() {
|
|
|
|
this.tableData = await get('lb/usercourse/findbyyearandsemester/'+this.$refs.timeSelect.year+'/'+this.$refs.timeSelect.semester)
|
|
|
|
this.tableData = await get('lb/usercourse/findbyyearandsemester/'+this.$refs.timeSelect.year+'/'+this.$refs.timeSelect.semester)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectYear(){
|
|
|
|
|
|
|
|
this.tableData = get('lb/course/selectYear',this.$refs.timeSelect.year)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
selectSemester(){
|
|
|
|
|
|
|
|
this.tableData = get('lb/course/selectSemester',this.$refs.timeSelect.semester)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//添加课程
|
|
|
|
//添加课程
|
|
|
|
addCourse() {
|
|
|
|
addCourse() {
|
|
|
|
this.edit = 0
|
|
|
|
this.edit = 0
|
|
|
|