fixbug— 足球场馆
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
||||
this.$router.push({ path: '/venue/card/index', query: { id: id, type: 2 }})
|
||||
},
|
||||
handleLesson(id) {
|
||||
this.$router.push({ path: '/venue/lesson/index', query: { venueId: id }})
|
||||
this.$router.push({ path: '/venue/lesson/index', query: { venueId: id, venueType: 2 }})
|
||||
},
|
||||
/**
|
||||
* 搜索场馆
|
||||
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
this.$router.push({ path: '/venue/card/index', query: { id: id, type: 3 }})
|
||||
},
|
||||
handleLesson(id) {
|
||||
this.$router.push({ path: '/venue/lesson/index', query: { venueId: id }})
|
||||
this.$router.push({ path: '/venue/lesson/index', query: { venueId: id, venueType: 3 }})
|
||||
},
|
||||
/**
|
||||
* 搜索场馆
|
||||
|
||||
@@ -132,9 +132,9 @@ export default {
|
||||
return {
|
||||
form: {
|
||||
id: undefined,
|
||||
veneuType: '',
|
||||
type: 0,
|
||||
venueId: '',
|
||||
venueType: '',
|
||||
name: '',
|
||||
date: '',
|
||||
startTime: '',
|
||||
@@ -198,6 +198,9 @@ export default {
|
||||
if (this.$route.query.venueId) {
|
||||
this.form.venueId = this.$route.query.venueId
|
||||
}
|
||||
if (this.$route.query.venueType) {
|
||||
this.form.venueType = this.$route.query.venueType
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onTagChange(value) {
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
params: {
|
||||
search_eq_v$venueId: undefined,
|
||||
search_eq_v$date: undefined,
|
||||
search_eq_v$venueType: 2,
|
||||
search_eq_v$venueType: undefined,
|
||||
search_eq_v$coachId: undefined,
|
||||
search_gt_v$startTime: undefined,
|
||||
search_lt_v$endTime: undefined,
|
||||
@@ -224,6 +224,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.params.search_eq_v$venueId = this.$route.query.venueId
|
||||
this.params.search_eq_v$venueType = this.$route.query.venueType
|
||||
findByVenueType(2).then(response => {
|
||||
this.coaches = response.coaches
|
||||
})
|
||||
@@ -394,7 +395,7 @@ export default {
|
||||
handleCreate() {
|
||||
this.$router.push({
|
||||
path: '/venue/lesson/edit',
|
||||
query: { venueId: this.params.search_eq_v$venueId }
|
||||
query: { venueId: this.params.search_eq_v$venueId, venueType: this.params.search_eq_v$venueType }
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user