SeedlingMonitor.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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="请选择" @change="select">
  16. <el-option 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>测试园区玉米</span></div>
  23. <div class="midbottomFont">采集时间:<span>2023-05-06</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. }, {
  36. value: videofarm2,
  37. label: '设备二'
  38. }, {
  39. value: '选项3',
  40. label: '设备三'
  41. }, {
  42. value: '选项4',
  43. label: '设备四'
  44. }, ],
  45. value: ''
  46. };
  47. },
  48. methods: {
  49. select(val) {
  50. this.video=val;
  51. console.log(11111111,val)
  52. }
  53. }
  54. };
  55. </script>
  56. <style scoped>
  57. .video {
  58. margin-top: 25rem;
  59. width: 180rem;
  60. height: 165rem;
  61. display: inline-block;
  62. float: left;
  63. }
  64. .video11 {
  65. width: 100%;
  66. height: 100%;
  67. border-radius: 20rem;
  68. border-style: solid;
  69. border-width: 1rem ;
  70. border-color:rgb(200, 250, 255,0.3);
  71. }
  72. .rightContent {
  73. margin-top: 30rem;
  74. width: 165rem;
  75. height: 300rem;
  76. display: inline-block;
  77. float: right;
  78. }
  79. .font {
  80. margin-top: 10rem;
  81. font-size: 16rem;
  82. width: 70rem;
  83. height: 30rem;
  84. float: left;
  85. color: rgb(200, 250, 255);
  86. text-align: left;
  87. }
  88. ::v-deep .el-input__inner {
  89. color: #fff;
  90. }
  91. ::v-deep .el-input__wrapper {
  92. background-color: rgba(255, 255, 255, 0) !important;
  93. color: #0e294d !important;
  94. }
  95. .selectItem {
  96. margin-top: 10rem;
  97. width: 90rem;
  98. height: 5rem;
  99. display: inline-block;
  100. float: right;
  101. }
  102. .top {
  103. height: 60rem;
  104. width: 100%;
  105. }
  106. .midFont {
  107. font-size: 14rem;
  108. margin-top: 5rem;
  109. color: rgb(200, 250, 255);
  110. text-align: left;
  111. padding-left: 20rem;
  112. background: url('@/assets/images/jiankong.png') no-repeat;
  113. background-size: 10%, 10%;
  114. }
  115. .midbottomFont {
  116. margin-top: 30rem;
  117. font-size: 14rem;
  118. color: rgb(200, 250, 255);
  119. text-align: left;
  120. padding-left: 20rem;
  121. background: url('@/assets/images/shijian.png') no-repeat;
  122. background-size: 11%, 11%;
  123. }
  124. </style>