fixbug— 足球场馆
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
<el-table-column align="center" label="微信二维码">
|
<el-table-column align="center" label="微信二维码">
|
||||||
<template scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</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="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="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 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 === 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>
|
<el-button v-if="scope.row.status === 1" size="small" type="text" @click="handleUpdateStatus(scope.row, 0)">启用</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -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 }})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 搜索场馆
|
* 搜索场馆
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<!-- 课程开始时间 -->
|
<!-- 课程开始时间 -->
|
||||||
<el-form-item label="课程时间" prop="startTime">
|
<el-form-item label="课程时间" prop="startTime">
|
||||||
<el-time-picker
|
<el-time-picker
|
||||||
@change="onTimeChange"
|
@change="onTimeChange"
|
||||||
style="width:200px"
|
style="width:200px"
|
||||||
is-range
|
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-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>
|
||||||
|
|
||||||
|
|
||||||
<!-- 课程总数量 -->
|
<!-- 课程总数量 -->
|
||||||
<el-form-item label="课程已售" prop="num" v-if="this.form.id">
|
<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>
|
<el-input :disabled="true" v-model.number="form.saleNum" style="width:180px"></el-input>
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
<el-form-item label="注意事项" prop="note">
|
<el-form-item label="注意事项" prop="note">
|
||||||
<Tinymce :height="300" v-model="form.note" id='note' style="width:900px"></Tinymce>
|
<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-form-item label="注意事项" prop="note">
|
||||||
<el-input type="textarea" :rows="4" placeholder="请输入注意事项" v-model="form.note"> </el-input>
|
<el-input type="textarea" :rows="4" placeholder="请输入注意事项" v-model="form.note"> </el-input>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
@@ -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