diff --git a/src/store/index.ts b/src/store/index.ts index 2151672..3c00fdb 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -10,8 +10,9 @@ export const useStore = defineStore('Index', { audioCount: 0, audioCurrentCount: 0, editType: 0, - addLabel: {cmMarkGroupId:0,labelType:"",isAddLabel: false}, - curTreeKey:"" + addLabel: { cmMarkGroupId: 0, labelType: "", isAddLabel: false }, + curTreeKey: "", + labelGroupList: [] } }, @@ -21,7 +22,7 @@ export const useStore = defineStore('Index', { addCameraMap(list: any) { this.treeData = [] for (let item of list) { - this.cameraMap.set(item.id+'', item); + this.cameraMap.set(item.id + '', item); this.treeData.push({ title: item.ip, key: item.id }); } return this.cameraMap @@ -38,8 +39,11 @@ export const useStore = defineStore('Index', { updateaudioCount(num: number) { this.audioCount = num }, - updateIsAddLabel(obj:any){ - this.addLabel=obj + updateIsAddLabel(obj: any) { + this.addLabel = obj + }, + updateLabelGroupList(arr: any) { + this.labelGroupList = arr } }, }) \ No newline at end of file diff --git a/src/views/page/Aside/cameraRightMenu.vue b/src/views/page/Aside/cameraRightMenu.vue index 4c1ad4a..d61d487 100644 --- a/src/views/page/Aside/cameraRightMenu.vue +++ b/src/views/page/Aside/cameraRightMenu.vue @@ -83,6 +83,7 @@ function init() { let result = res.data if (result.code == 200) { labelList.value=result.data + piniaStore.updateLabelGroupList(result.data) } }) } @@ -99,7 +100,7 @@ onMounted(() => { width: 80px; } .labelList{ - cursor: pointer; + cursor: pointer !important; } @keyframes rounte { from { diff --git a/src/views/page/cameraCenter.vue b/src/views/page/cameraCenter.vue index 7f92211..b669af9 100644 --- a/src/views/page/cameraCenter.vue +++ b/src/views/page/cameraCenter.vue @@ -7,16 +7,24 @@ @loadedmetadata="changeVideoCanvasSize" @mouseover="mouseOverVideo" @mouseout="mouseOutVideo" @mousedown="mouseDownVideo"> -