场地预约

dev
lion 11 months ago
parent 7f6e453569
commit 0395bc1355

@ -39,6 +39,15 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-slot:show_front>
<el-table-column align='center' label="是否在小程序展示" width="120" header-align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.show_front===1"></el-tag>
<el-tag type="info" v-else></el-tag>
</template>
</el-table-column>
</template>
<!-- <template v-slot:dateRange> <!-- <template v-slot:dateRange>
<el-table-column align='center' label="可预约时间段" width="120" header-align="center"> <el-table-column align='center' label="可预约时间段" width="120" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -107,6 +116,12 @@
label: '小程序展示名称', label: '小程序展示名称',
align: 'left', align: 'left',
width: 120, width: 120,
},{
prop: 'show_front',
label: '是否在小程序展示',
align: 'left',
width: 120,
},{ },{
prop: 'appointment_type.name', prop: 'appointment_type.name',
label: '场地类型', label: '场地类型',

@ -35,6 +35,19 @@
</el-time-picker> </el-time-picker>
</div> </div>
</div> </div>
</template>
<template v-slot:is_show>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否在小程序显示
</div>
<div class="xy-table-item-content">
<el-select v-model="form.is_show" placeholder="请选择是否显示" style="width: 100%;">
<el-option v-for="item in false_or_true" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
</div>
</template> </template>
<template v-slot:is_book> <template v-slot:is_book>
<div class="xy-table-item"> <div class="xy-table-item">
@ -137,7 +150,8 @@
name: '', name: '',
introduce: '', introduce: '',
dateRange: ['09:00', '17:30'], dateRange: ['09:00', '17:30'],
is_book: 0, is_book: 0,
is_show:1,
floor: '', floor: '',
total: '', total: '',
sort: 0, sort: 0,
@ -217,7 +231,9 @@
this.fileList = res.image this.fileList = res.image
this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''], this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''],
this.form.sort = res.sort ? res.sort : 0 this.form.sort = res.sort ? res.sort : 0
this.form.is_book = res.is_book ? res.is_book : 0 this.form.is_book = res.is_book ? res.is_book : 0
this.form.is_show = res.is_show ? res.is_show : 0
this.showTinymce = true this.showTinymce = true
this.showTinymce1 = true this.showTinymce1 = true
}) })
@ -241,6 +257,7 @@
introduce: '', introduce: '',
dateRange: ['09:00', '17:30'], dateRange: ['09:00', '17:30'],
is_book: 0, is_book: 0,
is_show:1,
floor: '', floor: '',
total: '', total: '',
sort: 0, sort: 0,

Loading…
Cancel
Save