fire.js 464 B

12345678910111213141516171819202122
  1. import $http from "@/utils/request";
  2. /**
  3. * 获取火灾点位配置
  4. */
  5. export const getTagList = (data) => {
  6. return $http({
  7. method: "POST",
  8. url: `/fire/config/getList`,
  9. data,
  10. notShowLoading: false,
  11. headers: { "Content-Type": "application/json" }
  12. });
  13. };
  14. // 获取实时报警信息 type值同上
  15. export const getAlarmList = (data) =>
  16. $http({
  17. method: "POST",
  18. url: `/fire/alarm/getList`,
  19. data,
  20. notShowLoading: true,
  21. });