| | |
| | | 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.workTimes = workTimes |
| | | this.sceneForm.taskDescription = this.sceneForm.desc |
| | | this.sceneForm.knows = fileIds, |
| | | this.sceneForm.createUser = this.userInfo.id |
| | | this.sceneForm.createUser = this.userInfo.id |
| | | this.sceneForm.type = this.isGb28182?1:0 |
| | | // console.info(this.sceneForm) |
| | | this.onSaveScene(this.sceneForm); |
| | | }, |