设备类型维护页面,表单开发中添加设备类型下拉框
This commit is contained in:
40
src/api/system/sblx/index.ts
Normal file
40
src/api/system/sblx/index.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface SblxVO {
|
||||
id?: number
|
||||
industryName: string
|
||||
industryCode: string
|
||||
parentId: number
|
||||
sort: number
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 查询设备类型(精简)列表
|
||||
export const getSimpleSblxList = async (): Promise<SblxVO[]> => {
|
||||
return await request.get({ url: '/system/sblx/simple-list' })
|
||||
}
|
||||
|
||||
// 查询设备类型列表
|
||||
export const getSblxPage = async (params: PageParam) => {
|
||||
return await request.get({ url: '/system/sblx/list', params })
|
||||
}
|
||||
|
||||
// 查询设备类型详情
|
||||
export const getSblx = async (id: number) => {
|
||||
return await request.get({ url: '/system/sblx/get?id=' + id })
|
||||
}
|
||||
|
||||
// 新增设备类型
|
||||
export const createSblx = async (data: SblxVO) => {
|
||||
return await request.post({ url: '/system/sblx/create', data: data })
|
||||
}
|
||||
|
||||
// 修改设备类型
|
||||
export const updateSblx = async (params: SblxVO) => {
|
||||
return await request.put({ url: '/system/sblx/update', data: params })
|
||||
}
|
||||
|
||||
// 删除设备类型
|
||||
export const deleteSblx = async (id: number) => {
|
||||
return await request.delete({ url: '/system/sblx/delete?id=' + id })
|
||||
}
|
||||
Reference in New Issue
Block a user