eight
2024-09-09 4f5d8e28b98957dd2f60f06e6e81929477f4ebf9
src/api/ecg/devmanage/index.ts
@@ -14,7 +14,12 @@
  category: string // 分类名
  brand: string // 品牌
  model: string // 型号
  purchaseDate: Date // 采购日期
  purchaseDate: number // 采购日期
}
export interface OptionsVO {
  label: string
  value: string
}
// 设备型号 API
@@ -47,6 +52,15 @@
  // 导出设备型号 Excel
  exportDevModel: async (params) => {
    return await request.download({ url: `/ecg/dev-model/export-excel`, params })
  },
  //
  getBrandOption: async (category: string) => {
    return await request.get({ url: `/ecg/dev-model/brand-option?category=` + category })
  },
  getModelOption: async (category: string, brand: string) => {
    return await request.get({ url: `/ecg/dev-model/model-option?category=` + category + `&brand=` + brand })
  }
}