From 576e5c586bb237cc591bfa5ef67c96eda3b7cc15 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 16 Oct 2024 18:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/process/rest.js | 10 ++ src/views/process/leaveImport/index.vue | 117 ++++++++++++++---------- src/views/process/outApply/index.vue | 10 +- src/views/process/outExam/index.vue | 14 +-- src/views/process/restApply/index.vue | 10 +- src/views/process/restExam/index.vue | 13 ++- src/views/setting/rules/index.vue | 5 +- src/views/system/dept/index.vue | 5 +- src/views/system/messages/index.vue | 71 ++++++-------- src/views/system/userInfo/index.vue | 2 +- 10 files changed, 145 insertions(+), 112 deletions(-) diff --git a/src/api/process/rest.js b/src/api/process/rest.js index 686819f..1413d26 100644 --- a/src/api/process/rest.js +++ b/src/api/process/rest.js @@ -60,4 +60,14 @@ export function delHoliday(HolidayId) { method: 'delete' }) } + +// 导出 +export function exportHoliday(query) { + return request({ + url: '/system/export/exportHoliday', + method: 'get', + responseType: 'blob', + params: query + }) +} \ No newline at end of file diff --git a/src/views/process/leaveImport/index.vue b/src/views/process/leaveImport/index.vue index 155b68a..4da7881 100644 --- a/src/views/process/leaveImport/index.vue +++ b/src/views/process/leaveImport/index.vue @@ -24,7 +24,10 @@ @click="handleExport" >导出 - + + 导入 + @@ -143,12 +146,35 @@ 关 闭 + + + + + +
将文件拖到此处,或点击上传
+
+ + 仅允许导入xls、xlsx格式文件。 + +
+
+ +
\ No newline at end of file diff --git a/src/views/system/userInfo/index.vue b/src/views/system/userInfo/index.vue index 42c7cfc..3575afa 100644 --- a/src/views/system/userInfo/index.vue +++ b/src/views/system/userInfo/index.vue @@ -87,7 +87,7 @@ - +