From de019eee974f69a54b360297fd5d5b93f27497f9 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 08 十一月 2024 09:43:22 +0800
Subject: [PATCH] 模型运行

---
 src/api/data/plan/item/index.ts |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/api/data/plan/item/index.ts b/src/api/data/plan/item/index.ts
index 897a453..e42e999 100644
--- a/src/api/data/plan/item/index.ts
+++ b/src/api/data/plan/item/index.ts
@@ -17,6 +17,12 @@
   itemCategory: string
 }
 
+export interface PlanChartReqVO {
+  itemNos?: [],
+  start?: Date,
+  end?: Date,
+}
+
 // 查询列表
 export const getItemPage = (params: PageParam) => {
   return request.get({ url: '/data/plan-item/page', params })
@@ -47,9 +53,12 @@
   return request.get({ url: '/data/plan-item/getList', params})
 }
 
-export const validateAsNumber = (rule, value, callback) => {
-  const regex = /^(\-|\+)?\d+(\.\d+)?$/;
-  if (!regex.test(value)) {
-    callback(new Error('请输入数字!'));
-  }
+// 查询Plan图表
+export const getPlanChart = (data: PlanChartReqVO) => {
+  return request.post({ url: '/data/api/query-plans/chart', data })
+}
+
+// 导出Plan值
+export const exportPlanValue = (data: PlanChartReqVO) => {
+  return request.post({ url: '/data/api/export-plan/history-value', data })
 }

--
Gitblit v1.9.3