W3-W6: 5个页面注入网关API引用+TODO 联调时补全实现

This commit is contained in:
2026-05-17 15:43:22 +08:00
parent 2ab7c851cb
commit 279863cbe0
4 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ import { useMapStore } from "../stores/mapStore"
import { useRoute } from "vue-router"
import DeviceInfo from "./DeviceInfo.vue"
import http from '../api/http.js'
import { gwGet, fetchCameras, type StandardDevice } from '../api/gateway.ts'
// TODO Phase2: 遍历 base_device 加载 MapModelId → VgoMap 标记; 告警设备红色闪烁
import initMessageHub from './index.js' // 导入消息中心初始化函数
import Message from './Message.vue'

View File

@@ -116,6 +116,7 @@
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
// TODO Phase2: import { gwGet, gwPost } from '@/api/gateway' for B8/B9 alarm APIs
import { Picture } from '@element-plus/icons-vue'
// 紧急报警记录接口定义

View File

@@ -119,6 +119,7 @@ import { ElMessage } from 'element-plus'
import * as echarts from 'echarts'
import store from '@/store'
import http from '@/api/http'
import { gwGet, fetchCameras, type StandardDevice } from '@/api/gateway'
// 环境变量类型定义
interface EnvironmentVariable {

View File

@@ -106,6 +106,7 @@
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
// TODO Phase2: import { gwGet } from '@/api/gateway' for B8 alarm list
import { Picture } from '@element-plus/icons-vue'
// 告警记录接口定义