From c6f66680cd57adc00f4146dbbc9a2a99975bdfdd Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Mon, 30 Dec 2024 18:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E6=8C=87=E8=A1=8C=E3=80=81=E9=87=8D?= =?UTF-8?q?=E7=82=B9=E5=AF=B9=E8=B1=A1=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84?= =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/departMaping.ts | 28 ++++ src/views/system/Depart.vue | 100 ++++++------ src/views/system/DepartMaping.vue | 254 +++++++++++++++++++++++++++++ src/views/work/BatchDistribute.vue | 19 ++- 4 files changed, 346 insertions(+), 55 deletions(-) create mode 100644 src/api/system/departMaping.ts create mode 100644 src/views/system/DepartMaping.vue diff --git a/src/api/system/departMaping.ts b/src/api/system/departMaping.ts new file mode 100644 index 0000000..1474777 --- /dev/null +++ b/src/api/system/departMaping.ts @@ -0,0 +1,28 @@ +import request from "@/api/request"; + +export function listDepartMaping(source, query) { + return request.get({ + url: '/depart/maping/' + source, + query + }); +} + +export function addDepartMaping(body) { + return request.post({ + url: '/depart/maping', + body + }); +} + +export function updateDepartMaping(body) { + return request.put({ + url: '/depart/maping', + body + }); +} + +export function delDepartMaping(id) { + return request.del({ + url: '/depart/maping/' + id + }); +} diff --git a/src/views/system/Depart.vue b/src/views/system/Depart.vue index 7417461..f0f999b 100644 --- a/src/views/system/Depart.vue +++ b/src/views/system/Depart.vue @@ -74,50 +74,44 @@
- - - - - - - - - - - - - - - - - - - -
- 查询 - 重置 -
-
-
-
+ + + + + + + + + + + + + + + + + + +
+ 查询 + 重置 +
+
+
@@ -244,11 +238,17 @@ :headers="{ Authorization: getToken() }" :show-file-list="false" @success="handleSuccess" - accept="image/*" > - -
+ +
上传照片
@@ -413,10 +413,10 @@ async function submit() { function handleSuccess(result, file) { if (result.code !== 200) { - feedback.msgError('上传失败') - return + feedback.msgError("上传失败"); + return; } - form.value.img = result.data.filePath + form.value.img = result.data.filePath; } \ No newline at end of file diff --git a/src/views/work/BatchDistribute.vue b/src/views/work/BatchDistribute.vue index 029847d..2864f44 100644 --- a/src/views/work/BatchDistribute.vue +++ b/src/views/work/BatchDistribute.vue @@ -6,16 +6,25 @@ + + + + + + + + -