123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <template>
- <a-drawer
- width="576"
- :title="formTitle"
- :label-col="4"
- :wrapper-col="14"
- :visible="open"
- :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
- @close="cancel">
- <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
- <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
- <a-row :gutter="32">
- <a-col :span="12">
- <a-form-model-item label="预约日期" prop="reservationDate">
- <a-date-picker
- v-model="form.reservationDate"
- valueFormat="YYYY-MM-DD"
- :show-today="true"
- placeholder="选择日期"
- style="width: 100%"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="12">
- <a-form-model-item label="预约开始时段" prop="reservationStartTime">
- <a-date-picker
- v-model="form.reservationStartTime"
- valueFormat="YYYY-MM-DD"
- :show-today="true"
- placeholder="选择日期"
- style="width: 100%"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="12">
- <a-form-model-item label="预约结束时段" prop="reservationEndTime">
- <a-date-picker
- v-model="form.reservationEndTime"
- valueFormat="YYYY-MM-DD"
- :show-today="true"
- placeholder="选择日期"
- style="width: 100%"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="12">
- <a-form-model-item label="可预约人数" prop="enableNum">
- <a-input-number v-model="form.enableNum" :min="0" style="width: 100%"/>
- </a-form-model-item>
- </a-col>
- <a-col :span="12" >
- <a-form-model-item label="配置状态 0 保存 1 发布" prop="status">
- <a-radio-group v-model="form.status">
- <a-radio
- v-for="(dict, index) in statusOptions"
- :key="index"
- :value="dict.dictValue"
- >
- {{ dict.dictLabel }}
- </a-radio>
- </a-radio-group>
- </a-form-model-item>
- </a-col>
- </a-row>
- </a-spin>
- <div class="bottom-control">
- <a-space>
- <a-button :disabled="disabled" @click="cancel">
- 取消
- </a-button>
- <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
- 保存
- </a-button>
- </a-space>
- </div>
- </a-form-model>
- </a-drawer>
- </template>
- <script>
- import SysReservationConfigEditForm from './SysReservationConfigForm'
- export default {
- ...SysReservationConfigEditForm
- }
- </script>
|