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