dev-cl
parent
c91a2b608f
commit
fc71e47903
@ -0,0 +1,36 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 创建
|
||||
export const createPlan = (data) => { |
||||
return request.post({ url: '/admin-api/oa/attendance-setting/create', data, isSubmitForm: true }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updatePlan = (data) => { |
||||
return request.put({ url: '/admin-api/oa/attendance-setting/update', data }) |
||||
} |
||||
|
||||
// 修改状态
|
||||
export const updatePlanStatus = (data) => { |
||||
return request.put({ url: '/admin-api/oa/attendance-setting/status/update', data }) |
||||
} |
||||
|
||||
// 分页
|
||||
export const getPlanPage = (params) => { |
||||
return request.get({ url: '/admin-api/oa/attendance-setting/page', params }) |
||||
} |
||||
|
||||
// 列表
|
||||
export const getPlanSimpleList = (params) => { |
||||
return request.get({ url: '/admin-api/oa/attendance-setting/simple-list', params }) |
||||
} |
||||
|
||||
// 详情
|
||||
export const getPlanDetail = (id) => { |
||||
return request.get({ url: '/admin-api/oa/attendance-setting/get', params: { id } }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deletePlan = (id) => { |
||||
return request.delete({ url: '/admin-api/oa/attendance-setting/delete', params: { id } }) |
||||
} |
@ -0,0 +1,31 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 创建
|
||||
export const createEmployee = (data) => { |
||||
return request.post({ url: '/admin-api/oa/employee/create', data, isSubmitForm: true }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updateEmployee = (data) => { |
||||
return request.put({ url: '/admin-api/oa/employee/update', data }) |
||||
} |
||||
|
||||
// 修改状态
|
||||
export const updateEmployeeStatus = (data) => { |
||||
return request.put({ url: '/admin-api/oa/employee/status/update', data }) |
||||
} |
||||
|
||||
// 分页
|
||||
export const getEmployeePage = (params) => { |
||||
return request.get({ url: '/admin-api/oa/employee/page', params }) |
||||
} |
||||
|
||||
// 详情
|
||||
export const getEmployeeDetail = (id) => { |
||||
return request.get({ url: '/admin-api/oa/employee/get', params: { id } }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deleteEmployee = (id) => { |
||||
return request.delete({ url: '/admin-api/oa/employee/delete', params: { id } }) |
||||
} |
@ -0,0 +1,5 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
export const getSimpleAppList = async () => { |
||||
return await request.get({ url: '/admin-api/system/serviceInstance/simple-list' }) |
||||
} |
@ -1,26 +0,0 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 查询知识库列表
|
||||
export const getLibraryPage = (params) => { |
||||
return request.get({ url: '/admin-api/crm/knowledge-lib/page', params }) |
||||
} |
||||
|
||||
// 查询知识库详情
|
||||
export const getLibrary = (id) => { |
||||
return request.get({ url: '/admin-api/crm/knowledge-lib/get?id=' + id }) |
||||
} |
||||
|
||||
// 新增知识库
|
||||
export const createLibrary = (data) => { |
||||
return request.post({ url: '/admin-api/crm/knowledge-lib/create', data }) |
||||
} |
||||
|
||||
// 修改知识库
|
||||
export const updateLibrary = (data) => { |
||||
return request.put({ url: '/admin-api/crm/knowledge-lib/update', data }) |
||||
} |
||||
|
||||
// 删除知识库
|
||||
export const deleteLibrary = (id) => { |
||||
return request.delete({ url: '/admin-api/crm/knowledge-lib/delete?id=' + id }) |
||||
} |
@ -1,26 +0,0 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 查询资源列表
|
||||
export const getResourcePage = (params) => { |
||||
return request.get({ url: '/admin-api/crm/knowledge-lib-info/page', params }) |
||||
} |
||||
|
||||
// 查询资源详情
|
||||
export const getResource = (id) => { |
||||
return request.get({ url: '/admin-api/crm/knowledge-lib-info/get?id=' + id }) |
||||
} |
||||
|
||||
// 新增资源
|
||||
export const createResource = (data) => { |
||||
return request.post({ url: '/admin-api/crm/knowledge-lib-info/create', data }) |
||||
} |
||||
|
||||
// 修改资源
|
||||
export const updateResource = (data) => { |
||||
return request.put({ url: '/admin-api/crm/knowledge-lib-info/update', data }) |
||||
} |
||||
|
||||
// 删除资源
|
||||
export const deleteResource = (id) => { |
||||
return request.delete({ url: '/admin-api/crm/knowledge-lib-info/delete?id=' + id }) |
||||
} |
Loading…
Reference in new issue