listPage.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="equipmentInformationListPage">
  3. <view class="top-bix-box">
  4. <view class="top-box">
  5. <view class="left-time-box">
  6. <uni-datetime-picker v-model="range" type="daterange" :clearIcon="false"/>
  7. </view>
  8. <view class="right-button-box">查询</view>
  9. </view>
  10. <view class="top-box" style="margin-top:10rpx;">
  11. <view class="left-time-box">
  12. <input class="input-text" type="text" v-model="text" placeholder="设备名称">
  13. </view>
  14. <view class="right-button-box-2">重置</view>
  15. </view>
  16. </view>
  17. <view class="list-max-big-box">
  18. <view class="list-for-max-big-box" v-for="(item,index) in dataList" :key="index">
  19. <view class="top-title-box">
  20. <view>{{item.data1}}</view>
  21. <view>{{item.data2}}</view>
  22. </view>
  23. <view class="text-p">{{item.data3}} {{item.data4}} {{item.data5}}</view>
  24. <view class="text-p">使用时间:{{item.data6}} 至 {{item.data7}}</view>
  25. <view class="bottom-title-box">
  26. <view>设备编号:{{item.data8}}</view>
  27. <view>使用人:{{item.data9}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import {
  35. demo1,
  36. } from '@/pages_equipmentUtilization/api/index.js'
  37. export default {
  38. data() {
  39. return {
  40. range:[],
  41. text:'',
  42. dataList:[
  43. {
  44. data1:'设备名称',
  45. data2:'使用类型',
  46. data3:'XX楼',
  47. data4:'XX层',
  48. data5:'XX实验室',
  49. data6:'2026-01-19 12:22',
  50. data7:'2026-01-19 12:22',
  51. data8:'01231231',
  52. data9:'张三',
  53. },
  54. {
  55. data1:'设备名称',
  56. data2:'使用类型',
  57. data3:'XX楼',
  58. data4:'XX层',
  59. data5:'XX实验室',
  60. data6:'2026-01-19 12:22',
  61. data7:'2026-01-19 12:22',
  62. data8:'01231231',
  63. data9:'张三',
  64. },
  65. {
  66. data1:'设备名称',
  67. data2:'使用类型',
  68. data3:'XX楼',
  69. data4:'XX层',
  70. data5:'XX实验室',
  71. data6:'2026-01-19 12:22',
  72. data7:'2026-01-19 12:22',
  73. data8:'01231231',
  74. data9:'张三',
  75. },
  76. {
  77. data1:'设备名称',
  78. data2:'使用类型',
  79. data3:'XX楼',
  80. data4:'XX层',
  81. data5:'XX实验室',
  82. data6:'2026-01-19 12:22',
  83. data7:'2026-01-19 12:22',
  84. data8:'01231231',
  85. data9:'张三',
  86. },
  87. {
  88. data1:'设备名称',
  89. data2:'使用类型',
  90. data3:'XX楼',
  91. data4:'XX层',
  92. data5:'XX实验室',
  93. data6:'2026-01-19 12:22',
  94. data7:'2026-01-19 12:22',
  95. data8:'01231231',
  96. data9:'张三',
  97. },
  98. {
  99. data1:'设备名称',
  100. data2:'使用类型',
  101. data3:'XX楼',
  102. data4:'XX层',
  103. data5:'XX实验室',
  104. data6:'2026-01-19 12:22',
  105. data7:'2026-01-19 12:22',
  106. data8:'01231231',
  107. data9:'张三',
  108. },
  109. ]
  110. }
  111. },
  112. onLoad(option) {
  113. },
  114. onShow() {
  115. },
  116. mounted() {
  117. },
  118. methods: {
  119. maskClick(){
  120. },
  121. },
  122. }
  123. </script>
  124. <style lang="stylus" scoped>
  125. .equipmentInformationListPage {
  126. height: 100%;
  127. flex:1;
  128. display:flex;
  129. flex-direction:column;
  130. .top-bix-box{
  131. height:160rpx;
  132. padding:20rpx 20rpx;
  133. background-color: #fff;
  134. .top-box{
  135. display: flex;
  136. .left-time-box{
  137. width:600rpx;
  138. .input-text{
  139. padding-left:30rpx;
  140. height:70rpx;
  141. line-height:70rpx;
  142. border-radius:6rpx;
  143. color:#333;
  144. border:1px solid #e5e5e5;
  145. }
  146. }
  147. .right-button-box{
  148. margin-left:20rpx;
  149. width:140rpx;
  150. height:70rpx;
  151. line-height:70rpx;
  152. text-align: center;
  153. border-radius:6rpx;
  154. color:#fff;
  155. background-color: #0183FA;
  156. border:1px solid #0183FA;
  157. }
  158. .right-button-box-2{
  159. margin-left:20rpx;
  160. width:140rpx;
  161. height:70rpx;
  162. line-height:70rpx;
  163. text-align: center;
  164. border-radius:6rpx;
  165. color:#999;
  166. border:1px solid #e5e5e5;
  167. }
  168. }
  169. }
  170. .list-max-big-box{
  171. flex:1;
  172. display:flex;
  173. flex-direction:column;
  174. overflow: scroll;
  175. padding-bottom:80rpx;
  176. .list-for-max-big-box{
  177. margin:20rpx 0 0;
  178. padding:20rpx;
  179. background-color: #fff;
  180. .top-title-box{
  181. display:flex;
  182. line-height:60rpx;
  183. view{
  184. flex:1;
  185. }
  186. view:nth-child(1){
  187. color:#333;
  188. }
  189. view:nth-child(2){
  190. text-align: right;
  191. color:#888;
  192. }
  193. }
  194. .text-p{
  195. color:#888;
  196. line-height:60rpx;
  197. }
  198. .bottom-title-box{
  199. display:flex;
  200. line-height:60rpx;
  201. view{
  202. flex:1;
  203. }
  204. view:nth-child(1){
  205. color:#888;
  206. }
  207. view:nth-child(2){
  208. text-align: right;
  209. color:#888;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. </style>