HuiFangArea.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="huiFangArea" >
  3. <div class="cb-time">
  4. <div>
  5. <i class="cbt-icon"></i>
  6. <el-date-picker
  7. v-model="timeRange.time1"
  8. type="datetime"
  9. placeholder="请选择"
  10. size="small"
  11. popper-class="date-popper"
  12. class="date-picker-custom1"
  13. value-format="YYYY-MM-DD HH:mm:ss"
  14. />
  15. </div>
  16. <div>
  17. <i class="cbt-icon"></i>
  18. <el-date-picker
  19. v-model="timeRange.time2"
  20. type="datetime"
  21. placeholder="请选择"
  22. size="small"
  23. popper-class="date-popper"
  24. class="date-picker-custom1"
  25. value-format="YYYY-MM-DD HH:mm:ss"
  26. />
  27. </div>
  28. <div>
  29. <span>确定</span>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'huiFangArea'
  37. }
  38. </script>
  39. <script setup>
  40. import {reactive} from "vue";
  41. import { ElDatePicker,ElMessage } from 'element-plus'
  42. import 'element-plus/es/components/message/style/css'
  43. import 'element-plus/es/components/date-picker/style/css'
  44. const timeRange = reactive({
  45. time1: '2023-05-06 12:30:00',
  46. time2: '2023-08-06 12:30:00',
  47. })
  48. </script>
  49. <style lang="scss" scoped>
  50. .huiFangArea{
  51. position: absolute;
  52. top: 10vh;
  53. right: 30vh;
  54. width: 20vh;
  55. height: 150px;
  56. background: url('@/assets/imgs/area/bg.png') no-repeat;
  57. background-size: 100% 100%;
  58. .cb-time {
  59. width: 100%;
  60. height: 30%;
  61. div{
  62. margin: 0 auto;
  63. height: 100%;
  64. width: 80%;
  65. display: flex;
  66. align-items: center;
  67. align-content: center;
  68. .cbt-icon{
  69. display: block;
  70. width: 20px;
  71. height: 13px;
  72. background: url('@/assets/imgs/area/time.png') no-repeat;
  73. background-size: 100% 100%;
  74. }
  75. }
  76. span{
  77. margin: 0 auto;
  78. height: 30px;
  79. width: 40%;
  80. text-align: center;
  81. line-height:30px;
  82. font-size: 11px;
  83. background: url('@/assets/imgs/area/button.png') no-repeat;
  84. background-size: 100% 100%;
  85. }
  86. }
  87. }
  88. </style>