This commit is contained in:
JyuHsin
2025-09-11 09:36:42 +08:00
parent 83ca7bdd24
commit a65b9244bd
6 changed files with 105 additions and 60 deletions
@@ -139,13 +139,14 @@ layout("/mobile/platform.html"){
</div>
</div>
</div>
<!--<div class="calendar-right">
<div class="calendar-right">
<van-icon size="16" color="white" name="arrow-down" @click="calendarVisible=true"></van-icon>
<van-calendar class="top_pop" v-model="calendarVisible" color="#246fb4" position="top" @confirm="onConfirm"
:default-date="selectDate?.toDate()"
:formatter="calendarFormatter"
:first-day-of-week="1"
title="选择开始日期"></van-calendar>
</div>-->
</div>
</div>
<div class="container">
@@ -277,8 +278,11 @@ layout("/mobile/platform.html"){
}
}
},
calendarFormatter() {
calendarFormatter(day) {
return (day) => {
if(!this.allowDayList.includes(moment(day.date).format('YYYY-MM-DD'))) {
day.type = 'disabled'
}
return day
}
}
@@ -304,6 +308,7 @@ layout("/mobile/platform.html"){
onConfirm(date) {
this.selectDate = moment(date)
this.setWeekList(this.selectDate)
this.getAllowTime()
this.calendarVisible = false
},
setWeekList(startDate) {
@@ -111,8 +111,11 @@ layout("/layouts/platform.html"){
<el-row :gutter="20">
<el-col :span="12">
<el-form-item prop="create_username" label="创建人">
<!--<el-form-item prop="create_username" label="创建人">
<el-input readonly v-model="formData.create_username" type="text"></el-input>
</el-form-item>-->
<el-form-item prop="openDayNum" label="开放天数段">
<el-input placeholder="请输入开放天数段" v-model="formData.openDayNum" type="number"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -369,6 +372,7 @@ layout("/layouts/platform.html"){
sexLimit: 0,
notApplyTimeList: [],
reserveTarget: 2,
openDayNum: 7,
},
pageForm: {
searchName: "name",
@@ -390,6 +394,7 @@ layout("/layouts/platform.html"){
openWeekTime: [{required: true, message: '请选择预约时间', trigger: ['blur', 'change']}],
reserveTarget: [{required: true, message: '请选择面向对象', trigger: ['blur', 'change']}],
maxNum: [{required: true, message: '请输入容纳人数', trigger: ['blur', 'change']}],
openDayNum: [{required: true, message: '请输入开放天数段', trigger: ['blur', 'change']}],
},
setUpTimeDialog: false,
@@ -537,6 +542,7 @@ layout("/layouts/platform.html"){
sexLimit: '0',
notApplyTimeList: [],
reserveTarget: 2,
openDayNum: 7,
}
this.$refs.guava.edit()