info.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <view class="processWrapper ">
  3. <block v-if="TabCur==0">
  4. <view class="processList" style="margin-top:0">
  5. <view class="cu-list menu-avatar ">
  6. <view class="cu-item" v-for="(item,index) in unporcessList" :key="index" @tap="goUnprocessDetail">
  7. <view class="cu-avatar lg" style="background-image:url(../../static/process-icon.png);"></view>
  8. <view class="content">
  9. <view class="pro-title">
  10. <view class="cut">{{item.title}}</view>
  11. </view>
  12. <view class="pro-des ">
  13. <view class="text-cut">
  14. {{item.subTitle}}
  15. </view>
  16. </view>
  17. <view class="pro-date ">{{item.time}}</view>
  18. </view>
  19. <view class="action">
  20. <view class="unProcess">{{item.status}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </block>
  26. <block v-if="TabCur==1">
  27. <view class="processList">
  28. <view class="cu-list menu-avatar ">
  29. <view class="cu-item" v-for="(item,index) in processedList" :key="index" @tap="goProcessedDetail">
  30. <view class="cu-avatar lg" style="background-image:url(../../static/processed-icon.png);"></view>
  31. <view class="content">
  32. <view class="pro-title">
  33. <view class="cut">{{item.title}}</view>
  34. </view>
  35. <view class="pro-des ">
  36. <view class="text-cut">
  37. {{item.subTitle}}
  38. </view>
  39. </view>
  40. <view class="pro-date ">{{item.time}}</view>
  41. </view>
  42. <view class="action">
  43. <view class="processed">{{item.status}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </block>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. unporcessList:[{
  56. title:'母线停电',
  57. subTitle:'动作',
  58. status:'未处理',
  59. time:'2020-01-08 15:15:12'
  60. },{
  61. title:'母线停电2',
  62. subTitle:'复归',
  63. status:'未处理',
  64. time:'2020-01-08 15:15:12'
  65. },{
  66. title:'母线停电3',
  67. subTitle:'动作',
  68. status:'未处理',
  69. time:'2020-01-08 15:15:12'
  70. },{
  71. title:'母线停电4',
  72. subTitle:'复归',
  73. status:'未处理',
  74. time:'2020-01-08 15:15:12'
  75. },{
  76. title:'母线停电5',
  77. subTitle:'复归',
  78. status:'未处理',
  79. time:'2020-01-08 15:15:12'
  80. },{
  81. title:'母线停电6',
  82. subTitle:'复归',
  83. status:'未处理',
  84. time:'2020-01-08 15:15:12'
  85. },
  86. {
  87. title:'母线停电',
  88. subTitle:'复归',
  89. status:'未处理',
  90. time:'2020-01-08 15:15:12'
  91. },
  92. {
  93. title:'母线停电',
  94. subTitle:'事件未处理测试',
  95. status:'未处理',
  96. time:'2020-01-08 15:15:12'
  97. },
  98. {
  99. title:'母线停电',
  100. subTitle:'事件未处理测试',
  101. status:'未处理',
  102. time:'2020-01-08 15:15:12'
  103. },
  104. {
  105. title:'母线停电',
  106. subTitle:'事件未处理测试',
  107. status:'未处理',
  108. time:'2020-01-08 15:15:12'
  109. }],
  110. processedList:[{
  111. title:'母线停电',
  112. subTitle:'事件已处理测试',
  113. status:'已处理',
  114. time:'2020-01-08 15:15:12'
  115. },{
  116. title:'母线停电2',
  117. subTitle:'事件已处理测试',
  118. status:'已处理',
  119. time:'2020-01-08 15:15:12'
  120. },{
  121. title:'母线停电3',
  122. subTitle:'事件已处理测试',
  123. status:'已处理',
  124. time:'2020-01-08 15:15:12'
  125. },{
  126. title:'母线停电4',
  127. subTitle:'事件已处理测试',
  128. status:'已处理',
  129. time:'2020-01-08 15:15:12'
  130. },{
  131. title:'母线停电5',
  132. subTitle:'事件已处理测试',
  133. status:'已处理',
  134. time:'2020-01-08 15:15:12'
  135. },{
  136. title:'母线停电6',
  137. subTitle:'事件已处理测试',
  138. status:'已处理',
  139. time:'2020-01-08 15:15:12'
  140. },
  141. {
  142. title:'母线停电',
  143. subTitle:'事件已处理测试',
  144. status:'已处理',
  145. time:'2020-01-08 15:15:12'
  146. },
  147. {
  148. title:'母线停电',
  149. subTitle:'事件已处理测试',
  150. status:'已处理',
  151. time:'2020-01-08 15:15:12'
  152. },
  153. {
  154. title:'母线停电',
  155. subTitle:'事件已处理测试',
  156. status:'已处理',
  157. time:'2020-01-08 15:15:12'
  158. },
  159. {
  160. title:'母线停电',
  161. subTitle:'事件已处理测试',
  162. status:'已处理',
  163. time:'2020-01-08 15:15:12'
  164. }],
  165. modalName: null,
  166. listTouchStart: 0,
  167. listTouchDirection: null,
  168. CustomBar: this.CustomBar,
  169. TabCur: 0,
  170. tabNav: ['未处理', '已处理']
  171. };
  172. },
  173. methods: {
  174. tabSelect(e) {
  175. this.TabCur = e.currentTarget.dataset.id;
  176. this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
  177. },
  178. // 页面跳转
  179. goUnprocessDetail() {
  180. uni.navigateTo({
  181. url: '/pages/unprocessDetail/unprocessDetail',
  182. success: res => {},
  183. fail: () => {},
  184. complete: () => {}
  185. });
  186. },
  187. goProcessedDetail(){
  188. uni.navigateTo({
  189. url: '/pages/processedDetail/processedDetail',
  190. success: res => {},
  191. fail: () => {},
  192. complete: () => {}
  193. });
  194. }
  195. }
  196. }
  197. </script>
  198. <style lang="scss">
  199. .processList{
  200. position:static;
  201. }
  202. </style>