diff --git a/src/api/parking/bluecardheartbeat/index.ts b/src/api/parking/bluecardheartbeat/index.ts new file mode 100644 index 00000000..e61ca956 --- /dev/null +++ b/src/api/parking/bluecardheartbeat/index.ts @@ -0,0 +1,50 @@ +import request from '@/config/axios' + +// 蓝卡心跳 VO +export interface BlueCardHeartbeatVO { + id: number // id + parkNumber: string // 场库编号 + spaceCount: number // 场库总车位数 + freeSpaceCount: number // 场库空车位数 + bookSpaceCount: number // 场库可预约数 + bookInParkCount: number // 场库在场预约数 + areaName: string // 区域名称 + areaSpaceCount: number // 区域车位数 + areaLastSpaceCount: number // 区域空位数 + areaBookSpaceCount: number // 区域可预约车位数 + areaBookInParkCount: number // 区域在场预约数 + areaId: number // 区域Id +} + +// 蓝卡心跳 API +export const BlueCardHeartbeatApi = { + // 查询蓝卡心跳分页 + getBlueCardHeartbeatPage: async (params: any) => { + return await request.get({ url: `/parking/blue-card-heartbeat/page`, params }) + }, + + // 查询蓝卡心跳详情 + getBlueCardHeartbeat: async (id: number) => { + return await request.get({ url: `/parking/blue-card-heartbeat/get?id=` + id }) + }, + + // 新增蓝卡心跳 + createBlueCardHeartbeat: async (data: BlueCardHeartbeatVO) => { + return await request.post({ url: `/parking/blue-card-heartbeat/create`, data }) + }, + + // 修改蓝卡心跳 + updateBlueCardHeartbeat: async (data: BlueCardHeartbeatVO) => { + return await request.put({ url: `/parking/blue-card-heartbeat/update`, data }) + }, + + // 删除蓝卡心跳 + deleteBlueCardHeartbeat: async (id: number) => { + return await request.delete({ url: `/parking/blue-card-heartbeat/delete?id=` + id }) + }, + + // 导出蓝卡心跳 Excel + exportBlueCardHeartbeat: async (params) => { + return await request.download({ url: `/parking/blue-card-heartbeat/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/parking/bluecardheartbeat/BlueCardHeartbeatForm.vue b/src/views/parking/bluecardheartbeat/BlueCardHeartbeatForm.vue new file mode 100644 index 00000000..76e74b92 --- /dev/null +++ b/src/views/parking/bluecardheartbeat/BlueCardHeartbeatForm.vue @@ -0,0 +1,146 @@ + + \ No newline at end of file diff --git a/src/views/parking/bluecardheartbeat/index.vue b/src/views/parking/bluecardheartbeat/index.vue new file mode 100644 index 00000000..25c6eb7e --- /dev/null +++ b/src/views/parking/bluecardheartbeat/index.vue @@ -0,0 +1,297 @@ + + + \ No newline at end of file