| | |
| | | <el-dialog title="修改标绘" :modal="false" :visible.sync="editPlotVisible" :close-on-click-modal="true" |
| | | class="edit-plot-box"> |
| | | <div> |
| | | <div class="value-name-box">设置名称:</div> |
| | | <div> |
| | | <input type="text" v-model="polygonName" /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="value-name-box">选择标绘颜色:</div> |
| | | <div class="pick-color-box"> |
| | | <el-color-picker v-model="choosePlotColor" :predefine="predefineColors" size="small"> |
| | |
| | | if (flag) { |
| | | that.choosePlotColor = '#1CA085' |
| | | that.isNeedName = true |
| | | that.polygonName = '' |
| | | that.polygonAddVisible = true |
| | | flag = false |
| | | } |
| | |
| | | let b = parseInt(item.color.slice(5, 7), 16) |
| | | color = global.DC.Namespace.Cesium.Color.fromBytes(r, g, b, 150) |
| | | } |
| | | chooseArrow.attrParams = { 'id': item.id, 'color': item.color } |
| | | chooseArrow.attrParams = { 'id': item.id, 'color': item.color ,'name':item.name} |
| | | arrowsListLayer.addOverlay(chooseArrow) |
| | | chooseArrow.setStyle({ |
| | | "material": color, |
| | |
| | | reeditArrowClick (e) { |
| | | this.plotOverlayData = e |
| | | this.choosePlotColor = e.overlay.attrParams.color != '' ? e.overlay.attrParams.color : '#1CA085' |
| | | this.polygonName = e.overlay.attrParams.name |
| | | if (this.userInfo.dept_id == '1123598813738675201' || this.userInfo.dept_id == this.activityDeptId) { |
| | | this.plotId = e.overlay.attrParams.id |
| | | this.editPlotVisible = true |
| | |
| | | |
| | | // 保存标绘修改 |
| | | savePlot () { |
| | | this.updateSecurityPlot({ id: this.plotOverlayData.overlay.attrParams.id, color: this.choosePlotColor }) |
| | | this.updateSecurityPlot({ id: this.plotOverlayData.overlay.attrParams.id, color: this.choosePlotColor ,name:this.polygonName}) |
| | | this.editPlotVisible = false |
| | | }, |
| | | |