SeedlingMonitor.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <script setup>
  2. import videofarm1 from '@/assets/video/videofarm1.mp4';
  3. import videofarm2 from '@/assets/video/videofarm2.mp4';
  4. import nongye from '@/assets/images/farm.jpg';
  5. import nongye2 from '@/assets/images/farm2.jpg';
  6. </script>
  7. <template>
  8. <div class="video">
  9. <video class="video11" :src="video" autoplay controls loop muted></video>
  10. </div>
  11. <div class="rightContent">
  12. <div class="top">
  13. <div class="font">苗情设备</div>
  14. <div class="selectItem">
  15. <el-select size="small" v-model="value" placeholder="请选择">
  16. <el-option @click="handleChange(item)" v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
  17. </el-option>
  18. </el-select>
  19. </div>
  20. </div>
  21. <div class="mid">
  22. <div class="midFont">监控区域:<span>{{area}}</span></div>
  23. <div class="midbottomFont">采集时间:<span>{{time}}</span> </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. video: videofarm1,
  32. options: [{
  33. value: videofarm1,
  34. label: '设备一',
  35. area:'测试园区玉米',
  36. time:'2023-05-04'
  37. }, {
  38. value: videofarm2,
  39. label: '设备二',
  40. area:'测试园区麦子',
  41. time:'2023-04-25'
  42. }, {
  43. value: '选项3',
  44. label: '设备三',
  45. area:'测试园区水稻',
  46. time:'2023-04-20'
  47. }, {
  48. value: '选项4',
  49. label: '设备四',
  50. area:'测试园区玉米',
  51. time:'2023-04-10'
  52. }, ],
  53. value: videofarm1,
  54. area:'测试园区玉米',
  55. time:'2023-05-04'
  56. };
  57. },
  58. methods: {
  59. handleChange(val){
  60. this.video=val.value;
  61. this.area=val.area;
  62. this.time=val.time
  63. }
  64. }
  65. };
  66. </script>
  67. <style scoped>
  68. .video {
  69. margin-top: 25rem;
  70. width: 170rem;
  71. height: 165rem;
  72. display: inline-block;
  73. float: left;
  74. }
  75. .video11 {
  76. width: 100%;
  77. height: 100%;
  78. border-radius: 20rem;
  79. border-style: solid;
  80. border-width: 1rem ;
  81. border-color:rgb(200, 250, 255,0.3);
  82. }
  83. .rightContent {
  84. margin-top: 30rem;
  85. width: 165rem;
  86. height: 300rem;
  87. display: inline-block;
  88. float: right;
  89. }
  90. .font {
  91. margin-top: 10rem;
  92. font-size: 16rem;
  93. width: 70rem;
  94. height: 30rem;
  95. float: left;
  96. color: rgb(200, 250, 255);
  97. text-align: left;
  98. }
  99. ::v-deep .el-input__inner {
  100. color: #fff;
  101. }
  102. ::v-deep .el-input__wrapper {
  103. background-color: rgba(255, 255, 255, 0) !important;
  104. color: #0e294d !important;
  105. }
  106. .selectItem {
  107. margin-top: 10rem;
  108. width: 90rem;
  109. height: 5rem;
  110. display: inline-block;
  111. float: right;
  112. }
  113. .top {
  114. height: 60rem;
  115. width: 100%;
  116. }
  117. .midFont {
  118. font-size: 14rem;
  119. margin-top: 5rem;
  120. color: rgb(200, 250, 255);
  121. text-align: left;
  122. padding-left: 20rem;
  123. background: url('@/assets/images/jiankong.png') no-repeat;
  124. background-size: 10%, 10%;
  125. }
  126. .midbottomFont {
  127. margin-top: 30rem;
  128. font-size: 14rem;
  129. color: rgb(200, 250, 255);
  130. text-align: left;
  131. padding-left: 20rem;
  132. background: url('@/assets/images/shijian.png') no-repeat;
  133. background-size: 11%, 11%;
  134. }
  135. </style>