/* * @Author: Fuyuu 1805498209@qq.com * @Date: 2023-12-15 16:47:17 * @LastEditors: Fuyuu 1805498209@qq.com * @LastEditTime: 2024-01-03 10:47:55 * @FilePath: \dt-admin-pc-v2\src\store\modules\earthMap.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { defineStore } from 'pinia'; import { store } from '/@/store'; export const useEarthMapStore = defineStore({ id: 'earth-map', state: () => ({ token: '', customPrimitiveList: [], // 视频图元数组 customPrimitive: null, shapeUsing: false, //判断绘画组件使用状态 shapeList: [], //绘画数组(区域) shapeShowList: [], //绘画存储(临时) keyAreaPos: [], //记录创建防区的点位,重点管控区域 shipDataList: [], //船只数据列表 xbsjEarthUI: null, //XbsjEarthUI /////////////////////// cameraData: {},//请求的电线杆数据 nodeConfigByRef: new Map(),// 区域节点By Ref划分 nodeCheckedByRef: new Map(),// statusByNodeId: new Map(),// areaByNodeId: new Map(), hostDeviceMapById: new Map(),//获取主机信息 alarmInfoMap: new Map(), radarAlarmDataMap: new Map(), imgByRef: new Map(), }), getters: { getCustomPrimitiveList(): any { return this.customPrimitiveList; }, getCustomPrimitive(): any { return this.customPrimitive; }, }, }); // 需要在设置之外使用 export function useEarthMapStoreWithOut() { return useEarthMapStore(store); }