fixbug— 足球场馆

This commit is contained in:
limqhz
2021-04-03 11:40:55 +08:00
parent 7500883682
commit 4461ba2564
4 changed files with 14 additions and 10 deletions

View File

@@ -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 }})
},
/**
* 搜索场馆

View File

@@ -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 }})
},
/**
* 搜索场馆

View File

@@ -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) {

View File

@@ -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 }
})
},