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 @@ + + + + + + + + -