| | |
| | | </el-table> |
| | | <div class="event-management"> |
| | | <el-button type="primary" size="mini" @click="ToManagement">äºä»¶ç®¡ç</el-button> |
| | | <el-button size="mini" @click="close()">å
³é</el-button> |
| | | <el-button size="mini">å
³é</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | // äºä»¶ç®¡ç页é¢è·³è½¬ |
| | | ToManagement () { |
| | | eventBus.$emit('events-reported', true) |
| | | }, |
| | | // 页é¢å
³é |
| | | close () { |
| | | window.$layer.open({ |
| | | content: { |
| | | comp: '', |
| | | parent: this, |
| | | data: { // ä¼ éçåæ° |
| | | // info: this.info |
| | | } |
| | | }, |
| | | title: '' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="pipeline-file map-background" v-show="pipelineFile"> |
| | | <el-row> |
| | | <el-row style="margin: 0 15px"> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="管线åç§°"> |
| | |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="管段å®ä½" name="second"> |
| | | <div class="line-pos"> |
| | | <div class="line-pos-form"> |
| | | <div class="place"> |
| | | <div class="place-top"> |
| | | <div class="place-left"> |
| | | <el-form :model="linePos" label-width="90px"> |
| | | <el-form-item label="管线åç§°:"> |
| | | <el-input v-model="linePos.lineName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="éå±è®¾æ½:"> |
| | | <el-select v-model="linePos.affFac" placeholder="è¯·éæ©æ´»å¨åºå"> |
| | | <el-option label="åºåä¸" value="shanghai"></el-option> |
| | | <el-option label="åºåäº" value="beijing"></el-option> |
| | | <el-select v-model="linePos.affFac"> |
| | | <el-option |
| | | v-for="item in linePos.affFacList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button type="primary" size="mini">æç´¢</el-button> |
| | | </div> |
| | | <el-button type="primary" @click="confirm">确认</el-button> |
| | | <div class="place-right"> |
| | | <el-button type="primary" size="small" @click="fileChoose">æç´¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="place-bottom"> |
| | | <el-button type="primary" @click="confirm">确认</el-button> |
| | | </div> |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="ç»çº¬åº¦å®ä½" name="third"> |
| | | <div class="latlng-location"> |
| | | <div class="latlng-location-chose"> |
| | | <el-form :model="LongLatPos" label-width="90px"> |
| | | <el-form-item label="ç»åº¦:"> |
| | | <el-input v-model="LongLatPos.longPos"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="纬度:"> |
| | | <el-input v-model="LongLatPos.latPos"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button type="primary" size="mini">å®ä½</el-button> |
| | | <div class="place"> |
| | | <div class="place-top"> |
| | | <div class="place-left"> |
| | | <el-form :model="LongLatPos" label-width="90px"> |
| | | <el-form-item label="ç»åº¦:"> |
| | | <el-input v-model="LongLatPos.longPos"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="纬度:"> |
| | | <el-input v-model="LongLatPos.latPos"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="place-right"> |
| | | <el-button type="primary" size="small">æç´¢</el-button> |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" @click="confirm">确认</el-button> |
| | | <div class="place-bottom"> |
| | | <el-button type="primary" @click="confirm">确认</el-button> |
| | | </div> |
| | | </div> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | // 管段å®ä½ |
| | | linePos: { |
| | | lineName: '', |
| | | affFac: '' |
| | | affFac: '', |
| | | affFacList: [ |
| | | { |
| | | label: 'éé¨A', |
| | | value: '1' |
| | | }, |
| | | { |
| | | label: 'éé¨B', |
| | | value: '2' |
| | | } |
| | | ] |
| | | }, |
| | | tabLabel: '' |
| | | fileChoChange: false |
| | | } |
| | | }, |
| | | mounted () { |
| | |
| | | methods: { |
| | | // tab 忢ç¨äºå¤æ |
| | | handleClick (tab) { |
| | | // æ§å¶ç¬¬ä¸å±é¡µé¢ 管线åç§°/管段代ç éæ©é¡µé¢ |
| | | if (tab.label === '管段å®ä½') { |
| | | // 妿 æ¯ç®¡çº¿å®ä½ æ¾ç¤ºä¸çº§é屿¡ è¿è¡éæ©æä»¶æä½ |
| | | eventBus.$emit('pipelineFile-choose', true) |
| | | } else { |
| | | // eles ä¸è¿è¡æ¾ç¤º |
| | | eventBus.$emit('pipelineFile-choose', false) |
| | | } |
| | | }, |
| | | // ç¹å»æä»¶éæ© æ¾ç¤ºç¬¬ä¸çº§é¡µé¢ è¿è¡ç®¡çº¿/æ®µéæ© |
| | | fileChoose () { |
| | | this.fileChoChange = !this.fileChoChange |
| | | eventBus.$emit('pipelineFile-choose', this.fileChoChange) |
| | | }, |
| | | // ç¹å»ç¡®è®¤æé®äºä»¶ |
| | | confirm () { |
| | |
| | | |
| | | .side-box { |
| | | min-width: 1.94532rem; |
| | | max-height: 1.343213rem; |
| | | max-width: 1.94532rem; |
| | | } |
| | | |
| | | .click-location { |
| | | margin: 0 auto; |
| | | text-align: center; |
| | |
| | | } |
| | | } |
| | | |
| | | .line-pos { |
| | | text-align: center; |
| | | .el-input { |
| | | width: 85%; |
| | | } |
| | | .line-pos-form { |
| | | display: flex; |
| | | } |
| | | } |
| | | |
| | | .latlng-location { |
| | | .place { |
| | | text-align: center; |
| | | |
| | | .latlng-location-chose { |
| | | .place-top { |
| | | display: flex; |
| | | align-content: center; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | |
| | | .place-right { |
| | | .el-button { |
| | | margin: 15px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .el-input { |
| | | width: 85%; |
| | | .place-bottom { |
| | | .el-button { |
| | | margin: 15px; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <div class="report-box map-background"> |
| | | <div class="public-bounced-title panel-title"> |
| | | <span>äºä»¶ä¸æ¥</span> |
| | | <i class="el-icon-close"></i> |
| | | <i class="el-icon-close" @click="circlePopup"></i> |
| | | </div> |
| | | <div class="form-popup"> |
| | | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="search-form"> |
| | |
| | | <!-- äºä»¶ç级--> |
| | | <el-form-item label="äºä»¶å级" prop="eventOfLevel"> |
| | | <el-radio-group v-model="ruleForm.eventOfLevel"> |
| | | <!-- <el-radio v-for="(item,index) in ruleForm.eventOfLevelList" :label="item.value"--> |
| | | <!-- :key="index">--> |
| | | <!-- <span>{{ item.name }}</span>--> |
| | | <!-- </el-radio>--> |
| | | <el-col :span="8" v-for="(item,index) in ruleForm.eventOfLevelList" :key="index" :style="{margin:'5px 0'}"> |
| | | <el-col :span="8" v-for="(item,index) in ruleForm.eventOfLevelList" :key="index" |
| | | :style="{margin:'5px 0'}"> |
| | | <el-radio :label="item.value"> |
| | | <span>{{ item.name }}</span> |
| | | </el-radio> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="äºååä½" prop="unit"> |
| | | <el-select v-model="ruleForm.unit" placeholder="åä½,è£
ç½®éæ©"> |
| | | <el-option |
| | | v-for="item in ruleForm.unitList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | <el-option |
| | | v-for="item in ruleForm.unitList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | <!-- // æè¿° æ¥æ¶ å±ç¤ºãéè--> |
| | | <div v-show="wayTo"> |
| | | <div v-show="wayTo" class="way-to"> |
| | | <el-form-item label="äºä»¶æè¿°" prop="desc"> |
| | | <el-input type="textarea" resize="none" v-model="ruleForm.desc" |
| | | placeholder="带åºäºä»¶ç±»åï¼äºä»¶ä½ç½®ï¼äºä»¶åä½ï¼äºä»¶æ¶é´çåæ®µèªå¨ç产ä¸é¨åæè¿°"> |
| | |
| | | }) |
| | | this.eventsReported = false |
| | | }, |
| | | // ç¹å»å
³é äºä»¶ä¸æ¥ |
| | | circlePopup () { |
| | | this.eventsReported = false |
| | | }, |
| | | // form表åçåæ¶æé®ç¹å»äºä»¶ éç½®ä¿¡æ¯ |
| | | resetForm (formName) { |
| | | this.$refs[formName].resetFields() |
| | |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | .way-to { |
| | | /deep/ .el-form-item__content { |
| | | display: flex; |
| | | } |
| | | } |
| | | |
| | | /deep/ .form-popup { |
| | | margin: 0 15px; |
| | | } |
| | |
| | | .report-box { |
| | | min-width: 3.4674324rem; |
| | | max-width: 3.4674324rem; |
| | | |
| | | .public-bounced-title { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | color: #00fff6 !important; |
| | | } |
| | | |
| | | /deep/ .el-icon-time:before { |
| | | content: " "; |
| | | } |
| | | |
| | | /deep/ input { |
| | | /*width: 145px;*/ |
| | | border-radius: 0; |
| | |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | | <!-- <reportPopup></reportPopup>--> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | name: 'EventQuery', |
| | | components: { |
| | | // reportPopup |
| | | // DisposalEvent |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | // info: this.info |
| | | } |
| | | }, |
| | | title: 'å¤ç½®äºä»¶' |
| | | title: 'äºä»¶å¤ç½®' |
| | | }) |
| | | }, |
| | | // radioæ°æ®éæ© |
| | |
| | | label="ç»ç¹ç¼å·"></el-table-column> |
| | | <el-table-column class-name="fixed-table" fixed="right" label="æä½" width="40"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="linkResultSelect(scope.row)" type="text" size="small">å®ä½</el-button> |
| | | <el-button @click.once="linkResultSelect(scope.row)" type="text" size="small">å®ä½</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | // æ¸
é¤åè½ |
| | | handleClick () { |
| | | window.mapManager.clearHighlight() |
| | | this.clearLinkPipe() |
| | | this.linkClear() |
| | | this.bgFm = [] |
| | | this.bgPipeLine = [] |
| | | }, |
| | | linkClear () { |
| | | if (this.currentSelectStartLine != null) { |
| | | this.currentSelectStartLine.remove() |
| | | this.currentSelectStartLine = null |
| | |
| | | } |
| | | // æ ¹æ®åæ°è¯·æ±æ¥å£æ°æ® |
| | | const res = await mapApi.findPipelineByClickPoint(param) |
| | | console.log(res) |
| | | // console.log(res) |
| | | this.bgPipeLine = res.data |
| | | }, |
| | | // æ¸
æ¥åæç»æ |
| | | // ç管 ===> éæ©ç®¡æ®µ |
| | | bgClick () { |
| | | this.selectPipeLine() |
| | | }, |
| | | // æ¸
é¤ç»æ |
| | | clearLinkPipe () { |
| | | if (this.linkPipeline.length > 0) { |
| | | this.linkPipeline.forEach((itm, idx) => { |
| | |
| | | this.currentSelectEndLine = null |
| | | } |
| | | }, |
| | | // ç管 ===> éæ©ç®¡æ®µ |
| | | bgClick () { |
| | | this.selectPipeLine() |
| | | }, |
| | | // ç¹å»éæ©äºä»¶ |
| | | async bgSelect (e) { |
| | | // console.log('éæ©ç管管段') |
| | | // console.log(e) |
| | |
| | | } |
| | | res.data.reverse() |
| | | this.bgFm = res.data |
| | | // console.log(res.data) |
| | | |
| | | this.bgPoint = res.data[0].startControlPoint |
| | | |
| | | // const point = JSON.parse(this.bgPoint.geomText) |
| | | // const p = [point.coordinates[1], point.coordinates[0]] |
| | | // this.bgMarker = this.createFlowMarker(p) |
| | | // this.bgMarker = pulseEffect(p) |
| | | // this.bgMarker.bindTooltip(this.bgPoint.pointnumbe) |
| | | // this.bgMarker.addTo(window.map) |
| | | // window.map.flyTo(p) |
| | | |
| | | const linkPipe = [] |
| | | res.data.forEach((itm, idx) => { |
| | |
| | | this.linkPipeline.push(line) |
| | | }) |
| | | }, |
| | | // ç¹å»å®ä½ æå¨è¡å表 åè½ |
| | | bgFmClick (e) { |
| | | // console.log('ç¹å»å½±åçéé¨') |
| | | // console.log(e) |
| | | // const point = [e.data[0][0], e.data[0][1]] |
| | | console.log(e) |
| | | // window.map.flyTo(point, 22) |
| | | const point = [e.startControlPoint.y, e.startControlPoint.x] |
| | | pulseEffect(point) |
| | | // const marker = this.createFlowMarker(point) |
| | | // marker.addTo(window.map) |
| | | // window.map.flyTo(point, 17) |
| | | }, |
| | | // å®ä½æ¹æ³äºä»¶ |
| | | linkResultSelect (e) { |
| | | // console.log('è¿éæ§åæç»æå表ç¹å»') |
| | | console.log(e) |
| | | // console.log(e) |
| | | const geom = JSON.parse(e.geomText) |
| | | if (this.currentSelectResultLine != null) { |
| | | this.currentSelectResultLine.remove() |
| | |
| | | sname: 'æªæµé¸', |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:chokevalve', |
| | | icon: 'sewers/.png', |
| | | icon: 'sewers/æªæµé¸.png', |
| | | checked: false |
| | | }, |
| | | { |
| | |
| | | minZoom: 16, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:overflowweir', |
| | | icon: 'sewers/.png', |
| | | icon: 'sewers/溢æµå °.png', |
| | | checked: false |
| | | }, |
| | | { |