|
@@ -4,6 +4,7 @@ import { EnergyCost } from '@/pages/Home/EnergyCostComparison';
|
|
|
import { EnergyDetail } from '@/pages/Home/EnergyCostDetail';
|
|
|
import { WaterQuality } from '@/pages/Home/QualityMng';
|
|
|
import { WaterAmt } from '@/pages/Home/WaterAmtMng';
|
|
|
+import { Button } from 'antd';
|
|
|
import { useState } from 'react';
|
|
|
import CostAnalysis from './CostAnalysis/CostAnalysis';
|
|
|
|
|
@@ -36,10 +37,23 @@ const OperationManage = () => {
|
|
|
key: '5',
|
|
|
children: showEnergyDetail ? (
|
|
|
<div
|
|
|
- onClick={() => {
|
|
|
- setShowEnergyDetail(!showEnergyDetail);
|
|
|
- }}
|
|
|
+ className="card-box"
|
|
|
+ style={{ padding: '0.2rem', position: 'relative' }}
|
|
|
>
|
|
|
+ <Button
|
|
|
+ style={{
|
|
|
+ position: 'absolute',
|
|
|
+ right: '0.2rem',
|
|
|
+ fontSize: '0.26rem',
|
|
|
+ height: '0.5rem',
|
|
|
+ zIndex: 1,
|
|
|
+ }}
|
|
|
+ onClick={() => {
|
|
|
+ setShowEnergyDetail(false);
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 返回
|
|
|
+ </Button>
|
|
|
<EnergyDetail />
|
|
|
</div>
|
|
|
) : (
|