| | |
| | | }) |
| | | } |
| | | |
| | | // ???? |
| | | // 告警收藏 |
| | | export const alarmFavoriteSaveApi = (data) => { |
| | | return request({ |
| | | url: '/drone-fw/record/fwAlarmFavorite/save', |
| | |
| | | }) |
| | | } |
| | | |
| | | // ?????? |
| | | // 取消收藏 |
| | | export const alarmFavoriteRemoveApi = (ids) => { |
| | | const formattedIds = Array.isArray(ids) ? ids.join(',') : ids |
| | | return request({ |
| | |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | } |
| | |
| | | |
| | | handleMouseMove(movement) { |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show('????????????', movement.endPosition) |
| | | this.tooltip.show('拖动顶点编辑', movement.endPosition) |
| | | } else { |
| | | this.tooltip.show('????????????') |
| | | this.tooltip.show('拖动顶点编辑') |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | if (!this.isDragging || this.draggedIndex < 0) return |
| | |
| | | |
| | | const formData = ref(initForm()) // 弹框显隐 |
| | | const visible = defineModel() // 弹框模式 |
| | | const dialogMode = ref('view') // ???? |
| | | const dialogMode = ref('view') // 弹窗模式 |
| | | const titleEnum = ref({ view: '查看' }) |
| | | const dictObj = inject('dictObj') |
| | | |
| | |
| | | const titleEnum = ref({ edit: '编辑', view: '查看', add: '新增' }) |
| | | const effectiveDateRange = ref([]) // 有效时间范围 |
| | | const sceneConfigList = ref([]) // 场景配置列表 |
| | | const areaList = ref([]) // ???? |
| | | const areaList = ref([]) // 区域列表 |
| | | const mapRef = ref(null) |
| | | const route = useRoute() |
| | | let viewer |
| | |
| | | } |
| | | |
| | | // 获取场景配置列表 |
| | | // ????? |
| | | // 区域展示数据源 |
| | | function ensureAreaDisplaySource() { |
| | | if (!viewer) return null |
| | | if (!areaDisplaySource) { |
| | |
| | | }) |
| | | } |
| | | |
| | | // ?????????? |
| | | // 加载区域列表 |
| | | async function loadAreaList(sceneId) { |
| | | if (!sceneId) { |
| | | areaList.value = [] |