| | |
| | | <template> |
| | | <div class="right-side"> |
| | | <div class="tool-bar"> |
| | | <div> |
| | | <!-- <input type="color" ref="colorPicker" v-model="color"> --> |
| | | <label for>拾色器:</label> |
| | | <el-color-picker v-model="colorPick" show-alpha size="mini"></el-color-picker> |
| | | </div> |
| | | <div style="width:250px;"> |
| | | <label for>笔触:</label> |
| | | <el-slider v-model="dotSize" :min="1" :max="20"></el-slider> |
| | | </div> |
| | | </div> |
| | | <div class="figure"> |
| | | <div class="action-bar"> |
| | | <el-button |
| | | class="drawboard-trigger" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="tool-bar"> |
| | | <div> |
| | | <!-- <input type="color" ref="colorPicker" v-model="color"> --> |
| | | <label for>拾色器:</label> |
| | | <el-color-picker v-model="colorPick" show-alpha size="mini"></el-color-picker> |
| | | </div> |
| | | <div style="width:250px;"> |
| | | <label for>笔触:</label> |
| | | <el-slider v-model="dotSize" :min="1" :max="20"></el-slider> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | watch: { |
| | | 'TreeDataPool.selectedNode': { |
| | | handler(n, o) { |
| | | debugger |
| | | let curCamera = this.cameraData.find(item => item.id == n.id); |
| | | this.snapshot_url = curCamera.snapshot_url; |
| | | }, |
| | |
| | | getAllCameraData() { |
| | | getCamerasByServer().then(res => { |
| | | if (res.success) { |
| | | debugger |
| | | this.cameraData = res.data; |
| | | } |
| | | }).catch(e => { |
| | |
| | | this.isNewLabel = true; |
| | | }, |
| | | editLabel(label) { |
| | | debugger |
| | | if (!this.isEdit) return; |
| | | this.isShowPop = true; |
| | | this.curLabel = JSON.parse(JSON.stringify(label)); |
| | |
| | | .right-side { |
| | | height: 100%; |
| | | background: #d2dcea; |
| | | .figure{ |
| | | float: left; |
| | | } |
| | | .tool-bar { |
| | | width: 100%; |
| | | height: 60px; |
| | | float: right; |
| | | width: 40px; |
| | | height: 100%; |
| | | padding: 10px 20px; |
| | | box-sizing: border-box; |
| | | background: rgb(250, 250, 250); |