|
|
@@ -146,12 +146,6 @@ import { mapActions, mapState } from 'vuex'
|
|
|
|
|
|
export default {
|
|
|
name: 'courseDetail',
|
|
|
- props: {
|
|
|
- CourseId: Number,
|
|
|
- Year: Number,
|
|
|
- Term: Number,
|
|
|
- Class: Number
|
|
|
- },
|
|
|
components: { editForm },
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -169,10 +163,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
id: -1,
|
|
|
- // CourseId: null,
|
|
|
- // Term: null,
|
|
|
- // Class: null,
|
|
|
- // Year: null,
|
|
|
+ CourseId: null,
|
|
|
+ Term: null,
|
|
|
+ Class: null,
|
|
|
+ Year: null,
|
|
|
rowdata: {},
|
|
|
searchForm: {
|
|
|
name: ''
|
|
|
@@ -194,11 +188,11 @@ export default {
|
|
|
created () {
|
|
|
},
|
|
|
mounted: function () {
|
|
|
- // let _this = this
|
|
|
- // _this.CourseId = _this.$route.query.CourseId
|
|
|
- // _this.Year = _this.$route.query.Year
|
|
|
- // _this.Term = _this.$route.query.Term
|
|
|
- // _this.Class = _this.$route.query.Class
|
|
|
+ let _this = this
|
|
|
+ _this.CourseId = _this.$route.query.CourseId
|
|
|
+ _this.Year = _this.$route.query.Year
|
|
|
+ _this.Term = _this.$route.query.Term
|
|
|
+ _this.Class = _this.$route.query.Class
|
|
|
let params = {
|
|
|
_currentPage: 1,
|
|
|
_size: 9999
|