[fix][V]:完善课程学期学年选择

master
Romesum 5 years ago
parent d1c0223c54
commit 6e886a547c

@ -41,15 +41,15 @@
semester: 2,
selectOptions1: [
{
value: '1718',
value: '2017',
label: '2017-2018年'
},
{
value: '1819',
value: '2018',
label: '2018-2019年'
},
{
value: '1920',
value: '2019',
label: '2019-2020年'
}
],
@ -70,7 +70,7 @@
this.$emit('selectYear')
},
selectSemester() {
this.$emit('semester')
this.$emit('selectSemester')
},
}
}

@ -1,7 +1,7 @@
<template>
<div>
<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">
<el-row :gutter="20">
<el-col :span="2">
@ -72,7 +72,6 @@
:key="item.value"
:label="item.label"
:value="item.value"
@click.native="selectSemester"
>
</el-option>
</el-select>
@ -181,12 +180,6 @@
async load() {
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() {
this.edit = 0

Loading…
Cancel
Save