东驰前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

50 lines
1.4 KiB

import request from '@/config/axios'
export interface CellCoreVO {
id: number
acoreThi: string
acoreWid: number
bcoreThi: string
bcoreWid: number
}
// 查询battery_cell_core列表
export const getCellCorePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/battery/cellCore/senior', data })
} else {
return await request.get({ url: `/battery/cellCore/page`, params })
}
}
// 查询battery_cell_core详情
export const getCellCore = async (id: number) => {
return await request.get({ url: `/battery/cellCore/get?id=` + id })
}
// 新增battery_cell_core
export const createCellCore = async (data: CellCoreVO) => {
return await request.post({ url: `/battery/cellCore/create`, data })
}
// 修改battery_cell_core
export const updateCellCore = async (data: CellCoreVO) => {
return await request.put({ url: `/battery/cellCore/update`, data })
}
// 删除battery_cell_core
export const deleteCellCore = async (id: number) => {
return await request.delete({ url: `/battery/cellCore/delete?id=` + id })
}
// 导出battery_cell_core Excel
export const exportCellCore = async (params) => {
return await request.download({ url: `/battery/cellCore/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/battery/cellCore/get-import-template' })
}