From f2a74b0b28b74dc29be85ec8e6328bdd262f84b9 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 24 May 2024 14:35:58 +0800
Subject: [PATCH] 地址配置修改

---
 src/api/dispatch/dispatch.js |   47 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/src/api/dispatch/dispatch.js b/src/api/dispatch/dispatch.js
index e3582f2..7d8fcee 100644
--- a/src/api/dispatch/dispatch.js
+++ b/src/api/dispatch/dispatch.js
@@ -1,4 +1,4 @@
-import request from '@/router/axios';
+import request from '@/router/axios'
 
 export const getdata = (current, size, params) => {
     return request({
@@ -12,6 +12,15 @@
     })
 }
 
+export const getAlldata = (params) => {//不分页
+    return request({
+        url: '/api/dispatcherUnit/getAll',
+        method: 'get',
+        params: {
+            ...params
+        }
+    })
+}
 
 export const getDispatcherUnitByDeptId = (deptId) => {
     return request({
@@ -31,9 +40,26 @@
     })
 }
 
+export const saveDispatcher = (row) => {
+    return request({
+        url: '/api/dispatcher/saveDispatcher',
+        method: 'post',
+        data: row
+    })
+}
+
 export const update = (row) => {
     return request({
         url: '/api/dispatcherUnit/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+
+export const overDispatcher = (row) => {
+    return request({
+        url: '/api/dispatcher/over-dispatcher',
         method: 'post',
         data: row
     })
@@ -72,7 +98,16 @@
 
 export const update1 = (row) => {
     return request({
-        url: '/api/dispatcher/submit',
+        url: '/api/dispatcher/update',
+        method: 'post',
+        data: row
+    })
+}
+
+
+export const updateDispatcher = (row) => {
+    return request({
+        url: '/api/dispatcher/updateDispatcher',
         method: 'post',
         data: row
     })
@@ -86,4 +121,12 @@
             ids,
         }
     })
+}
+
+// 派遣单位行业
+export const ProfessionList = () => {
+    return request({
+        url: "/api/blade-system/dict-biz/dictionary?code=dispatchProfession",
+        method: "get"
+    })
 }
\ No newline at end of file

--
Gitblit v1.9.3