| | |
| | | <el-dialog :title="lineEditTitle" :visible.sync="lineEditVisible" :modal="true" :close-on-click-modal="false" |
| | | :modal-append-to-body="false" class="edit-line-box" :before-close="cancelSaveLine"> |
| | | <div> |
| | | <div class="value-name-box">描述:</div> |
| | | <div class="input-width-box" style="flex: 1;"> |
| | | <input style="width: 100%;" type="text" v-model="lineRemark" placeholder="请输入..." /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="value-name-box">设置缓冲范围:</div> |
| | | <div class="input-width-box"> |
| | | <input type="text" v-model="lineWidth" placeholder="请输入..." /> |
| | |
| | | return { |
| | | lineEditTitle: '修改巡逻路线', |
| | | isLineEdit: true, |
| | | lineRemark: "", |
| | | lineWidth: 100, |
| | | chooseColor: '#1CA085', |
| | | policeIconId: {}, |
| | |
| | | addPopupShow (positions, altitude) { |
| | | this.lineEditTitle = '新增巡逻路线' |
| | | this.chooseColor = '#1CA085' |
| | | this.lineRemark = '' |
| | | this.lineWidth = 100 |
| | | this.isLineEdit = false |
| | | polygonAltArray = altitude |
| | |
| | | curLinePosition = e.overlay.attrParams.linePositionStr |
| | | curLinePolygonPosition = e.overlay.attrParams.polygonPositionStr |
| | | |
| | | this.lineRemark = e.overlay.attrParams.remark |
| | | this.lineWidth = e.overlay.attrParams.width != -1 ? e.overlay.attrParams.width : 100 |
| | | this.chooseColor = e.overlay.attrParams.color != '' ? e.overlay.attrParams.color : '#1CA085' |
| | | this.policeIconId = e.overlay.attrParams.id |
| | |
| | | |
| | | // 保存巡逻路线信息 |
| | | saveLineInfo () { |
| | | this.$parent.updateActivityCar({ id: this.policeIconId, color: this.chooseColor, width: this.lineWidth }, polylineOverlay.overlay) |
| | | this.$parent.updateActivityCar({ id: this.policeIconId, color: this.chooseColor, width: this.lineWidth, remark: this.lineRemark }, polylineOverlay.overlay) |
| | | this.lineEditVisible = false |
| | | }, |
| | | |
| | |
| | | securityId: this.showingSecurityId, |
| | | type: 1, |
| | | color: this.chooseColor, |
| | | width: this.lineWidth |
| | | width: this.lineWidth, |
| | | remark: this.lineRemark |
| | | }) |
| | | }, |
| | | |