patrolManagement.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: ''
  21. }, {
  22. name: '应急处置记录',
  23. url: ''
  24. }]
  25. }
  26. },
  27. methods: {
  28. jumpPage(url) {
  29. uni.$u.route({
  30. url
  31. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .records {
  38. padding: 40rpx 20rpx;
  39. &-list {
  40. display: flex;
  41. flex-wrap: wrap;
  42. justify-content: space-between;
  43. &-item {
  44. width: calc(50% - 18rpx);
  45. height: 200rpx;
  46. line-height: 200rpx;
  47. text-align: center;
  48. background-color: #2871FF;
  49. border-radius: 10rpx;
  50. color: #fff;
  51. font-size: 40rpx;
  52. font-family: PingFangSC-regular;
  53. margin-bottom: 36rpx;
  54. }
  55. }
  56. }
  57. </style>