消毒机设备
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

3 weeks ago
3 weeks ago
3 weeks ago
  1. <script lang="ts" setup>
  2. import { useFormulaStore } from '@/stores/formulaStore'
  3. // import homeRound from 'assets/images/home/home-round.svg'
  4. import { ref, watchEffect } from 'vue'
  5. const formulaStore = useFormulaStore()
  6. const formulaInfo = ref()
  7. watchEffect(() => {
  8. formulaInfo.value = formulaStore.selectedFormulaInfo || formulaStore.currentSelectedFormulaInfo
  9. })
  10. </script>
  11. <template>
  12. <div class="home-right-title">
  13. <div>
  14. <div v-if="formulaInfo && formulaInfo.name" class="title-formula">
  15. <el-icon style="color: #31cb7a; font-size: 1.5rem">
  16. <SuccessFilled />
  17. </el-icon>
  18. <div>{{ formulaInfo.name }}</div>
  19. </div>
  20. </div>
  21. <div v-if="formulaInfo && formulaInfo.injection_pump_speed" class="title-spend">
  22. <span>速率</span>
  23. <span style="color: #31CB7A">{{ formulaInfo.injection_pump_speed }}</span>g/分钟
  24. </div>
  25. </div>
  26. </template>
  27. <style lang="scss" scoped>
  28. .home-right-title{
  29. display: grid;
  30. grid-template-columns: 1fr 1fr;
  31. font-size: 1.5rem;
  32. .title-formula{
  33. display: flex;
  34. justify-self: start;
  35. align-items: center;
  36. gap: 5px;
  37. padding: 10px;
  38. font-size: 1.5rem;
  39. }
  40. .title-spend{
  41. justify-self: end;
  42. display: flex;
  43. align-items: center;
  44. gap: 5px;
  45. padding: 10px;
  46. font-size: 1.5rem;
  47. }
  48. }
  49. </style>