gaoluyang
2025-12-09 b02cd77eb78d973c1eb11ebf03d7d5d71b02aa65
src/views/energyManagement/gasManagement/index.vue
@@ -225,12 +225,12 @@
        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item label="设计压力(MPa)" prop="designPressure">
              <el-input-number v-model="deviceForm.designPressure" :min="0" :precision="2" style="width: 100%" />
              <el-input-number v-model="deviceForm.designPressure" :min="0" style="width: 100%" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="容积(m³)" prop="volume">
              <el-input-number v-model="deviceForm.volume" :min="0" :precision="2" style="width: 100%" />
              <el-input-number v-model="deviceForm.volume" :min="0" style="width: 100%" />
            </el-form-item>
          </el-col>
        </el-row>
@@ -295,7 +295,7 @@
// 模拟数据生成
const generateMockData = () => {
  // 更新统计数据
  totalDevices.value = Math.floor(Math.random() * 10) + 15 // 15-25台设备
  totalDevices.value = Math.floor(Math.random() * 8) // 0-7台设备
  dailyConsumption.value = Math.floor(Math.random() * 100) + 200 // 200-300 m³
  monthlyConsumption.value = Math.floor(Math.random() * 2000) + 5000 // 5000-7000 m³
  gasUnitPrice.value = (Math.random() * 2 + 3).toFixed(2) // 3-5元/m³