RiskIdentification.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class="risk-identification">
  3. <div class="title">
  4. <span class="line"></span>
  5. <span class="text">风险的识别与管控</span>
  6. </div>
  7. <div class="risk-identification__content">
  8. <div class="check-count">
  9. <span class="name">安全生产检查</span>
  10. <span class="value">{{ checkCount }}</span>
  11. </div>
  12. <div class="check-result">
  13. <div class="check-result__item">
  14. <span class="item-name">今日危险作业数</span>
  15. <span class="item-value">{{ hazardousWorkCount }}</span>
  16. </div>
  17. <div class="check-result__item">
  18. <span class="item-name">今日施工作业数</span>
  19. <span class="item-value">{{ constructionWorkCount }}</span>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script setup lang="ts">
  26. import { onMounted, ref } from 'vue';
  27. const checkCount = ref<number>(0);
  28. const hazardousWorkCount = ref<number>(0);
  29. const constructionWorkCount = ref<number>(0);
  30. onMounted(() => {
  31. checkCount.value = 270;
  32. hazardousWorkCount.value = 0;
  33. constructionWorkCount.value = 0;
  34. });
  35. </script>
  36. <style scoped lang="scss">
  37. .title {
  38. display: flex;
  39. align-items: center;
  40. gap: 10px;
  41. margin-bottom: 16px;
  42. .line {
  43. width: 3px;
  44. height: 16px;
  45. background: #1777ff;
  46. }
  47. .text {
  48. font-weight: 500;
  49. font-size: 16px;
  50. color: #000000;
  51. line-height: 22px;
  52. }
  53. }
  54. .risk-identification__content {
  55. width: 310px;
  56. height: 140px;
  57. background: linear-gradient(90deg, #ebf3ff 0%, #fafcff 100%);
  58. border-radius: 4px;
  59. margin: 0 10px;
  60. .check-count {
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. padding: 14px 26px 14px 12px;
  65. border-bottom: 1px solid rgba(#979797, 0.11);
  66. .name {
  67. font-weight: 500;
  68. font-size: 16px;
  69. color: #333333;
  70. line-height: 22px;
  71. }
  72. .value {
  73. font-family: DINAlternate;
  74. font-weight: 600;
  75. font-size: 16px;
  76. color: #333333;
  77. line-height: 19px;
  78. }
  79. }
  80. .check-result {
  81. display: flex;
  82. align-items: center;
  83. justify-content: space-between;
  84. padding: 20px 16px 19px 16px;
  85. .check-result__item {
  86. display: flex;
  87. flex-direction: column;
  88. gap: 4px;
  89. .item-name {
  90. font-weight: 400;
  91. font-size: 14px;
  92. color: #666666;
  93. line-height: 20px;
  94. }
  95. .item-value {
  96. font-family: DINAlternate;
  97. font-weight: 600;
  98. font-size: 22px;
  99. color: #333333;
  100. line-height: 26px;
  101. }
  102. }
  103. }
  104. }
  105. </style>