Browse Source

fix: 秒改为分钟

master
guoapeng 1 week ago
parent
commit
715834fb34
  1. 2
      src/components/home/HomeFormula.vue
  2. 2
      src/libs/constant.ts
  3. 2
      src/stores/formulaStore.ts
  4. 2
      src/types/formula.d.ts
  5. 10
      src/views/home/chart.vue

2
src/components/home/HomeFormula.vue

@ -103,7 +103,7 @@ watchEffect(async () => {
:deep(.el-descriptions__cell) {
display: flex;
align-items: center;
background: #fff;
background: rgba(255, 255, 255, 0.7);
margin-bottom: 5px;
padding: 5px !important;
.el-descriptions__label {

2
src/libs/constant.ts

@ -130,7 +130,7 @@ export const FORMULA_CONFIG_DATA: Formula.FormulaConfig[] = [
is_visible_in_rt_page: true,
is_visible_in_setting_page: true,
name_ch: '预热时间',
setting_id: 'pre_heat_time_s',
setting_id: 'pre_heat_time_min',
val: 120,
val_lower_limit: 0,
val_type: 'int',

2
src/stores/formulaStore.ts

@ -70,7 +70,7 @@ export const useFormulaStore = defineStore('formula', () => {
continued_gs: 'ppm',
stoped_gs: 'ppm',
max_humidity: '%RH',
pre_heat_time_s: '秒',
pre_heat_time_min: '分钟',
continued_humi: '%RH',
stoped_humi: '%RH',
continued_satur: '%RS',

2
src/types/formula.d.ts

@ -6,7 +6,7 @@ declare namespace Formula {
injection_pump_speed: string | number
loglevel: string | number
max_humidity: string | number
pre_heat_time_s: string | number
pre_heat_time_min: string | number
proportional_valve_default_value: string | number
stoped_gs: string | number
stoped_humi: string | number

10
src/views/home/chart.vue

@ -179,11 +179,11 @@ const formatSeconds = (seconds: number) => {
<template>
<main class="main-content">
<el-descriptions :column="4">
<el-descriptions-item label="设定注射速率">
<el-tag>
<span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{ rate }}</span>g/min
</el-tag>
</el-descriptions-item>
<!-- <el-descriptions-item label="设定注射速率"> -->
<!-- <el-tag> -->
<!-- <span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{ rate }}</span>g/min -->
<!-- </el-tag> -->
<!-- </el-descriptions-item> -->
<el-descriptions-item label="实时注射速率">
<el-tag>
<span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{

Loading…
Cancel
Save