Browse Source

Merge remote-tracking branch 'origin/master'

master
DX 2 months ago
parent
commit
4f2a0242ef
  1. 12
      src/api/enterprises/index.ts

12
src/api/enterprises/index.ts

@ -22,31 +22,31 @@ export interface EnterprisesVO {
export const EnterprisesApi = { export const EnterprisesApi = {
// 查询企业分页 // 查询企业分页
getEnterprisesPage: async (params: any) => { getEnterprisesPage: async (params: any) => {
return await request.get({ url: `/system/enterprise/page`, params }) return await request.get({ url: `/system/enterprises/page`, params })
}, },
// 查询企业详情 // 查询企业详情
getEnterprises: async (id: number) => { getEnterprises: async (id: number) => {
return await request.get({ url: `/system/enterprise/get?id=` + id }) return await request.get({ url: `/system/enterprises/get?id=` + id })
}, },
// 新增企业 // 新增企业
createEnterprises: async (data: EnterprisesVO) => { createEnterprises: async (data: EnterprisesVO) => {
return await request.post({ url: `/system/enterprise/create`, data }) return await request.post({ url: `/system/enterprises/create`, data })
}, },
// 修改企业 // 修改企业
updateEnterprises: async (data: EnterprisesVO) => { updateEnterprises: async (data: EnterprisesVO) => {
return await request.put({ url: `/system/enterprise/update`, data }) return await request.put({ url: `/system/enterprises/update`, data })
}, },
// 删除企业 // 删除企业
deleteEnterprises: async (id: number) => { deleteEnterprises: async (id: number) => {
return await request.delete({ url: `/system/enterprise/delete?id=` + id }) return await request.delete({ url: `/system/enterprises/delete?id=` + id })
}, },
// 导出企业 Excel // 导出企业 Excel
exportEnterprises: async (params) => { exportEnterprises: async (params) => {
return await request.download({ url: `/system/enterprise/export-excel`, params }) return await request.download({ url: `/system/enterprises/export-excel`, params })
}, },
} }

Loading…
Cancel
Save