保安服务企业管理项目备份
zhongrj
2024-05-24 f2a74b0b28b74dc29be85ec8e6328bdd262f84b9
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"
    })
}