|
@@ -22,8 +22,9 @@ import { RightFillPano } from "@/layout";
|
|
|
import { postAddPathInPosition } from '@/api'
|
|
|
import mediaList from "./components/mediaList.vue";
|
|
|
import { nextTick, reactive, ref, watchEffect, onUnmounted } from "vue";
|
|
|
-import { positionList, enterOld, enterEdit } from "@/store";
|
|
|
+import { positionList, paths, enterOld, enterEdit } from "@/store";
|
|
|
import { loadPack } from '@/utils'
|
|
|
+import { sdk } from "@/sdk";
|
|
|
|
|
|
const isRecord = ref(false);
|
|
|
const startTime = ref<number>(0);
|
|
@@ -76,9 +77,19 @@ const startRecord = (type: string) => {
|
|
|
duration: endTime.value - startTime.value
|
|
|
});
|
|
|
// 这里调path接口传路线数据过去,有几个设备就生成几个path
|
|
|
- positionList.value.forEach((pos: any) => {
|
|
|
- postAddPathInPosition({}, startTime.value, endTime.value)
|
|
|
- });
|
|
|
+ console.log(paths, 8888)
|
|
|
+ let positionPaths = sdk.generateAniPathData() || []
|
|
|
+ positionPaths.forEach((positionPath: any) => {
|
|
|
+ postAddPathInPosition(positionPath, startTime.value, endTime.value)
|
|
|
+ })
|
|
|
+ // positionList.value.forEach((pos: any) => {
|
|
|
+ // // 寻找当前设备对应的path
|
|
|
+ // let positionPath = positionPaths.find((path: any) =>{return '00' + pos.macId == path.id})
|
|
|
+ // console.log(positionPaths, pos, positionPath, 88)
|
|
|
+ // if(positionPath){
|
|
|
+ // postAddPathInPosition(positionPath, startTime.value, endTime.value)
|
|
|
+ // }
|
|
|
+ // });
|
|
|
// enterOld(async () => {})
|
|
|
}
|
|
|
};
|