|
|
|
|
@ -35,6 +35,52 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_book>
|
|
|
|
|
<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_book" 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 v-slot:floor>
|
|
|
|
|
<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-input v-model="form.floor" placeholder="请输入所在楼层" clearable
|
|
|
|
|
style="width: 100%;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:total>
|
|
|
|
|
<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-input v-model="form.total" placeholder="请输入容纳人数" clearable
|
|
|
|
|
style="width: 100%;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sort>
|
|
|
|
|
<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-input v-model="form.sort" type="number" placeholder="请输入排序" clearable
|
|
|
|
|
style="width: 100%;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:image_id>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold;">
|
|
|
|
|
@ -71,9 +117,13 @@
|
|
|
|
|
form: {
|
|
|
|
|
name: '',
|
|
|
|
|
introduce: '',
|
|
|
|
|
dateRange: ['08:30','17:30'],
|
|
|
|
|
dateRange: ['09:00','17:30'],
|
|
|
|
|
is_book:0,
|
|
|
|
|
floor:'',
|
|
|
|
|
total:'',
|
|
|
|
|
sort:0,
|
|
|
|
|
image_id: [],
|
|
|
|
|
start_time:'08:30',
|
|
|
|
|
start_time:'09:00',
|
|
|
|
|
end_time:'17:30'
|
|
|
|
|
},
|
|
|
|
|
action: `${process.env.VUE_APP_UPLOAD_API}`,
|
|
|
|
|
@ -138,7 +188,9 @@
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
|
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.is_book = res.is_book?res.is_book:0
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|