| | |
| | | <el-col class="info-text" :span="18">{{ form.eventDesc }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col class="info-label" span="6">附件:</el-col> |
| | | <el-col class="info-label" :span="6">附件:</el-col> |
| | | <el-col class="info-text" :span="18"><a class="link-btn" href="javascript:">附件</a> |
| | | |
| | | <a class="link-btn" href="javascript:">附件</a> |
| | |
| | | </div> |
| | | </el-scrollbar> |
| | | <div class="event-management"> |
| | | <el-input></el-input> |
| | | <el-button type="primary" size="mini" @click="ToManagement">开始分析</el-button> |
| | | <el-button type="primary" size="mini" @click="mapClick">地图点选</el-button> |
| | | <el-select v-model="radius.value" placeholder="请选择" size="mini" class="map-input"> |
| | | <el-option v-for="(item,index) in radius.options" :key="index" :label="item.label" :value="item.value"></el-option> |
| | | </el-select> |
| | | <el-button type="primary" size="mini" @click="eventHanding">开始分析</el-button> |
| | | <el-button type="primary" size="mini" @click="toManagement">事件管理</el-button> |
| | | <!-- <el-button size="mini">关闭</el-button>--> |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | |
| | | import eventBus from '../../../eventBus' |
| | | |
| | | import BufferQuery from '@components/base-page/enterprise-emergency/event-handling/BufferQuery' |
| | | export default { |
| | | name: 'DisposalEvent', |
| | | data () { |
| | | return { |
| | | bufferQuery: null, |
| | | activeNames: ['1'], |
| | | radius: { |
| | | value: 0.1, |
| | | options: [{ label: '500m', value: 0.5 }, { label: '1km', value: 1 }, { label: '2km', value: 2 }, { label: '5km', value: 5 }, { label: '10km', value: 10 }] |
| | | }, |
| | | form: { |
| | | nameOfEvent: '***************事件', |
| | | eventLocation: '**********装置', |
| | |
| | | ] |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.bufferQuery = new BufferQuery(window.map, window.L) |
| | | this.bufferQuery.initLayers() |
| | | }, |
| | | methods: { |
| | | // 开始分析 |
| | | ToManagement () { |
| | | eventHanding () { |
| | | eventBus.$emit('event-handling', {}) |
| | | }, |
| | | handleClickView (item) { |
| | |
| | | }, |
| | | handleChange (val) { |
| | | console.log(val) |
| | | }, |
| | | mapClick () { |
| | | window.map.once('click', (e) => { |
| | | console.log(e) |
| | | // [-75.343, 39.984]; |
| | | |
| | | // var circle = turf.circle(center, radius, options) |
| | | // eslint-disable-next-line no-unreachable |
| | | this.bufferQuery.radius = this.radius.value |
| | | const lat = 32.26431369781494 |
| | | const lng = 118.79283785820007 |
| | | // this.bufferQuery.bufferQuery(e.latlng.lng, e.latlng.lat) |
| | | this.bufferQuery.bufferQuery(lng, lat) |
| | | }) |
| | | }, |
| | | toManagement () { |
| | | |
| | | } |
| | | } |
| | | } |