| | |
| | | </el-form-item> |
| | | <el-form-item label="事件类型:"> |
| | | <el-radio-group v-model="form.transferData" class="levelOfRisk"> |
| | | <el-radio v-for="(item,index) in form.levelOfRisk" :label="item.value" :key="index"> |
| | | <el-radio v-for="(item,index) in form.levelOfRisk" :label="item.value" :key="index" |
| | | @change="redioChange(item.name)"> |
| | | <span class="levelOfRisk-type">{{ item.name }}</span> |
| | | </el-radio> |
| | | </el-radio-group> |
| | |
| | | </el-form> |
| | | </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':''"> |
| | | <!-- <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>--> |
| | | <!-- <h5>--> |
| | | <!-- 事件事件:2021年3月21日--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">删除</el-button>--> |
| | | <!-- </h5>--> |
| | | <!-- <p>--> |
| | | <!-- 事件状态:<span>审批阶段</span>--> |
| | | <!-- </p>--> |
| | | <!-- <p>事件类型:<span>{{ item.properties.pipecode }}</span>--> |
| | | <!-- <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">事件管理--> |
| | | <!-- </el-button>--> |
| | | <!-- </p>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="environmental-risk-list"> |
| | | <!-- <i class="state"></i>--> |
| | | <img class="state" :src="getImgSrc()" style="background: none"/> |
| | | <div> |
| | | <h3 @click="handleLocation(item,index)">事件名称:XXX事件</h3> |
| | | <h3>事件名称:XXX事件</h3> |
| | | <h5> |
| | | 事件事件:2021年3月21日 |
| | | <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">删除</el-button> |
| | |
| | | <p> |
| | | 事件状态:<span>审批阶段</span> |
| | | </p> |
| | | <p>事件类型:<span>{{ item.properties.pipecode }}</span> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">事件管理 |
| | | <p>事件类型:<span>模拟管线事件</span> |
| | | <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" |
| | | @click="accordPopup()"> |
| | | <span>事件管理</span> |
| | | </el-button> |
| | | </p> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import { LayerEntEmer } from '../../../../../conf/layers/LayerEntEmer' |
| | | // import { LayerEvent } from '../../../../../conf/layers/LayerEvent' |
| | | // import { LayerResources } from '../../../../../conf/layers/LayerResources' |
| | | |
| | | import ReportPopup from './ReportPopup' |
| | | |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | // import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | export default { |
| | | name: 'EventQuery', |
| | |
| | | this.wfsHelper = new WfsHelper() |
| | | }, |
| | | methods: { |
| | | // 点击事件管理 |
| | | accordPopup () { |
| | | console.log('item') |
| | | }, |
| | | // radio数据选择 |
| | | redioChange (item) { |
| | | console.log(item) |
| | | }, |
| | | // 根据数据返回展示不同的图片 |
| | | getImgSrc () { |
| | | const icon = this.form.dataType.icon |
| | | return icon ? 'assets/images/map/' + icon : '' |
| | | }, |
| | | // form 2 表单数据选择事件 |
| | | handleDataType () { |
| | | this.list = [] |
| | | }, |
| | | // form 表单数据选择 |
| | | handlePipelineType (val) { |
| | | this.list = [] |
| | | for (let i = 0; i < this.items.length; i++) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | // 数据搜索事件 |
| | | async handleSearch () { |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | // todo 现在企业应急还没区分开类型,后面改 |
| | | // this.wfsHelper.setTypeName([this.form.dataType.typeName]) |
| | | this.wfsHelper.setTypeName(['sewer:emergency']) |
| | | if (this.form.keyword) { |
| | | this.wfsHelper.addLike('name', this.form.keyword) |
| | | } |
| | | const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.list = res.features |
| | | } |
| | | |
| | | }, |
| | | handleLocation (val, index) { |
| | | console.log(val) |
| | | this.activeNum = index |
| | | // layer && layer.openPopup() |
| | | // window.layerFactory.flyByFeature(val, this.form.dataType.code) |
| | | window.map.flyTo([val.properties.y, val.properties.x], 15) |
| | | }, |
| | | btnAffiliatedFacilities () { |
| | | console.log('item') |
| | | window.$layer.open({ |
| | | content: { |
| | | content: ReportPopup, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | // storagePlaceId: e.layer.options.totransferData.StoragePlaceId |
| | | } |
| | | } |
| | | // title: 'title' // 标题 |
| | | }) |
| | | // 搜索的数据点击事件 |
| | | handleLocation () { |
| | | console.log('val') |
| | | } |
| | | } |
| | | } |