| | |
| | | created() { |
| | | this.userInfo = sessionStorage.getItem("userInfo") && JSON.parse(sessionStorage.getItem("userInfo")) |
| | | }, |
| | | computed: { |
| | | isGb28182() { |
| | | return this.TreeDataPool.selectedNode.cameraType === 1 |
| | | } |
| | | }, |
| | | mounted() { |
| | | // window.addEventListener('resize', this.windowSizeChange) |
| | | this.getSounds(); |
| | |
| | | return true; |
| | | }, |
| | | saveSceneRule() { |
| | | console.log(this.Camera) |
| | | if (!this.validateForm()) { |
| | | return; |
| | | } |
| | |
| | | this.sceneForm.taskDescription = this.sceneForm.desc |
| | | this.sceneForm.knows = fileIds, |
| | | this.sceneForm.createUser = this.userInfo.id |
| | | this.sceneForm.type = this.isGb28182?1:0 |
| | | // console.info(this.sceneForm) |
| | | this.onSaveScene(this.sceneForm); |
| | | }, |
| | |
| | | methods: { |
| | | getStatus() { |
| | | let refreshCameraInfo = getCameraInfo |
| | | if (this.Camera.gb28181) { |
| | | refreshCameraInfo = getGB28181CameraInfo |
| | | } |
| | | // if (this.Camera.gb28181) {//2025-08-05 国标和普通摄像机暂用一个家口 |
| | | // refreshCameraInfo = getGB28181CameraInfo |
| | | // } |
| | | refreshCameraInfo(this.Camera.cameraId).then((res) => { |
| | | if (res.success) { |
| | | switch (res.data.status) { |
| | |
| | | type: 'success', |
| | | message: '成功' |
| | | }); |
| | | |
| | | // for (let i = 0; i < this.galleryItems.length; i++) { |
| | | // if (parm.trainId === this.galleryItems[i].trainId) { |
| | | // this.galleryItems[i].status = parm.status |