From 92b92d9801f45df8e5b56f062e6d459fee4aeac5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 21 八月 2024 15:01:09 +0800
Subject: [PATCH] feat:数据中心数字增加中文字段
---
src/api/platform/point.js | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/api/platform/point.js b/src/api/platform/point.js
index 2f2e05e..54de0d7 100644
--- a/src/api/platform/point.js
+++ b/src/api/platform/point.js
@@ -70,3 +70,33 @@
params: param
})
}
+
+// 瀵煎嚭
+export function exportData(param) {
+ return request({
+ url: '/yw-point/export',
+ method: 'get',
+ params: param,
+ responseType: 'blob'
+ })
+}
+
+// 瀵煎叆
+export function importData(data, unitId) {
+ return request({
+ url: '/yw-point/import/' + unitId,
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ }
+ })
+}
+
+// 鏍规嵁鍗曚綅id鏌ユ壘鍚堝悓
+export function timeRange(unitId) {
+ return request({
+ url: '/system/contract/time/' + unitId,
+ method: 'get'
+ })
+}
--
Gitblit v1.8.0