heli-mes/mes-ui/mes-ui-admin-vue3/src/api/heli/bdgzsomthing/index.ts
2025-02-08 16:55:20 +08:00

80 lines
2.2 KiB
TypeScript

import request from '@/config/axios'
export interface bdgzsomthingVO {
id: number
click: string
clickid: string
thingname: string
things: string
level: string
showname: Date
dborgz: string
yesorno: string
attr1: string
attr2: string
attr3: string
attr4: string
attr5: string
clicktime: string
nowtime: Date
attr6: Date
attr7: Date
attr8: Date
attr9: string
attr10: Date
attr11: string
attr12: string
attr13: string
attr14: string
attr15: string
}
// 查询待办关注分页
export const getbdgzsomthingPage = async (params) => {
return await request.get({ url: `/heli/bdgzsomthing/page`, params })
}
// 查询待办关注详情
export const getbdgzsomthing = async (id: number) => {
return await request.get({ url: `/heli/bdgzsomthing/get?id=` + id })
}
// 新增待办关注
export const createbdgzsomthing = async (data: bdgzsomthingVO) => {
return await request.post({ url: `/heli/bdgzsomthing/create`, data })
}
// 修改待办关注
export const updatebdgzsomthing = async (data: bdgzsomthingVO) => {
return await request.put({ url: `/heli/bdgzsomthing/update`, data })
}
// 删除待办关注
export const deletebdgzsomthing = async (id: number) => {
return await request.delete({ url: `/heli/bdgzsomthing/delete?id=` + id })
}
// 只查看
export const updatebdgzsomthingbyidone = async (id: number) => {
return await request.put({ url: `/heli/bdgzsomthing/updatebdgzsomthingbyid?id=` + id })
}
export const deletebdgzsByThings = async (things:string) =>{
return await request.delete({url:'/heli/bdgzsomthing/deletebdgzsByThings?things='+things})
}
export const deleteByIdNew = async (id:number) =>{
return await request.delete({url:'/heli/bdgzsomthing/deleteByIdNew?id='+id})
}
export const deleteByIdNew1 = async (id:number) =>{
return await request.delete({url:'/heli/bdgzsomthing/deleteByIdNew1?id='+id})
}
//查看+取消
export const updatebdgzsomthingbyidoneandok = async (id: number) => {
return await request.put({ url: `/heli/bdgzsomthing/updatebdgzsomthingbyidok?id=` + id })
}
// 导出待办关注 Excel
export const exportbdgzsomthing = async (params) => {
return await request.download({ url: `/heli/bdgzsomthing/export-excel`, params })
}