From f3cb18c8363ec15d8482ccb70b8b021f67881f47 Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: 星期五, 08 一月 2021 10:46:36 +0800
Subject: [PATCH] !161 修复导入数据为负浮点数时,导入结果会丢失精度问题 Merge pull request !161 from 嘿白熊/master
---
ruoyi-ui/src/api/system/user.js | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js
index 55766af..7f8db39 100644
--- a/ruoyi-ui/src/api/system/user.js
+++ b/ruoyi-ui/src/api/system/user.js
@@ -1,4 +1,5 @@
import request from '@/utils/request'
+import { praseStrEmpty } from "@/utils/ruoyi";
// 鏌ヨ鐢ㄦ埛鍒楄〃
export function listUser(query) {
@@ -12,7 +13,7 @@
// 鏌ヨ鐢ㄦ埛璇︾粏
export function getUser(userId) {
return request({
- url: '/system/user/' + userId,
+ url: '/system/user/' + praseStrEmpty(userId),
method: 'get'
})
}
@@ -40,6 +41,15 @@
return request({
url: '/system/user/' + userId,
method: 'delete'
+ })
+}
+
+// 瀵煎嚭鐢ㄦ埛
+export function exportUser(query) {
+ return request({
+ url: '/system/user/export',
+ method: 'get',
+ params: query
})
}
@@ -106,4 +116,12 @@
method: 'post',
data: data
})
-}
\ No newline at end of file
+}
+
+// 涓嬭浇鐢ㄦ埛瀵煎叆妯℃澘
+export function importTemplate() {
+ return request({
+ url: '/system/user/importTemplate',
+ method: 'get'
+ })
+}
--
Gitblit v1.9.3