patrolScheme.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. },
  33. methods: {
  34. getDetail() {
  35. this.$Http.basic({
  36. "id": 20231027101302,
  37. "content": {}
  38. }).then(res => {
  39. console.log("巡检计划", res)
  40. if (this.cutoff(res.msg)) return;
  41. this.statistics = res.data;
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .container {
  49. width: 355px;
  50. height: 124px;
  51. padding: 10px;
  52. box-sizing: border-box;
  53. border-radius: 4px;
  54. background: #FFFFFF;
  55. margin: 0 auto;
  56. margin-top: 10px;
  57. .title {
  58. line-height: 22px;
  59. font-size: 16px;
  60. font-family: PingFang SC-Medium, PingFang SC;
  61. font-weight: bold;
  62. color: #333333;
  63. }
  64. .item-box {
  65. display: flex;
  66. // justify-content: space-between;
  67. margin-top: 10px;
  68. .item {
  69. width: 105px;
  70. height: 72px;
  71. background: #EFF4FA;
  72. border-radius: 4px;
  73. padding: 10px;
  74. box-sizing: border-box;
  75. margin-right: 10px;
  76. .label {
  77. line-height: 20px;
  78. font-size: 14px;
  79. font-family: PingFang SC-Regular, PingFang SC;
  80. color: #333333;
  81. }
  82. .count {
  83. line-height: 22px;
  84. font-size: 16px;
  85. font-family: PingFang SC-Medium, PingFang SC;
  86. font-weight: bold;
  87. color: #3874F6;
  88. margin-top: 10px;
  89. }
  90. }
  91. }
  92. }
  93. </style>