From 19c73f664c52b12c380171405135cb228f0e765e Mon Sep 17 00:00:00 2001 From: hzz Date: Sat, 17 Jun 2023 17:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=88=E7=8E=87=E6=95=88?= =?UTF-8?q?=E7=9B=8A=20=E6=B7=BB=E5=8A=A0=E8=AF=B7=E6=B1=82=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http/waterHouse/index.ts | 15 +++++++++++++++ src/views/Waterhouse/index.vue | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/http/waterHouse/index.ts diff --git a/src/http/waterHouse/index.ts b/src/http/waterHouse/index.ts new file mode 100644 index 0000000..168d78d --- /dev/null +++ b/src/http/waterHouse/index.ts @@ -0,0 +1,15 @@ +/* + * @FilePath: \wwwd:\code\screenFront\src\http\realtimeSecurity\index.ts + * @Author: 王路平 + * @文件版本: V1.0.0 + * @Date: 2023-02-14 08:45:45 + * @Description: + * + * 版权信息 : 2023 by ${再登软件}, All Rights Reserved. + */ +import {get,post} from "@/utils/http" + +//气压 +export function getWaterFlowInfo(type:string){ + return get('/waterFlow/getWaterFlowInfo',{type}) +} \ No newline at end of file diff --git a/src/views/Waterhouse/index.vue b/src/views/Waterhouse/index.vue index 71f207e..f778e19 100644 --- a/src/views/Waterhouse/index.vue +++ b/src/views/Waterhouse/index.vue @@ -173,8 +173,8 @@ async function getWaterFlowInfoFun() { allData.out = data.out allData.use = data.use allData.currentCount = data.currentCount - allData.xl = data.xl - allData.xy = data.xy + allData.xl = data.xl.toFixed(1) + allData.xy = data.xy.toFixed(1) chart.setOption({ xAxis: { data: data.date }, series: [