deviceInfo.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view>
  3. <view class="white">
  4. <view class="menu">
  5. <view class="menuItem" @tap="runningState">
  6. <view class="all">
  7. <image class="image" src="../../../static/设备菜单/运行状态@2x.png"></image>
  8. <view class="text">
  9. <text class="big">运行状态</text>
  10. <text class="small">Running state</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="menuItem" @tap="dataCurve">
  15. <view class="all">
  16. <image class="image" src="../../../static/设备菜单/数据曲线@2x.png"></image>
  17. <view class="text">
  18. <text class="big">数据曲线</text>
  19. <text class="small">Data curve</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="menuItem" @tap="parameterSetting">
  24. <view class="all">
  25. <image class="image" src="../../../static/设备菜单/参数设置@2x.png"></image>
  26. <view class="text">
  27. <text class="big">参数设置</text>
  28. <text class="small">Parameter setting</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="menuItem" @tap="systemParameter">
  33. <view class="all">
  34. <image class="image" src="../../../static/设备菜单/系统参数@2x.png"></image>
  35. <view class="text">
  36. <text class="big">系统参数</text>
  37. <text class="small">System parameter</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="menuItem" @tap="alarmRecord">
  42. <view class="all">
  43. <image class="image" src="../../../static/设备菜单/报警记录@2x.png"></image>
  44. <view class="text">
  45. <text class="big">报警记录</text>
  46. <text class="small">Alarm record</text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="menuItem" @tap="maintenanceRecord">
  51. <view class="all">
  52. <image class="image" src="../../../static/设备菜单/维保记录@2x.png"></image>
  53. <view class="text">
  54. <text class="big">维保记录</text>
  55. <text class="small">Maintenance record</text>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. data() {
  66. return {
  67. code: '',
  68. }
  69. },
  70. onLoad(e) {
  71. console.log(e);
  72. },
  73. methods: {
  74. parameterSetting(e) {
  75. let vm = this;
  76. var code = this.code.code
  77. console.log(code);
  78. uni.navigateTo({
  79. url: '/pages/parameterSetting/parameterSetting',
  80. });
  81. },
  82. systemParameter() {
  83. uni.navigateTo({
  84. url: '/pages/systemParameter/systemParameter',
  85. });
  86. },
  87. alarmRecord() {
  88. uni.navigateTo({
  89. url: '/pages/alarmRecord/alarmRecord',
  90. });
  91. },
  92. maintenanceRecord() {
  93. uni.navigateTo({
  94. url: '/pages/maintenanceRecord/maintenanceRecord',
  95. });
  96. },
  97. dataCurve() {
  98. uni.navigateTo({
  99. url: '/pages/dataCurve/dataCurve',
  100. });
  101. },
  102. runningState() {
  103. let vm = this;
  104. var code = this.code.code
  105. console.log(code);
  106. uni.navigateTo({
  107. url: '/pages/runningState/runningState',
  108. });
  109. }
  110. }
  111. }
  112. </script>
  113. <style>
  114. .all {
  115. display: flex;
  116. flex-direction: row;
  117. align-items: center;
  118. }
  119. .image {
  120. width: 68rpx;
  121. height: 68rpx;
  122. margin-left: 24rpx;
  123. }
  124. .text {
  125. display: flex;
  126. flex-direction: column;
  127. margin-left: 24rpx;
  128. line-height: 32rpx;
  129. }
  130. .big {
  131. font-size: 30rpx;
  132. }
  133. .small {
  134. font-size: 20rpx;
  135. color: #848586;
  136. }
  137. .white {
  138. height: 1316rpx;
  139. width: 702rpx;
  140. margin-top: 26rpx;
  141. margin-left: 24rpx;
  142. margin-right: 24rpx;
  143. background-color: white;
  144. border-radius: 10rpx;
  145. }
  146. .menuItem {
  147. margin-left: 24rpx;
  148. margin-top: 24rpx;
  149. display: flex;
  150. width: 319rpx;
  151. height: 160rpx;
  152. background-color: #f0f0f0;
  153. border-radius: 10rpx;
  154. }
  155. .menu {
  156. display: flex;
  157. flex-wrap: wrap;
  158. }
  159. </style>