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

@@ -61,7 +61,7 @@
<el-table-column align="center" label="微信二维码">
<template scope="scope">
<img :src="scope.row.codeUrl" @click="openCodeUrl(scope.row.codeUrl)" style="width:100px;height:100px;cursor:pointer">
<img :src="scope.row.codeUrl" @click="openCodeUrl(scope.row.codeUrl)" style="width:100px;height:100px;cursor:pointer">
</template>
</el-table-column>
@@ -77,7 +77,7 @@
<el-button size="small" v-if="scope.row.status === 0" type="text" @click="handleEdit(scope.row.id)">编辑</el-button>
<el-button size="small" v-if="scope.row.status === 0" type="text" @click="handleLesson(scope.row.id)">课程安排</el-button>
<el-button size="small" v-if="scope.row.status === 0" type="text" @click="handleEditCard(scope.row.id)">会员卡配置</el-button>
<el-button v-if="!scope.row.codeUrl" size="small" type="text" @click="generateCodeUrl(scope.row)">生成二维码</el-button>
<el-button v-if="!scope.row.codeUrl" size="small" type="text" @click="generateCodeUrl(scope.row)">生成二维码</el-button>
<el-button v-if="scope.row.status === 0" class="danger" size="small" type="text" @click="handleUpdateStatus(scope.row, 1)">禁用</el-button>
<el-button v-if="scope.row.status === 1" size="small" type="text" @click="handleUpdateStatus(scope.row, 0)">启用</el-button>
</template>
@@ -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

@@ -34,7 +34,7 @@
<!-- 课程开始时间 -->
<el-form-item label="课程时间" prop="startTime">
<el-time-picker
<el-time-picker
@change="onTimeChange"
style="width:200px"
is-range
@@ -54,7 +54,7 @@
<el-input-number v-if="!this.form.id" v-model.number="form.num" :min="1" :max="10000" :precision="0" ></el-input-number>
</el-form-item>
<!-- 课程总数量 -->
<el-form-item label="课程已售" prop="num" v-if="this.form.id">
<el-input :disabled="true" v-model.number="form.saleNum" style="width:180px"></el-input>
@@ -100,7 +100,7 @@
<el-form-item label="注意事项" prop="note">
<Tinymce :height="300" v-model="form.note" id='note' style="width:900px"></Tinymce>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="注意事项" prop="note">
<el-input type="textarea" :rows="4" placeholder="请输入注意事项" v-model="form.note"> </el-input>
</el-form-item> -->
@@ -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 }
})
},