| | |
| | | getSounds() { |
| | | getSoundList().then(res => { |
| | | if (res.success) { |
| | | this.soundList = res.data.list |
| | | this.soundList = res.data; |
| | | } |
| | | }).catch( |
| | | e => console.log(e) |
| | |
| | | this.resolutionList = list |
| | | this.sensors = res.data.sensors |
| | | } |
| | | |
| | | this.$nextTick(() => { |
| | | this.initFormData() |
| | | this.initFormData(); |
| | | Object.assign(this.form, res.data) |
| | | |
| | | this.soundList.forEach(element => { |
| | |
| | | let {evt,treeId} = _this.$root.$children[0].$refs['leftTree'].$refs.tree; |
| | | console.log(evt,treeId) |
| | | // this.$nextTick(()=>{ |
| | | _this.$root.$children[0].$refs['leftTree'].$refs.tree.itemClick(evt,treeId,_this.TreeDataPool.selectedNode) |
| | | //_this.$root.$children[0].$refs['leftTree'].$refs.tree.handleCreated() |
| | | // }) |
| | | |
| | | } else { |