dialysis.vue 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <section class="app-main-bg">
  3. <el-form ref="form" :model="form" label-width="80px">
  4. <el-form-item label="活动名称">
  5. <el-input v-model="form.name"></el-input>
  6. </el-form-item>
  7. <el-form-item label="活动区域">
  8. <el-select v-model="form.region" placeholder="请选择活动区域">
  9. <el-option label="区域一" value="shanghai"></el-option>
  10. <el-option label="区域二" value="beijing"></el-option>
  11. </el-select>
  12. </el-form-item>
  13. <el-form-item label="活动时间">
  14. <el-col :span="11">
  15. <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
  16. </el-col>
  17. <el-col class="line" :span="2">-</el-col>
  18. <el-col :span="11">
  19. <el-time-picker type="fixed-time" placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
  20. </el-col>
  21. </el-form-item>
  22. <el-form-item label="即时配送">
  23. <el-switch v-model="form.delivery"></el-switch>
  24. </el-form-item>
  25. <el-form-item label="活动性质">
  26. <el-checkbox-group v-model="form.type">
  27. <el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
  28. <el-checkbox label="地推活动" name="type"></el-checkbox>
  29. <el-checkbox label="线下主题活动" name="type"></el-checkbox>
  30. <el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
  31. </el-checkbox-group>
  32. </el-form-item>
  33. <el-form-item label="特殊资源">
  34. <el-radio-group v-model="form.resource">
  35. <el-radio label="线上品牌商赞助"></el-radio>
  36. <el-radio label="线下场地免费"></el-radio>
  37. </el-radio-group>
  38. </el-form-item>
  39. <el-form-item label="活动形式">
  40. <el-input type="textarea" v-model="form.desc"></el-input>
  41. </el-form-item>
  42. <el-form-item>
  43. <el-button type="primary" @click="onSubmit">立即创建</el-button>
  44. <el-button>取消</el-button>
  45. </el-form-item>
  46. </el-form>
  47. </section>
  48. </template>
  49. <script>
  50. export default {
  51. name: 'Dialysis',
  52. data() {
  53. return {
  54. form: {
  55. name: '',
  56. region: '',
  57. date1: '',
  58. date2: '',
  59. delivery: false,
  60. type: [],
  61. resource: '',
  62. desc: ''
  63. }
  64. }
  65. },
  66. methods: {
  67. onSubmit() {
  68. console.log('submit!');
  69. }
  70. }
  71. }
  72. </script>
  73. <style scoped>
  74. </style>