he wei
2025-04-23 b9bd29a1a81f6f7de479e3cc3fdfe3d85fc660bf
src/api/lockManager.js
@@ -25,15 +25,12 @@
}
/**
 * 添加锁 包含批量
 *     num
 * {areaId lockName  lockType..}
 * 添加锁
 */
export function addLock(params, data) {
export function addLock(data) {
  return request({
    url: "lockInf/addLock",
    method: "POST",
    params,
    data,
  });
}
@@ -101,7 +98,7 @@
 */
export function getScreenType() {
  return request({
    url: "lockInf/getScreenType",
    url: "condition/getScreenType",
    method: "POST",
  });
}
@@ -112,7 +109,7 @@
 */
export function getScreenProduct() {
  return request({
    url: "lockInf/getScreenProduct",
    url: "condition/getScreenProduct",
    method: "POST",
  });
}
@@ -131,13 +128,12 @@
/**
 * 查询锁历史告警
 * {areaId, startTime, endTime, pageNum, pageSize, almIds}
 */
export function getLockAlmHis(areaId, startTime, endTime, pageNum, pageSize, almIds) {
export function getLockAlmHis(data) {
  return request({
    url: "lockAlmHis/getLockAlmHis",
    method: "GET",
    params: { areaId, startTime, endTime, pageNum, pageSize, almIds },
    method: "POST",
    data,
  });
}
@@ -163,11 +159,11 @@
 * 查询锁蓝牙开启时间段记录
 * {areaId, lockName, pageNum, pageSize, type}
 */
export function getLockBl(params) {
export function getLockBl(data) {
  return request({
    url: "lockBl/getLockBl",
    method: "GET",
    params,
    method: "POST",
    data,
  });
}
@@ -182,3 +178,58 @@
    params: { num },
  });
}
/**
 * 开启蓝牙
 */
export function openLockBl(lockId) {
  return request({
    url: "lockRt/OpenBl",
    method: "GET",
    params: { lockId },
  });
}
/**
 * 关闭蓝牙
 */
export function closeLockBl(lockId) {
  return request({
    url: "lockRt/closeBl",
    method: "GET",
    params: { lockId },
  });
}
/**
 * 历史数据导出
 */
export function exportHis(lockId, startTime, endTime) {
  return request({
    url: "export/exportHis",
    method: "GET",
    responseType: "blob",
    params: { lockId, startTime, endTime },
    fullRes: true
  });
}
/**
 * 编辑锁的位置
 * [
    {
      "addressFlag": 0,
      "lockId": 0,
      "num": 0,
      "screenFlag": 0,
      "stationId": 0
    }
  ]
 */
export function updateLockPosition(data) {
  return request({
    url: "lockAddress/updateAddress",
    method: "POST",
    data,
  });
}