| | |
| | | <template> |
| | | <el-dropdown |
| | | class="p-events-auto dropdown-wrap" |
| | | class="p-events-auto" |
| | | trigger="click" |
| | | size="small" |
| | | @command="handleCommand" |
| | | > |
| | | <el-button type="primary" class="el-button-custom"> |
| | | <el-icon class="el-icon--left"><TakeawayBox /></el-icon> |
| | | 地图工具箱 |
| | | 工具箱 |
| | | <el-icon class="el-icon--right"><arrow-down /></el-icon> |
| | | </el-button> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item |
| | | v-for="(item, index) in toolItem" |
| | | :key="index" |
| | | :key="item.label" |
| | | :command="index" |
| | | > |
| | | <el-button |
| | |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | icon: 'fa fa-crosshairs', |
| | | label: '坐标拾取', |
| | | value: false, |
| | | click: function () { |
| | |
| | | toolbox.toggleCoorPicking(this.value); |
| | | } |
| | | }, |
| | | // { |
| | | // icon: 'fa fa-compass', |
| | | // label: '数据标记', |
| | | // value: true, |
| | | // click: function () { |
| | | // this.value = !this.value; |
| | | // // todo 数据标记 |
| | | // } |
| | | // }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: '数据标记', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo 数据标记 |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | icon: 'fa fa-comment-alt', |
| | | label: '数据弹框', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo 数据弹框 |
| | | toolbox.toggleDataDialogStatus(this.value); |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-comment-alt', |
| | | label: '溯源清单', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | toolbox.toggleSceneSearch(this.value); |
| | | } |
| | | } |
| | | ] |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .dropdown-wrap { |
| | | position: absolute; |
| | | top: 10px; |
| | | left: 2px; |
| | | } |
| | | |
| | | .el-button { |
| | | margin: initial !important; |
| | | } |