From bfa6f739757e9473edfc675a2ee42a51bc2e5069 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com>
Date: Sat, 24 Aug 2024 09:57:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/user.ts | 33 ++++-
src/components/pagination/index.vue | 1 +
src/views/data/config/index.vue | 144 +++++++++++-----------
src/views/data/dict/index.vue | 153 +++++++++++++-----------
src/views/file/emailTemplate/edit.vue | 2 +-
src/views/file/fileTemplate/edit.vue | 2 +-
src/views/file/messageTemplate/edit.vue | 2 +-
src/views/file/smsTemplate/edit.vue | 2 +-
src/views/logger/emailLog/columns.ts | 6 +-
src/views/logger/emailLog/edit.vue | 14 ++-
src/views/login/PhoneForm.vue | 6 +-
src/views/system/user/index.vue | 54 +++------
src/views/system/user/userUpload.vue | 103 ++++++++++++++++
13 files changed, 331 insertions(+), 191 deletions(-)
create mode 100644 src/views/system/user/userUpload.vue
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index abc75f9..603a0ba 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -62,7 +62,18 @@ export function changePassword(data) {
}
);
}
-
+/**
+ * @description: 获取短信验证码
+ */
+export function sendSms(data) {
+ return http.request(
+ {
+ url: `/sms/sendSms`,
+ method: 'POST',
+ data
+ }
+ );
+}
/**
* @description: 用户登出
*/
@@ -142,6 +153,16 @@ export function userBatchDelete(data:any) {
data
});
}
+/**
+ * @description: 导入用户
+ */
+export function userImport(data) {
+ return http.request({
+ url: '/user/import',
+ method: 'POST',
+ data
+ });
+}
/**
* @description: 导出用户
*/
@@ -153,6 +174,16 @@ export function userExport() {
isTransformResponse: false,
});
}
+
+/**
+ * @description: 下载模板
+ */
+export function getTemplateByCode(code:any) {
+ return http.request({
+ url: '/file/template/getTemplateByCode/'+code,
+ method: 'GET'
+ });
+}
/**
* @description: 城市列表
*/
diff --git a/src/components/pagination/index.vue b/src/components/pagination/index.vue
index c110ab6..90ef093 100644
--- a/src/components/pagination/index.vue
+++ b/src/components/pagination/index.vue
@@ -8,6 +8,7 @@
:layout="layout"
:total="pager.count"
:hide-on-single-page="false"
+ background
@size-change="sizeChange"
@current-change="pageChange"
>
diff --git a/src/views/data/config/index.vue b/src/views/data/config/index.vue
index 9446caa..7190792 100644
--- a/src/views/data/config/index.vue
+++ b/src/views/data/config/index.vue
@@ -1,7 +1,7 @@