inspectionFunc.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <!-- 巡查管护功能区 -->
  3. <view class="inspection-func-box">
  4. <view class="inspection-func-title">
  5. 巡查管护
  6. </view>
  7. <view class="inspection-func-items">
  8. <view class="inspection-func-item" v-for="(item,index) in inspectionFuncList" :key="index"
  9. @tap="handleClick(item)">
  10. <view class="icon">
  11. <image style="width: 120rpx; height: 120rpx" :src="`/static/images/index/${item.icon}.svg`"
  12. mode="scaleToFill"></image>
  13. </view>
  14. <view class="title">
  15. {{item.title}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script setup>
  22. const inspectionFuncList = [{
  23. title: "签到",
  24. icon: "签到",
  25. page: 'Deploy',
  26. bgc: 0
  27. },
  28. {
  29. title: "巡检计划制定",
  30. icon: "巡检计划制定",
  31. page: 'InspectionPlan',
  32. bgc: 0
  33. },
  34. {
  35. title: "巡检任务",
  36. icon: "巡检任务",
  37. page: 'Deploy',
  38. bgc: 0
  39. },
  40. {
  41. title: "巡查",
  42. icon: "巡查",
  43. page: 'Deploy',
  44. bgc: 0
  45. },
  46. {
  47. title: "隐患上报",
  48. icon: "隐患上报",
  49. page: 'Deploy',
  50. bgc: 0
  51. },
  52. {
  53. title: "隐患审核",
  54. icon: "隐患审核",
  55. page: 'Deploy',
  56. bgc: 1
  57. },
  58. {
  59. title: "隐患处理",
  60. icon: "隐患处理",
  61. page: 'Deploy',
  62. bgc: 1
  63. },
  64. {
  65. title: "隐患查询",
  66. icon: "隐患查询",
  67. page: 'Deploy',
  68. bgc: 1
  69. }
  70. ]
  71. const handleClick = (item) => {
  72. uni.navigateTo({
  73. url:`/pages/index/pages/${item.page}/index`
  74. })
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .inspection-func-box {
  79. margin-top: 24rpx;
  80. .inspection-func-title {
  81. font-family: Source Han Sans;
  82. font-size: 40rpx;
  83. font-weight: 500;
  84. font-feature-settings: "kern" on;
  85. color: $uni-text-color;
  86. margin-bottom: 16rpx;
  87. }
  88. .inspection-func-items {
  89. padding: 40rpx;
  90. border-radius: 24rpx;
  91. background: #FFFFFF;
  92. display: flex;
  93. flex-wrap: wrap;
  94. .inspection-func-item {
  95. display: flex;
  96. flex-direction: column;
  97. margin-bottom: 40rpx;
  98. align-items: center;
  99. flex: 0 0 33.3%;
  100. &:nth-last-of-type(-n+3) {
  101. margin-bottom: 0;
  102. }
  103. .icon {
  104. width: 120rpx;
  105. height: 120rpx;
  106. }
  107. .title {
  108. font-family: Source Han Sans;
  109. font-size: 32rpx;
  110. font-weight: 500;
  111. font-feature-settings: "kern" on;
  112. color: $uni-text-color;
  113. }
  114. }
  115. }
  116. }
  117. </style>