| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907 |
- <template>
- <div style="height:100%;">
- <mapContent ref="mapRef"
- @clickMapHandler="clickMapHandler" @isChecks1="isCheckArray1"
- @showSkDetail="showSkDetail" @currentAdCodeChange="currentAdCodeChange1"></mapContent>
- <legendWidget v-if="checkedLayerList.length>0" :checkedLayerList='checkedLayerList'></legendWidget>
- <!-- 搜索组件 -->
- <searchWidget @searchWidgetEmitHandler="searchWidgetEmitHandler"></searchWidget>
- <!--人员信息-->
- <personInfo v-if="personInfoDialog" :perInfoCon="personInfoContent" @trackHistory="trackHistory" @showGroupInfo="showGroupInfo" @closePerInfo="closeInfo"></personInfo>
- <!-- 人员所在组信息 -->
- <!-- <personInGroupInfo v-if="showPersonInGroupInfo" :currentPersName="currentPersName" :currentIsAdmin="currentIsAdmin" :currentPersId="currentPersId" @closeHandler="closeInfo"></personInGroupInfo> -->
- <!-- 人员所在组信息 -->
- <personGzqk
- v-if="showPersonInGroupInfo"
- :currentPersName="currentPersName"
- :currentIsAdmin="currentIsAdmin"
- :currentPersId="currentPersId"
- @closeHandler="closeInfo"
- @showPerGzqkOnMap="showPerGzqkOnMap"></personGzqk>
- <!--水毁工程-->
- <WaterloggingProject v-if="shInfoDialog" :shInfoCon="shInfoContent" @closeModal="closeInfo" :Title="shTitle"></WaterloggingProject>
- <!--人饮工程-->
- <renyinProject v-if="ryInfoDialog" :ryTitle="ryTitle" :ryObjId="ryObjId" @closeModal="closeInfo"></renyinProject>
- <!--小水库督查信息-->
- <!-- <shuikuProject v-if="xskInfoDialog" :xskRgstrId="xskRgstrId" :Title="skTitle" @closeModal="closeInfo" :skInfo="xskInfo"></shuikuProject> -->
- <shuiKuTianBaoShow
- ref="xskTianBaoRef"
- v-if="xskInfoDialog"
- :currentObjectRgstrId="xskRgstrId"
- :currentResCode="currentRsCode"
- :currentObjectId="currentObjId"
- :currentObjectName="currentRsName"
- @cancelHandler="skCancelHandler"
- ></shuiKuTianBaoShow>
- <!--地下水-->
- <dixiashuiProject v-if="modal_dixiashui" @closeDraggable="closeInfo" :propsStcd="stcd" :djbId = "djbId" :currentObjectId="currentObjectId"></dixiashuiProject>
- <!-- 水闸督查信息 -->
- <szDuChaInfo v-if="showSzDuChaInfo"
- :currentObjectRgstrId="currentObjectRgstrId"
- :currentGroupId="currentGroupId"
- :currentResCode="currentSzCode"
- :currentObjectId="currentObjectId"
- :currentObjectName="currentObjectName"
- showOrEdit="show"
- @cancelHandler="szCancelHandler"></szDuChaInfo>
- <!-- 水库基础信息 (基础表) -->
- <jichuxinxiSk ref="skJcxxRef" v-if="showSkBaseInfo" :currentResCode=currentRsCode></jichuxinxiSk>
- <!-- 水库基础信息 (基础表) -->
- <jichuxinxiDxs ref="dxsJcxxRef" v-if="showDxsBaseInfo" :currentDxsCode=currentDxsCode></jichuxinxiDxs>
- <!-- 水源地 (基础表) -->
- <jichuxinxiSyd ref="sydJcxxRef" v-if="showSydBaseInfo" :currentResCode=currentEngSurId></jichuxinxiSyd>
- <!-- 150县 (基础表) -->
- <jichuxinxi150 ref="150JcxxRef" v-if="show150BaseInfo" :currentResCode=currentAdCode_150></jichuxinxi150>
- <!-- 行政村 (基础表) -->
- <jichuxinxiXzc ref="xzcJcxxRef" v-if="showXzcBaseInfo" :currentResCode=villageCode></jichuxinxiXzc>
- <!-- 农村饮水工程基础信息 (基础表) -->
- <jichuxinxiNcysgc ref="ncysgcJcxxRef" v-if="showNcysgcBaseInfo" :currentCwsCode=currentCwsCode></jichuxinxiNcysgc>
- <!-- 水毁工程基础信息 (基础表) -->
- <jichuxinxiShuihui ref="shuihuiJcxxRef" v-if="showshuihuiBaseInfo" :currentResCode=locAd></jichuxinxiShuihui>
- <!-- 水闸基础信息 (基础表) -->
- <jichuxinxiShuiza ref="shuizaJcxxRef" v-if="showshuizaBaseInfo" :currentResCode=currentSzobjCode></jichuxinxiShuiza>
- <!-- 全部水闸基础信息 (基础表) -->
- <jichuxinxiSzAll ref="szAllJcxxRef" v-if="showszAllBaseInfo" :currentResCode=currentSzobjCode></jichuxinxiSzAll>
- <!-- 水闸基础信息 (基础表) -->
- <jichuxinxi172 ref="172JcxxRef" v-if="show172BaseInfo" :currentResCode=current172Code></jichuxinxi172>
- <!-- 取水口基础信息 (基础表) -->
- <jichuxinxiQsk ref="qskJcxxRef" v-if="showQskBaseInfo" :currentResCode=currentQskCode></jichuxinxiQsk>
- <!-- 地表水基础信息 (基础表) -->
- <jichuxinxiDbs ref="dbsJcxxRef" v-if="showDbsBaseInfo" :currentResCode=currentDbsCode></jichuxinxiDbs>
- <!-- 水文站基础信息 (基础表) -->
- <jichuxinxiSwz ref="swzJcxxRef" v-if="showSwzBaseInfo" :currentResCode=currentSwzCode></jichuxinxiSwz>
- <!-- 轨迹列表 -->
- <trackHistoryTable
- v-if="showTrackHistory"
- :perId="currentPersId"
- @showTrackOnMap="showTrackOnMap"
- @closeDraggable="closeInfo"></trackHistoryTable>
- <!--列表-->
- <listModel
- @closeModal_data_common="closeInfo"
- @peopleInfo="peopleInfo"
- @groupHandler="groupHandler"
- v-if="dcryDialog"
- :checkedLayerList='checkedLayerList'
- :currentAdCode="currentAdCode"
- @skInfo="skInfo"
- @ryInfo="ryInfo"
- @shgcInfo="shgcInfo"
- @dxsInfo="dxsInfo"
- @szInfo="szInfo"
- @szInfoAll="szInfoAll"
- @Info172="Info172"
- @QskInfo="QskInfo"
- @DbsInfo="DbsInfo"
- @SwzInfo="SwzInfo"
- ></listModel>
- <!-- 添加对象到督查计划 -->
- <addObjToPlan ref="addToPlanRef" v-if="showPlanList" @addPbjToPlanSucc="addPbjToPlanSucc" :currentResCode=currentRsCode :currentRsName=currentRsName :currentRsLong=currentRsLong :currentRsLat=currentRsLat></addObjToPlan>
- <!--列表控制-->
- <div style="position: fixed;top: 96px;right: 300px;">
- <el-button icon="el-icon-s-data" @click.native="lbClick">数据表</el-button>
- </div>
- </div>
- </template>
- <script>
- export default {
- components: {
- mapContent: resolve => {
- require(['./mapContent.vue'], resolve)
- },
- legendWidget: resolve => {
- require(['./components/legend'], resolve)
- },
- searchWidget: resolve => {
- require(['./components/searchWidget'], resolve)
- },
- jichuxinxiSk: resolve => {
- require(['./components/jichuxinxi_sk'], resolve)
- },
- jichuxinxiDxs: resolve => {
- require(['./components/jichuxinxi_dxs'], resolve)
- },
- jichuxinxiSyd: resolve => {
- require(['./components/jichuxinxi_nysyd'], resolve)
- },
- jichuxinxi150: resolve => {
- require(['./components/jichuxinxi_ny150'], resolve)
- },
- jichuxinxiXzc: resolve => {
- require(['./components/jichuxinxi_nyXzc'], resolve)
- },
- jichuxinxiNcysgc: resolve => {
- require(['./components/jichuxinxi_ncysgc'], resolve)
- },
- jichuxinxiShuihui: resolve => {
- require(['./components/jichuxinxi_shuihui'], resolve)
- },
- jichuxinxiShuiza: resolve => {
- require(['./components/jichuxinxi_shuiza'], resolve)
- },
- jichuxinxiSzAll: resolve => {
- require(['./components/jichuxinxi_szAll'], resolve)
- },
- jichuxinxi172: resolve => {
- require(['./components/jichuxinxi_172'], resolve)
- },
- jichuxinxiQsk: resolve => {
- require(['./components/jichuxinxi_qsk'], resolve)
- },
- jichuxinxiDbs: resolve => {
- require(['./components/jichuxinxi_dbs'], resolve)
- },
- jichuxinxiSwz: resolve => {
- require(['./components/jichuxinxi_swz'], resolve)
- },
- addObjToPlan: resolve => {
- require(['./components/addObjToPlan'], resolve)
- },
- personInfo: resolve => {
- require(['./components/personInfo'], resolve)
- },
- personInGroupInfo: resolve => {
- require(['./components/personInGroupInfo'], resolve)
- },
- personGzqk: resolve => {
- require(['./components/personGzqk'], resolve)
- },
- WaterloggingProject: resolve => {
- require(['./components/WaterloggingProject'], resolve)
- },
- renyinProject: resolve => {
- require(['./components/renyinProject'], resolve)
- },
- shuikuProject: resolve => {
- require(['./components/shuikuProject'], resolve)
- },
- shuiKuTianBaoShow: resolve => {//展示水库督查信息
- require(['../duChaTianBao/shuiKuTianbaoShow.vue'], resolve)
- },
- dixiashuiProject: resolve => {
- require(['../zonghexinxi/groundWateDialog'], resolve)
- },
- listModel: resolve => {
- require(['./components/listModel'], resolve)
- },
- trackHistoryTable: resolve => {
- require(['./components/trackHistoryTable'], resolve)
- },
- szDuChaInfo: resolve => {
- require(['../duChaTianBao/sztb.vue'], resolve)
- },
- },
- props: [],
- computed: {},
- data() {
- return {
- currentAdCode:localStorage.getItem("currentRlcode") ?localStorage.getItem("currentRlcode") : "350000000000",//当前行政区编码
- showSzDuChaInfo:false,//水闸
- currentObjectRgstrId:'',//水闸
- currentGroupId:'',//水闸
- currentSzCode:'',//水闸
- currentObjectName:'',//水闸
- showPlanList: false,
- currentRsCode: '',//当前水库id
- currentRsName: '',//当前水库名称
- currentRsLong: '',
- currentRsLat: '',
- currentRgstrId: '',//当前登记表id
- currentObjId: '',//当前objId
- showSkBaseInfo: false,
- showDxsBaseInfo:false,
- currentDxsCode:'',
- currentSzobjCode:'',
- showXzcBaseInfo: false,
- show150BaseInfo: false,
- showSydBaseInfo: false,
- showNcysgcBaseInfo:false,//农村饮水工程基础信息
- showshuihuiBaseInfo: false,
- currentCwsCode:'',//农村饮水工程编码
- currentAdCode_150:'',//150县adcode
- personInfoDialog: false,
- showPersonInGroupInfo: false,
- currentPersId: '',//当前选中的人员id
- currentIsAdmin: '',//当前选中人员是否管理员
- currentPersName: '',//当前选中人员姓名
- showTrackHistory:false,//人员轨迹列表
- personInfoContent: '',
- shInfoDialog: false,
- shInfoContent: '',
- ryInfoDialog: false,
- xskInfoDialog: false,
- xskRgstrId: '',
- skTitle: '',
- shTitle: '',
- ryTitle:'',
- checkedLayerList: [
- {
- id: 'personGraphicLayer',
- title: '人员',
- list: [
- {
- name: '在线',
- url: '/src/views/zongHeXinXiNew/assets/online.png',
- }, {
- name: '不在线',
- url: '/src/views/zongHeXinXiNew/assets/offline.png',
- }
- ]
- }
- ],//被选中的图层
- checkedLayerLists:[],
- dcryDialog: false,
- xskInfo:'',
- ryObjId:'',
- stcd:"",
- djbId:"",
- currentObjectId:"",
- modal_dixiashui:false,
- villageCode:'',
- locAd: '',
- currentEngSurId:'',
- showshuizaBaseInfo: false,
- showszAllBaseInfo: false,
- show172BaseInfo: false,
- current172Code: "",
- showQskBaseInfo: false,
- currentQskCode: "",
- showDbsBaseInfo: false,
- currentDbsCode: "",
- showSwzBaseInfo: false,
- currentSwzCode: "",
- }
- },
- watch: {},
- mounted() {
- },
- methods: {
- currentAdCodeChange1(val){
- if(val == "000000000000"){
- this.currentAdCode = '';
- }else{
- this.currentAdCode = val;//当前行政区编码
- }
- },
- clickMapHandler(layerId, obj) {//点击地图图层 显示详细信息
- console.log(obj);
- switch (layerId) {
- //人员督查
- case "personGraphicLayer":
- this.personInfoDialog = true;
- this.personInfoContent = obj;
- break;
- //水库
- case "allSkGraphicLayer":
- this.currentRsCode = obj.rsCode;
- this.currentRsName = obj.rsName;
- if (obj.longitude) {
- this.currentRsLong = obj.longitude;
- }
- if (obj.latitude) {
- this.currentRsLat = obj.latitude;
- }
- if (obj.rgstrId) {
- this.currentRgstrId = obj.rgstrId;
- }
- if (obj.objId) {
- this.currentObjId = obj.objId;
- }
- // if (type == "base") {//基础信息
- this.showSkBaseInfo = true;
- if (this.$refs['skJcxxRef']) {
- this.$refs['skJcxxRef'].showDialog();
- }
- // }
- // this.xskInfoDialog = true;
- // this.skTitle = obj.rsName;
- // this.xskRgstrId = obj.rgstrId;
- break;
- case "skGraphicLayer2018":
- this.currentRsCode = obj.rsCode;
- this.currentRsName = obj.rsName;
- if (obj.longitude) {
- this.currentRsLong = obj.longitude;
- }
- if (obj.latitude) {
- this.currentRsLat = obj.latitude;
- }
- if (obj.rgstrId) {
- this.currentRgstrId = obj.rgstrId;
- }
- if (obj.objId) {
- this.currentObjId = obj.objId;
- }
- // if (type == "base") {//基础信息
- this.showSkBaseInfo = true;
- if (this.$refs['skJcxxRef']) {
- this.$refs['skJcxxRef'].showDialog();
- }
- // }
- // this.xskInfoDialog = true;
- // this.xskRgstrId = obj.rgstrId;
- // this.skTitle = obj.rsName;
- break;
- case "skGraphicLayer2019":
- this.xskInfoDialog = true;
- this.xskRgstrId = obj.rgstrId;
- this.currentRsCode = obj.rsCode;
- this.currentObjId = obj.objId;
- this.currentRsName = obj.rsName;
- this.skTitle = obj.rsName;
- if (this.$refs['xskTianBaoRef']) {
- this.$refs['xskTianBaoRef'].showDialog();
- }
- break;
- case "fcskGraphicLayer":
- this.xskInfoDialog = true;
- this.currentRsCode = obj.rsCode;
- this.currentObjId = obj.objId;
- this.currentRsName = obj.rsName;
- this.xskRgstrId = obj.rgstrId;
- this.skTitle = obj.rsName;
- if (this.$refs['xskTianBaoRef']) {
- this.$refs['xskTianBaoRef'].showDialog();
- }
- break;
- case "jhwskGraphicLayer":
- this.currentRsCode = obj.rsCode;
- this.currentRsName = obj.rsName;
- if (obj.longitude) {
- this.currentRsLong = obj.longitude;
- }
- if (obj.latitude) {
- this.currentRsLat = obj.latitude;
- }
- if (obj.rgstrId) {
- this.currentRgstrId = obj.rgstrId;
- }
- if (obj.objId) {
- this.currentObjId = obj.objId;
- }
- // if (type == "base") {//基础信息
- this.showSkBaseInfo = true;
- if (this.$refs['skJcxxRef']) {
- this.$refs['skJcxxRef'].showDialog();
- }
- // }
- // this.xskInfoDialog = true;
- // this.xskRgstrId = obj.rgstrId;
- // this.skTitle = obj.rsName;
- break;
- //人饮
- case "ncysgcGraphicLayer":
- this.ryInfoDialog = true;
- this.ryTitle = obj.cwsName;
- this.ryObjId = obj.objId;
- break;
- case "sydGraphicLayer":
- this.ryInfoDialog = true;
- this.ryObjId = obj.objId;
- this.ryTitle = obj.adNm;
- break;
- case "country150Layer":
- this.ryInfoDialog = true;
- this.ryObjId = obj.objId;
- this.ryTitle = obj.adName;
- break;
- case "xzcGraphicLayer":
- this.ryInfoDialog = true;
- this.ryObjId = obj.objId;
- this.ryTitle = obj.adNm;
- break;
- case "graphicLayer172":
- this.current172Code = obj.id;
- this.show172BaseInfo = true;
- if (this.$refs['172JcxxRef']) {
- this.$refs['172JcxxRef'].showDialog();
- }
- break;
- //水毁
- case "shgcGraphicLayer":
- this.shInfoDialog = true;
- this.shInfoContent = obj;
- this.ryObjId = obj.objId;
- this.shTitle = obj.wtdstNm;
- break;
- //水闸
- case "szGraphicLayer":
- this.currentObjectRgstrId = obj.rgstrId;
- this.currentGroupId = obj.groupId;
- this.currentSzCode = obj.objCode;
- this.currentObjectName = obj.gateName;
- this.currentObjectId = obj.objId;
- this.showSzDuChaInfo = true;
- break;
- case "szGraphicLayerAll":
- this.currentSzobjCode = obj.objCode;
- this.showszAllBaseInfo = true;
- if (this.$refs['szAllJcxxRef']) {
- this.$refs['szAllJcxxRef'].showDialog();
- }
- break;
- //地下水
- case "dxsGraphicLayer":
- this.currentDxsCode = obj.stcd;
- this.showDxsBaseInfo = true;
- if (this.$refs['dxsJcxxRef']) {
- this.$refs['dxsJcxxRef'].showDialog();
- }
- // this.stcd = obj.stcd;
- // this.djbId = '';
- // this.currentObjectId = obj.objId;
- // this.modal_dixiashui = true;
- break;
- //取水口
- case "graphicLayerQsk":
- this.currentQskCode = obj.objCode;
- this.showQskBaseInfo = true;
- if (this.$refs['qskJcxxRef']) {
- this.$refs['qskJcxxRef'].showDialog();
- }
- break;
- //地表水水源地
- case "graphicLayerDbssyd":
- this.currentDbsCode = obj.id;
- this.showDbsBaseInfo = true;
- if (this.$refs['dbsJcxxRef']) {
- this.$refs['dbsJcxxRef'].showDialog();
- }
- break;
- //水文站
- case "graphicLayerSwz":
- this.currentSwzCode = obj.stcd;
- this.showSwzBaseInfo = true;
- if (this.$refs['swzJcxxRef']) {
- this.$refs['swzJcxxRef'].showDialog();
- }
- break;
- }
- },
- addPbjToPlanSucc(){//添加督查计划成功
- this.$refs['mapRef'].graphicChange();//督查计划外 及 2018督查水库 添加到督查计划后 相应的对象应该增加到2019督查
- },
- showSkDetail(type, item) {//水库 基础信息base 督查信息dcxx 加入督查计划plan
- this.currentRsCode = item.rsCode;
- this.currentRsName = item.rsName;
- if (item.longitude) {
- this.currentRsLong = item.longitude;
- }
- if (item.latitude) {
- this.currentRsLat = item.latitude;
- }
- if (item.rgstrId) {
- this.currentRgstrId = item.rgstrId;
- }
- if (item.objId) {
- this.currentObjId = item.objId;
- }
- if (type == "base") {//基础信息
- this.showSkBaseInfo = true;
- if (this.$refs['skJcxxRef']) {
- this.$refs['skJcxxRef'].showDialog();
- }
- } else if (type == "plan") {//添加到督查计划
- this.showPlanList = true;
- if (this.$refs['addToPlanRef']) {
- this.$refs['addToPlanRef'].showDialog();
- }
- } else if (type == "dcxx") {//督查信息
- this.xskRgstrId = item.rgstrId;
- this.skTitle = item.rsName;
- this.xskInfoDialog = true;
- if (this.$refs['xskTianBaoRef']) {
- this.$refs['xskTianBaoRef'].showDialog();
- }
- } else if(type == "skLocate"){//定位
- this.$refs['mapRef'].tableRowClick(item, 'locate', 'sk','allSkGraphicLayer');
- }
- },
- isCheckArray1(item) {
- var _self = this;
- if (item.checked && item.id) {
- _self.checkedLayerList.push(item);
- } else {
- for (var i = 0; i < _self.checkedLayerList.length; i++) {
- if (item.id == _self.checkedLayerList[i].id) {
- _self.checkedLayerList.splice(i, 1);
- }
- }
- }
- _self.checkedLayerLists = _self.checkedLayerList;
- },
- showGroupInfo(id, isAdmin, persName) {//展示人员所在组
- this.currentPersId = id;
- this.currentIsAdmin = isAdmin;
- this.currentPersName = persName;
- this.showPersonInGroupInfo = true;
- },
- trackHistory(id){//展示人员历史轨迹列表
- this.currentPersId = id;
- this.showTrackHistory = true;
- },
- // 弹窗关闭
- closeInfo(name) {
- switch (name) {
- case 'ryxx':
- this.personInfoDialog = false;
- break;
- case 'shgc':
- this.shInfoDialog = false;
- break;
- case 'xsk':
- this.xskInfoDialog = false;
- break;
- case 'lb':
- this.dcryDialog = false;
- this.checkedLayerLists = [];
- case 'groupInfo':
- this.showPersonInGroupInfo = false;
- this.$refs['mapRef'].clearLayer('trackGraphicLayer1');
- break;
- case 'dcryDialog':
- this.ryInfoDialog = false;
- break;
- case 'trackTable':
- this.showTrackHistory = false;
- this.$refs['mapRef'].clearLayer('trackGraphicLayer');
- this.$refs['mapRef'].clearLayer('trackGraphicLayer1');
- break;
- case 'dxs':
- this.modal_dixiashui = false;
- }
- },
- //人员信息
- peopleInfo(row,id,info,recPersId){//lacaiton-定位,track-轨迹,group-加入工作组
- console.log(row,id,info,recPersId);
- if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'person');
- }else if(info == 'track'){
- this.currentPersId = row.guid;
- this.showTrackHistory = true;
- // this.$refs['mapRef'].tableRowClick(row, 'track', 'person');
- }else if(info =='group'){
- // this.currentPersId = recPersId;
- this.currentPersId = row.guid;
- this.currentIsAdmin = row.permission;
- this.currentPersName = row.persName;
- this.showPersonInGroupInfo = true;
- }
- },
- showTrackOnMap(row,type){//人员轨迹 历史轨迹列表
- this.$refs['mapRef'].tableRowClick(row, 'track', 'track');
- },
- // 水库列表-操作-事件
- skInfo(row,id,info) {//lacaiton-定位,baseInfo-基础信息,dcInfo-督查信息,addDcInfo-加入督查信息
- console.log(row,id,info);
- if(info == 'dcInfo'){
- this.xskRgstrId = row.rgstrId;
- this.skTitle = row.rsName;
- this.xskInfoDialog = true;
- }else if(info == "loaction"){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'sk',id);
- }else if(info == "baseInfo"){
- this.currentRsCode = row.rsCode;
- this.showSkBaseInfo = true;
- if (this.$refs['skJcxxRef']) {
- this.$refs['skJcxxRef'].showDialog();
- }
- }else if(info == "addDcInfo"){
- this.currentRsCode = row.rsCode;
- this.currentRsName = row.rsName;
- this.currentRsLong = row.longitude;
- this.currentRsLat = row.latitude;
- this.showPlanList = true;
- if (this.$refs['addToPlanRef']) {
- this.$refs['addToPlanRef'].showDialog();
- }
- }
- },
- //人饮(row,id,点击)
- ryInfo(row,id,info,){//lacaiton-定位,baseInfo-基础信息,dcInfo-督查信息
- console.log(row,id,info);
- //农饮工程
- if(id == 'ncysgcGraphicLayer'){
- if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'ncysgc',id);
- }
- else if(info == 'baseInfo'){
- this.currentCwsCode = row.cwsCode;
- this.showNcysgcBaseInfo = true;
- if (this.$refs['ncysgcJcxxRef']) {
- this.$refs['ncysgcJcxxRef'].showDialog();
- }
- }
- else if(info == 'dcInfo'){
- this.ryObjId = row.objId;
- this.ryTitle = row.cwsName;
- this.ryInfoDialog = true;
- }
- }
- //水源地
- else if(id == 'sydGraphicLayer'){
- if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'syd',id);
- }
- else if(info == 'baseInfo'){
- this.currentEngSurId = row.engSurId;
- // this.ryTitle = row.cwsName;
- this.showSydBaseInfo = true;
- if (this.$refs['sydJcxxRef']) {
- this.$refs['sydJcxxRef'].showDialog();
- }
- }
- else if(info == 'dcInfo'){
- this.ryObjId = row.objId;
- this.ryTitle = row.waterSourceNm;
- this.ryInfoDialog = true;
- }
- }
- // 150县
- else if(id == 'country150Layer'){
- if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', '150',id);
- }
- else if(info == 'baseInfo'){
- this.currentAdCode_150 = row.adCode;
- this.show150BaseInfo = true;
- if (this.$refs['150JcxxRef']) {
- this.$refs['150JcxxRef'].showDialog();
- }
- }
- else if(info == 'dcInfo'){
- this.ryObjId = row.objId;
- this.ryTitle = row.adName;
- this.ryInfoDialog = true;
- }
- }
- //督查行政村
- else if(id == 'xzcGraphicLayer'){
- if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'xzc',id);
- }
- else if(info == 'baseInfo'){
- this.villageCode = row.villageCode;
- this.showXzcBaseInfo = true;
- if (this.$refs['xzcJcxxRef']) {
- this.$refs['xzcJcxxRef'].showDialog();
- }
- }
- else if(info == 'dcInfo'){
- this.ryObjId = row.objId;
- this.ryTitle = row.adNm;
- this.ryInfoDialog = true;
- }
- }
- },
- //水毁工程
- shgcInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- this.shInfoContent = row;
- this.shTitle = row.wtdstNm;
- this.shInfoDialog = true;
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'shgc',id);
- }else if(info == 'baseInfo'){
- this.locAd = row.wtdstId;
- this.showshuihuiBaseInfo = true;
- if (this.$refs['shuihuiJcxxRef']) {
- this.$refs['shuihuiJcxxRef'].showDialog();
- }
- }
- },
- //地下水
- dxsInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'dxs',id);
- }else if(info == 'baseInfo'){
- this.currentDxsCode = row.stcd;
- this.showDxsBaseInfo = true;
- if (this.$refs['dxsJcxxRef']) {
- this.$refs['dxsJcxxRef'].showDialog();
- }
- }
- },
- //水闸
- szInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- this.currentObjectRgstrId = row.rgstrId;
- this.currentGroupId = row.groupId;
- this.currentSzCode = row.code;
- this.currentObjectName = row.nm;
- this.currentObjectId = row.objId;
- this.showSzDuChaInfo = true;
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'sz',id);
- }else if(info == 'baseInfo'){
- this.currentSzobjCode = row.code;
- this.showshuizaBaseInfo = true;
- if (this.$refs['shuizaJcxxRef']) {
- this.$refs['shuizaJcxxRef'].showDialog();
- }
- }
- },
- //全部水闸
- szInfoAll(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'szAll',id);
- }else if(info == 'baseInfo'){
- this.currentSzobjCode = row.objCode;
- this.showszAllBaseInfo = true;
- if (this.$refs['szAllJcxxRef']) {
- this.$refs['szAllJcxxRef'].showDialog();
- }
- }
- },
- szCancelHandler(){
- this.showSzDuChaInfo = false;
- },
- skCancelHandler(){
- this.xskInfoDialog = false
- },
- //Info172
- Info172(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', '172',id);
- }else if(info == 'baseInfo'){
- this.current172Code = row.code;
- this.show172BaseInfo = true;
- if (this.$refs['172JcxxRef']) {
- this.$refs['172JcxxRef'].showDialog();
- }
- }
- },
- QskInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'qsk',id);
- }else if(info == 'baseInfo'){
- this.currentQskCode = row.objCode;
- this.showQskBaseInfo = true;
- if (this.$refs['qskJcxxRef']) {
- this.$refs['qskJcxxRef'].showDialog();
- }
- }
- },
- DbsInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'dbssyd',id);
- }else if(info == 'baseInfo'){
- this.currentDbsCode = row.id;
- this.showDbsBaseInfo = true;
- if (this.$refs['dbsJcxxRef']) {
- this.$refs['dbsJcxxRef'].showDialog();
- }
- }
- },
- SwzInfo(row,id,info,){
- console.log(row,id,info);
- if(info == 'dcInfo'){
- }else if(info == 'location'){
- this.$refs['mapRef'].tableRowClick(row, 'locate', 'swz',id);
- }else if(info == 'baseInfo'){
- this.currentSwzCode = row.stcd;
- this.showSwzBaseInfo = true;
- if (this.$refs['swzJcxxRef']) {
- this.$refs['swzJcxxRef'].showDialog();
- }
- }
- },
- groupHandler(currentPersId, currentIsAdmin, currentPersName) {//工作组
- this.currentPersId = currentPersId;
- this.currentIsAdmin = currentIsAdmin;
- this.currentPersName = currentPersName;
- this.showPersonInGroupInfo = true;
- },
- lbClick(){
- if(this.checkedLayerList.length){
- this.dcryDialog = !this.dcryDialog;
- }else{
- this.$message('请选择左侧图层');
- }
- },
- searchWidgetEmitHandler(item,type,typeDetail){
- if(type == 'rsvr'){//水库
- this.showSkDetail(typeDetail,item)
- }else if(type == 'pers'){
- if(typeDetail == 'personInfo'){
- this.personInfoDialog = true;
- this.personInfoContent = item;
- }else{
- this.peopleInfo(item,'',typeDetail);
- }
- }else if(type == 'ny'){
- this.ryInfo(item,'ncysgcGraphicLayer',typeDetail)
- }else if(type == 'xzc'){
- this.ryInfo(item,'xzcGraphicLayer',typeDetail)
- }else if(type == 'dcx'){
- this.ryInfo(item,'country150Layer',typeDetail)
- }else if(type == 'sh'){
- this.shgcInfo(item,'shgcGraphicLayer',typeDetail)
- }else if(type == '172'){
- item['code'] = item.id;
- this.Info172(item,'graphicLayer172',typeDetail)
- }else if(type == 'dxs'){
- this.dxsInfo(item,'dxsGraphicLayer',typeDetail)
- }else if(type == 'sz'){
- item['code'] = item.objCode;
- this.szInfo(item,'szGraphicLayer',typeDetail)
- }else if(type == 'syd'){
- this.DbsInfo(item,'graphicLayerDbssyd',typeDetail)
- }else if(type == 'qsk'){
- this.QskInfo(item,'graphicLayerQsk',typeDetail)
- }else if(type == 'swz'){
- this.SwzInfo(item,'graphicLayerSwz',typeDetail)
- }
- // if(type == "track"){//人员轨迹
- // this.currentPersId = item.guid;
- // this.showTrackHistory = true;
- // }else if(type == 'dcz'){//督查组
- // this.currentPersName = item.persName;
- // this.currentIsAdmin = item.permission;
- // this.currentPersId = item.guid;
- // this.showPersonInGroupInfo = true;
- // }else if(type == 'personInfo'){//人员信息 名牌
- // this.personInfoContent = item;
- // this.personInfoDialog = true;
- // }else if(type == "personLocate"){
- // this.$refs['mapRef'].tableRowClick(item, 'locate', 'person');
- // }
- },
- //地图展示人员轨迹 点
- showPerGzqkOnMap(item){
- this.$refs['mapRef'].showPerGzqkOnMap(item);
- }
- }
- }
- </script>
- <style>
- </style>
|