Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
| | |
| | | <span></span> |
| | | <div class="main-table"> |
| | | <div class=""> |
| | | <ul> |
| | | <li>风险评估过程</li> |
| | | <li>初始评价结果:{{ riskSourceAssess }}</li> |
| | | <ul style="margin-bottom: .02rem"> |
| | | <li><h3>风险评估过程</h3></li> |
| | | <li>初始评价结果:{{ riskSourceAssess }}</li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | | <table border="1"> |
| | | <div class="EvaluationTable"> |
| | | <table border="1" style="border-color: rgba(118,132,189,0.77)" > |
| | | <tr> |
| | | <th colspan="2">风险控制</th> |
| | | <th>评估指标</th> |
| | |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <h3>环境风险评估结果</h3> |
| | | <div class="pTable"> |
| | | <el-table :data="riskSourceDetail" style="width: 100%" height="200px" :row-class-name="tableRowClassName"> |
| | | <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop" |
| | | :label="item.label" :show-overflow-tooltip="true"></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | /deep/ .el-table .warning-row{ |
| | | background-color: rgba(0, 0, 0, 0) !important; |
| | | } |
| | | /deep/ .el-table .success-row{ |
| | | background-color: rgba(48, 69, 95, .6) !important; |
| | | } |
| | | /deep/ .el-table thead tr { |
| | | color: #02a6b5 !important; |
| | | //.el-table .has-gutter tr th .cell { |
| | |
| | | /deep/ .el-table tbody tr:hover > td { |
| | | background: none !important |
| | | } |
| | | |
| | | .pTable{ |
| | | box-shadow: 0 0 10px rgba(129,211,248,.35) inset; |
| | | padding: 0.04rem; |
| | | margin-top: .06rem; |
| | | } |
| | | .slotChildTable { |
| | | position: relative; |
| | | background: rgba(33, 41, 69, 0.9); |
| | | |
| | | background: rgba(0, 16, 30, 0.7); |
| | | box-shadow: 0 0 10px rgba(129,211,248,.35) inset; |
| | | color: #00fff6; |
| | | padding: 0.04rem; |
| | | border: 1px solid #396d83; |
| | | .main-table { |
| | | border: 1px #396d83 solid; |
| | | max-height: 2rem; |
| | | overflow: hidden auto; |
| | | } |
| | | } |
| | | |
| | |
| | | <span></span> |
| | | <div class="tabs-content"> |
| | | <ul> |
| | | <li>风险名称:{{ riskSourceBaseInfo.riskname }}</li> |
| | | <li>风险级别:{{ riskSourceBaseInfo.riskLevel }}</li> |
| | | <li>风险描述:{{ riskSourceBaseInfo.depiction }}</li> |
| | | <li class="lastli"></li> |
| | | <li>风险名称:{{ riskSourceBaseInfo.riskname }}</li> |
| | | <li :style="{boxShadow: riskLevel[riskSourceBaseInfo.riskLevel]}">风险级别:{{ riskSourceBaseInfo.riskLevel }}</li> |
| | | <li>风险描述:{{ riskSourceBaseInfo.depiction }}</li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | |
| | | name: 'PublicTabs', |
| | | data () { |
| | | return { |
| | | riskSourceBaseInfo: [] |
| | | riskSourceBaseInfo: [], |
| | | riskLevel: { |
| | | 1: '0 0 10px rgba(246,16,43,.7) inset', |
| | | 2: '0 0 10px rgba(244,142,88,.7) inset', |
| | | 3: '0 0 10px rgba(253,238,13,.7) inset', |
| | | 4: '0 0 10px rgba(38,144,2,.7) inset' |
| | | } |
| | | } |
| | | }, |
| | | mounted () { |
| | |
| | | |
| | | .slotChildTabs { |
| | | position: relative; |
| | | margin-bottom: 0.1rem; |
| | | margin-bottom: 0.06rem; |
| | | background-color: @background-color; |
| | | |
| | | .tabs-content { |
| | |
| | | ul { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | flex-wrap: wrap; |
| | | |
| | | padding: 0 .03rem; |
| | | li { |
| | | margin-bottom: 0.04rem; |
| | | text-align: center; |
| | | min-width: 30%; |
| | | background-color: #243a55; |
| | | color: #00d0f9; |
| | | box-shadow: 0 0 10px rgba(129,211,248,.35) inset; |
| | | color: #00fff6; |
| | | border-radius: 0.02rem; |
| | | font-size: 0.08rem; |
| | | line-height: 0.09rem; |
| | | padding: 0.03rem .5%; |
| | | padding: 0.05rem .8%; |
| | | } |
| | | |
| | | li:nth-child(2){ |
| | | margin-left: .03rem; |
| | | } |
| | | li:last-child { |
| | | text-align: left; |
| | | line-height: .12rem; |
| | | margin-bottom: 0; |
| | | } |
| | | .lastli { |
| | | visibility: hidden |
| | | } |
| | |
| | | |
| | | .public-bounced-content { |
| | | //padding: 0.1rem; |
| | | display: flex; |
| | | |
| | | //align-items: center; |
| | | //justify-content: space-around; |
| | | |
| | |
| | | <template> |
| | | <div class="location-lon-and-lat"> |
| | | <!-- <el-row>--> |
| | | <!-- <el-form :model="lonlatpos" label-width="60px">--> |
| | | <!-- <el-col :span="12">--> |
| | | <!-- <el-form-item label="经度:">--> |
| | | <!-- <el-input type="text" v-model="lonlatpos.longPos"></el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="12">--> |
| | | <!-- <el-form-item label="纬度:">--> |
| | | <!-- <el-input type="text" v-model="lonlatpos.latPos"></el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-col>--> |
| | | <!-- </el-form>--> |
| | | <!-- <el-row>--> |
| | | <!-- <el-col :span="12" style="text-align: center;margin: 5px 0">--> |
| | | <!-- <el-button type="primary" size="small" @click="mapPoints">精确定位</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="12" style="text-align: center;margin: 5px 0">--> |
| | | <!-- <el-button type="primary" size="small" @click="dataPoints">数据识取</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- </el-row>--> |
| | | <!-- </el-row>--> |
| | | <el-form :model="lonlatpos" label-width="60px"> |
| | | <el-row class="pipe-line-search"> |
| | | <el-col :span="12"> |
| | |
| | | <el-button type="primary" size="small" @click="mapPoints">精确定位</el-button> |
| | | </el-col> |
| | | <el-col :span="12" style="text-align: center;margin: 5px 0"> |
| | | <el-button type="primary" size="small" @click="dataPoints">数据识取</el-button> |
| | | <el-button type="primary" size="small" @click="dataPoints">位置拾取</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="place-bottom" style="text-align: right;margin: 5px"> |
| | | <el-row style="text-align: right;margin: 5px"> |
| | | <el-button type="primary" @click="confirm" size="small">确认</el-button> |
| | | </el-row> |
| | | </div> |
| | |
| | | window.map.addLayer(this.marker) |
| | | this.layersGroupArrList.push(this.marker) |
| | | window.map.off('click') |
| | | // this.lonlatpos.latPos = '' |
| | | // this.lonlatpos.longPos = '' |
| | | }) |
| | | }, |
| | | // 通过数据定位 |
| | | dataPoints () { |
| | | // this.lonlatpos.latPos = '' |
| | | // this.lonlatpos.longPos = '' |
| | | if (this.lonlatpos.latPos !== '' && this.lonlatpos.longPos !== '') { |
| | | const as = [this.lonlatpos.latPos, this.lonlatpos.longPos] |
| | | window.map.setView(as, 17) |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .place-box { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .place { |
| | | text-align: center; |
| | | |
| | | .place-top { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | |
| | | .place-right { |
| | | .el-button { |
| | | margin: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | // 返回数据类型 1(普通POI) |
| | | if (res.resultType === 1) { |
| | | this.searchList = res.pois |
| | | // this.total = res.count |
| | | this.total = res.pois.length |
| | | } else if (res.resultType === 2) { |
| | | // 返回数据类型 2(统计 |
| | | this.searchListStatistics = res.statistics.priorityCitys |
| | | this.total = res.statistics.priorityCitys.length |
| | | } else if (res.resultType === 3) { |
| | | // 返回数据类型 3 area 区域 |
| | | } |
| | | }) |
| | | }, |
| | |
| | | </div> |
| | | </el-form> |
| | | <el-scrollbar style="height:286.22px"> |
| | | <!-- <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" :class="activeNum===index?'hover':''" @click="accordPopup(item)">--> |
| | | <!-- <!– <i class="state"></i>–>--> |
| | | <!-- <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/>--> |
| | | <!-- <div>--> |
| | | <!-- <h3 @click="handleLocation(item,index)">事件名称:XXX事件</h3>--> |
| | | <!-- <div class="environmental-risk-list">--> |
| | | <!-- <i class="state"></i>--> |
| | | <!-- <el-row>--> |
| | | <!-- <h3>--> |
| | | <!-- <span @click="handleLocation">事件名称:XXX事件</span>--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" @click="startAnalysis">开始分析</el-button>--> |
| | | <!-- </h3>--> |
| | | <!-- <h5>--> |
| | | <!-- 事件事件:2021年3月21日--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">删除</el-button>--> |
| | | <!-- <span>事件事件:2021年3月21日</span>--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini">删除</el-button>--> |
| | | <!-- </h5>--> |
| | | <!-- <p>--> |
| | | <!-- 事件状态:<span>审批阶段</span>--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" @click="accordPopup()">事件处置</el-button>--> |
| | | <!-- </p>--> |
| | | <!-- <p>事件类型:<span>{{ item.properties.pipecode }}</span>--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">事件管理--> |
| | | <!-- </el-button>--> |
| | | <!-- </p>--> |
| | | <!-- <p>事件类型:<span>模拟管线事件</span></p>--> |
| | | <!-- </el-row>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="environmental-risk-list"> |
| | | <el-row class="environmental-risk-list"> |
| | | <el-col :span="1"> |
| | | <i class="state"></i> |
| | | <div> |
| | | </el-col> |
| | | <el-col :span="19"> |
| | | <!-- <div>--> |
| | | <!-- <el-row>--> |
| | | <h3> |
| | | <span @click="disposalfx">事件名称:XXX事件</span> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" |
| | | @click="startAnalysis"> |
| | | <span>开始分析</span> |
| | | </el-button> |
| | | <span @click="handleLocation">事件名称:XXX事件</span> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" @click="startAnalysis">开始分析</el-button>--> |
| | | </h3> |
| | | <h5> |
| | | <span>事件事件:2021年3月21日</span> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin: 0.04rem 0.1rem;">删除</el-button> |
| | | <!-- <el-button class="rt btn00fff6" size="mini">删除</el-button>--> |
| | | </h5> |
| | | <p> |
| | | 事件状态:<span>审批阶段</span> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" @click="accordPopup()">事件处置</el-button>--> |
| | | </p> |
| | | <p>事件类型:<span>模拟管线事件</span> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" |
| | | @click="accordPopup()"> |
| | | <span>事件处置</span> |
| | | </el-button> |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <p>事件类型:<span>模拟管线事件</span></p> |
| | | <!-- </el-row>--> |
| | | <!-- </div>--> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button class="rt btn00fff6" size="mini" @click="startAnalysis" style="margin: 0.01rem">开始分析</el-button> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin: 0.05rem">删除</el-button> |
| | | <el-button class="rt btn00fff6" size="mini" @click="accordPopup()" style="margin: 0.02rem">事件处置</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-scrollbar> |
| | | <div class="event-report"> |
| | | <el-dialog |
| | |
| | | // import WfsHelper from '@components/helpers/WfsHelper' |
| | | // import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | import DisposalEvent from '../../../base-page/enterprise-emergency/DisposalEvent' |
| | | // import EventHandling from '@components/base-page/enterprise-emergency/event-handling/EventHandling' |
| | | import eventBus from '../../../../eventBus' |
| | | import DisposalEvent from '../../../base-page/enterprise-emergency/DisposalEvent' |
| | | import EventsReported from '../../../base-page/enterprise-emergency/events-reported/EventsReported' |
| | | // import EventHandling from '@components/base-page/enterprise-emergency/event-handling/EventHandling' |
| | | |
| | | export default { |
| | | name: 'EventQuery', |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | // 弹框绑定 显示/隐藏 数据 |
| | | dialogVisible: false, |
| | | list: [], |
| | | total: 0, |
| | | activeNum: -1, |
| | | items: [], |
| | | subItems: [], |
| | | // wfs数据请求 |
| | | WfsHelper: null, |
| | | // form 表单绑定数据 |
| | | form: { |
| | | pipelineType: '', |
| | | dataType: '', |
| | |
| | | } |
| | | ] |
| | | }, |
| | | WfsHelper: null |
| | | // active index |
| | | activeNum: -1, |
| | | // 图层 |
| | | items: [], |
| | | subItems: [], |
| | | // 请求数据展示列表 |
| | | list: [], |
| | | // 分页功能 总数量 |
| | | total: 0 |
| | | } |
| | | }, |
| | | mounted () { |
| | | // this.wfsHelper = new WfsHelper() |
| | | // 接收 数据 用来控制 弹出框 的隐藏 |
| | | eventBus.$on('event-report-popup', (obj) => { |
| | | this.dialogVisible = obj |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 事件上报按钮 点击事件 控制弹框的显示/隐藏 |
| | | dialogVisibleChange () { |
| | | this.dialogVisible = !this.dialogVisible |
| | | }, |
| | | // 点击事件管理 |
| | | accordPopup () { |
| | | // eventBus.$emit('disposal-analysis', true) |
| | | |
| | | }, |
| | | // 开始分析 |
| | | startAnalysis () { |
| | | eventBus.$emit('event-handling', {}) |
| | | }, |
| | | disposalfx () { |
| | | window.$layer.open({ |
| | | content: { |
| | | comp: DisposalEvent, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | // info: this.info |
| | | } |
| | | }, |
| | | title: '事件信息' |
| | | }) |
| | | }, |
| | | // radio数据选择 |
| | | redioChange (item) { |
| | |
| | | // 搜索的数据 de 点击事件 |
| | | handleLocation () { |
| | | console.log('val') |
| | | // 时间信息 弹出框 |
| | | window.$layer.open({ |
| | | content: { |
| | | comp: DisposalEvent, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | // info: this.info |
| | | } |
| | | }, |
| | | title: '事件信息' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /*/deep/ .event-report-dialog {*/ |
| | | /* left: 3rem;*/ |
| | | /* top: 1rem;*/ |
| | | /*}*/ |
| | | /*.event-report {*/ |
| | | /deep/ .el-dialog { |
| | | width: 3.343545rem; |
| | | } |
| | | /*}*/ |
| | | |
| | | /deep/ .event-report-dialog { |
| | | left: 3rem; |
| | |
| | | const token = getToken() |
| | | if (!token && to.name !== LOGIN_PAGE_ROUTE_NAME) { |
| | | // 未登录且要跳转的页面不是登录页 |
| | | next({ |
| | | /* next({ |
| | | name: LOGIN_PAGE_ROUTE_NAME // 跳转到登录页 |
| | | }) |
| | | }) */ |
| | | next() // 跳转 |
| | | } else if (!token && to.name === LOGIN_PAGE_ROUTE_NAME) { |
| | | // 未登陆且要跳转的页面是登录页 |
| | | next() // 跳转 |
| | |
| | | * 脉冲效果 |
| | | */ |
| | | export function pulseEffect (xy) { |
| | | window.mapManager.clearHighlight() |
| | | let times = 1000 |
| | | const colors = ['#00f100', '#ff0000'] |
| | | // 插件 效果实现 |