index.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import request from '@/config/axios'
  2. // 故障知识库 VO
  3. export interface IotInformationDbVO {
  4. id: number // 主键id
  5. deviceType: string // 设备分类
  6. failureInfluence: string // 故障影响
  7. failureSystem: string // 故障模块/影响
  8. description: string // 描述
  9. solutions: string // 解决办法
  10. remark: string // 备注
  11. processInstanceId: string // 流程实例id
  12. auditStatus: number // 审核状态
  13. }
  14. // 故障知识库 API
  15. export const IotInformationDbApi = {
  16. // 查询故障知识库分页
  17. getIotInformationDbPage: async (params: any) => {
  18. return await request.get({ url: `/rq/iot-information-db/page`, params })
  19. },
  20. // 查询故障知识库详情
  21. getIotInformationDb: async (id: number) => {
  22. return await request.get({ url: `/rq/iot-information-db/get?id=` + id })
  23. },
  24. // 新增故障知识库
  25. createIotInformationDb: async (data: IotInformationDbVO) => {
  26. return await request.post({ url: `/rq/iot-information-db/create`, data })
  27. },
  28. // 修改故障知识库
  29. updateIotInformationDb: async (data: IotInformationDbVO) => {
  30. return await request.put({ url: `/rq/iot-information-db/update`, data })
  31. },
  32. // 删除故障知识库
  33. deleteIotInformationDb: async (id: number) => {
  34. return await request.delete({ url: `/rq/iot-information-db/delete?id=` + id })
  35. },
  36. // 导出故障知识库 Excel
  37. exportIotInformationDb: async (params) => {
  38. return await request.download({ url: `/rq/iot-information-db/export-excel`, params })
  39. },
  40. }