patrolScheme.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="container">
  3. <view class="title">巡检计划</view>
  4. <view class="item-box">
  5. <view hover-class="navigator-hover" class="item">
  6. <view class="label">待执行计划</view>
  7. <view class="count u-line-1">{{ statistics.plan_start }}</view>
  8. </view>
  9. <view hover-class="navigator-hover" class="item">
  10. <view class="label">进行中计划</view>
  11. <view class="count u-line-1">{{ statistics.plan_start }}</view>
  12. </view>
  13. <!-- <view hover-class="navigator-hover" class="item">
  14. <view class="label">巡检派工</view>
  15. <view class="count u-line-1">3</view>
  16. </view> -->
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'patrolScheme',
  23. data() {
  24. return {
  25. statistics: {
  26. plan_in: 0,
  27. plan_start: 0
  28. }
  29. };
  30. },
  31. created() {
  32. this.getDetail()
  33. },
  34. methods: {
  35. getDetail() {
  36. this.$Http.basic({
  37. "id": 20231027101302,
  38. "content": {}
  39. }).then(res => {
  40. console.log("巡检计划", res)
  41. if (this.cutoff(res.msg)) return;
  42. this.statistics = res.data;
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .container {
  50. width: 355px;
  51. height: 124px;
  52. padding: 10px;
  53. box-sizing: border-box;
  54. border-radius: 4px;
  55. background: #FFFFFF;
  56. margin: 0 auto;
  57. margin-top: 10px;
  58. .title {
  59. line-height: 22px;
  60. font-size: 16px;
  61. font-family: PingFang SC-Medium, PingFang SC;
  62. font-weight: bold;
  63. color: #333333;
  64. }
  65. .item-box {
  66. display: flex;
  67. // justify-content: space-between;
  68. margin-top: 10px;
  69. .item {
  70. width: 105px;
  71. height: 72px;
  72. background: #EFF4FA;
  73. border-radius: 4px;
  74. padding: 10px;
  75. box-sizing: border-box;
  76. margin-right: 10px;
  77. .label {
  78. line-height: 20px;
  79. font-size: 14px;
  80. font-family: PingFang SC-Regular, PingFang SC;
  81. color: #333333;
  82. }
  83. .count {
  84. line-height: 22px;
  85. font-size: 16px;
  86. font-family: PingFang SC-Medium, PingFang SC;
  87. font-weight: bold;
  88. color: #3874F6;
  89. margin-top: 10px;
  90. }
  91. }
  92. }
  93. }
  94. </style>