W3-W6: 5个页面注入网关API引用+TODO 联调时补全实现
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
// 紧急报警记录接口定义
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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'
|
||||
|
||||
// 告警记录接口定义
|
||||
|
||||
Reference in New Issue
Block a user