SysReservationConfigEditForm.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <a-drawer
  3. width="576"
  4. :title="formTitle"
  5. :label-col="4"
  6. :wrapper-col="14"
  7. :visible="open"
  8. :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
  9. @close="cancel">
  10. <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
  11. <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
  12. <a-row :gutter="32">
  13. <a-col :span="12">
  14. <a-form-model-item label="预约日期" prop="reservationDate">
  15. <a-date-picker
  16. v-model="form.reservationDate"
  17. valueFormat="YYYY-MM-DD"
  18. :show-today="true"
  19. placeholder="选择日期"
  20. style="width: 100%"
  21. />
  22. </a-form-model-item>
  23. </a-col>
  24. <a-col :span="12">
  25. <a-form-model-item label="预约开始时段" prop="reservationStartTime">
  26. <a-date-picker
  27. v-model="form.reservationStartTime"
  28. valueFormat="YYYY-MM-DD"
  29. :show-today="true"
  30. placeholder="选择日期"
  31. style="width: 100%"
  32. />
  33. </a-form-model-item>
  34. </a-col>
  35. <a-col :span="12">
  36. <a-form-model-item label="预约结束时段" prop="reservationEndTime">
  37. <a-date-picker
  38. v-model="form.reservationEndTime"
  39. valueFormat="YYYY-MM-DD"
  40. :show-today="true"
  41. placeholder="选择日期"
  42. style="width: 100%"
  43. />
  44. </a-form-model-item>
  45. </a-col>
  46. <a-col :span="12">
  47. <a-form-model-item label="可预约人数" prop="enableNum">
  48. <a-input-number v-model="form.enableNum" :min="0" style="width: 100%"/>
  49. </a-form-model-item>
  50. </a-col>
  51. <a-col :span="12" >
  52. <a-form-model-item label="配置状态 0 保存 1 发布" prop="status">
  53. <a-radio-group v-model="form.status">
  54. <a-radio
  55. v-for="(dict, index) in statusOptions"
  56. :key="index"
  57. :value="dict.dictValue"
  58. >
  59. {{ dict.dictLabel }}
  60. </a-radio>
  61. </a-radio-group>
  62. </a-form-model-item>
  63. </a-col>
  64. </a-row>
  65. </a-spin>
  66. <div class="bottom-control">
  67. <a-space>
  68. <a-button :disabled="disabled" @click="cancel">
  69. 取消
  70. </a-button>
  71. <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
  72. 保存
  73. </a-button>
  74. </a-space>
  75. </div>
  76. </a-form-model>
  77. </a-drawer>
  78. </template>
  79. <script>
  80. import SysReservationConfigEditForm from './SysReservationConfigForm'
  81. export default {
  82. ...SysReservationConfigEditForm
  83. }
  84. </script>