patrolManagement.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="records">
  3. <view class="records-list">
  4. <view class="records-list-item" v-for="(item, index) in list" :key="index" @click="jumpPage(item.url)">{{ item.name }}</view>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. list: [{
  13. name: '巡检记录',
  14. url: 'pages/patrolManagement/patrolRecords/patrolRecords'
  15. }, {
  16. name: '设备异常记录',
  17. url: 'pages/patrolManagement/abnormalRecords/abnormalRecords'
  18. }, {
  19. name: '巡检记录',
  20. url: 'pages/patrolManagement/patrolRecords/patrolRecords'
  21. }, {
  22. name: '巡检处置记录',
  23. url: 'pages/patrolManagement/patrolRecords/patrolRecords'
  24. }, {
  25. name: '应急处置记录',
  26. url: 'pages/patrolManagement/patrolRecords/patrolRecords'
  27. }]
  28. }
  29. },
  30. methods: {
  31. jumpPage(url) {
  32. uni.$u.route({
  33. url
  34. })
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .records {
  41. padding: 40rpx 20rpx;
  42. &-list {
  43. display: flex;
  44. flex-wrap: wrap;
  45. justify-content: space-between;
  46. &-item {
  47. width: calc(50% - 18rpx);
  48. height: 200rpx;
  49. line-height: 200rpx;
  50. text-align: center;
  51. background-color: #2871FF;
  52. border-radius: 10rpx;
  53. color: #fff;
  54. font-size: 40rpx;
  55. font-family: PingFangSC-regular;
  56. margin-bottom: 36rpx;
  57. }
  58. }
  59. }
  60. </style>