c1b5a0477b9aef8f71f0feb85cde06ea8973c03f.svn-base 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <div style="height:100%;">
  3. <mapContent ref="mapRef"
  4. @clickMapHandler="clickMapHandler" @isChecks1="isCheckArray1"
  5. @showSkDetail="showSkDetail" @currentAdCodeChange="currentAdCodeChange1"></mapContent>
  6. <legendWidget v-if="checkedLayerList.length>0" :checkedLayerList='checkedLayerList'></legendWidget>
  7. <!-- 搜索组件 -->
  8. <searchWidget @searchWidgetEmitHandler="searchWidgetEmitHandler"></searchWidget>
  9. <!--人员信息-->
  10. <personInfo v-if="personInfoDialog" :perInfoCon="personInfoContent" @trackHistory="trackHistory" @showGroupInfo="showGroupInfo" @closePerInfo="closeInfo"></personInfo>
  11. <!-- 人员所在组信息 -->
  12. <!-- <personInGroupInfo v-if="showPersonInGroupInfo" :currentPersName="currentPersName" :currentIsAdmin="currentIsAdmin" :currentPersId="currentPersId" @closeHandler="closeInfo"></personInGroupInfo> -->
  13. <!-- 人员所在组信息 -->
  14. <personGzqk
  15. v-if="showPersonInGroupInfo"
  16. :currentPersName="currentPersName"
  17. :currentIsAdmin="currentIsAdmin"
  18. :currentPersId="currentPersId"
  19. @closeHandler="closeInfo"
  20. @showPerGzqkOnMap="showPerGzqkOnMap"></personGzqk>
  21. <!--水毁工程-->
  22. <WaterloggingProject v-if="shInfoDialog" :shInfoCon="shInfoContent" @closeModal="closeInfo" :Title="shTitle"></WaterloggingProject>
  23. <!--人饮工程-->
  24. <renyinProject v-if="ryInfoDialog" :ryTitle="ryTitle" :ryObjId="ryObjId" @closeModal="closeInfo"></renyinProject>
  25. <!--小水库督查信息-->
  26. <!-- <shuikuProject v-if="xskInfoDialog" :xskRgstrId="xskRgstrId" :Title="skTitle" @closeModal="closeInfo" :skInfo="xskInfo"></shuikuProject> -->
  27. <shuiKuTianBaoShow
  28. ref="xskTianBaoRef"
  29. v-if="xskInfoDialog"
  30. :currentObjectRgstrId="xskRgstrId"
  31. :currentResCode="currentRsCode"
  32. :currentObjectId="currentObjId"
  33. :currentObjectName="currentRsName"
  34. @cancelHandler="skCancelHandler"
  35. ></shuiKuTianBaoShow>
  36. <!--地下水-->
  37. <dixiashuiProject v-if="modal_dixiashui" @closeDraggable="closeInfo" :propsStcd="stcd" :djbId = "djbId" :currentObjectId="currentObjectId"></dixiashuiProject>
  38. <!-- 水闸督查信息 -->
  39. <szDuChaInfo v-if="showSzDuChaInfo"
  40. :currentObjectRgstrId="currentObjectRgstrId"
  41. :currentGroupId="currentGroupId"
  42. :currentResCode="currentSzCode"
  43. :currentObjectId="currentObjectId"
  44. :currentObjectName="currentObjectName"
  45. showOrEdit="show"
  46. @cancelHandler="szCancelHandler"></szDuChaInfo>
  47. <!-- 水库基础信息 (基础表) -->
  48. <jichuxinxiSk ref="skJcxxRef" v-if="showSkBaseInfo" :currentResCode=currentRsCode></jichuxinxiSk>
  49. <!-- 水库基础信息 (基础表) -->
  50. <jichuxinxiDxs ref="dxsJcxxRef" v-if="showDxsBaseInfo" :currentDxsCode=currentDxsCode></jichuxinxiDxs>
  51. <!-- 水源地 (基础表) -->
  52. <jichuxinxiSyd ref="sydJcxxRef" v-if="showSydBaseInfo" :currentResCode=currentEngSurId></jichuxinxiSyd>
  53. <!-- 150县 (基础表) -->
  54. <jichuxinxi150 ref="150JcxxRef" v-if="show150BaseInfo" :currentResCode=currentAdCode_150></jichuxinxi150>
  55. <!-- 行政村 (基础表) -->
  56. <jichuxinxiXzc ref="xzcJcxxRef" v-if="showXzcBaseInfo" :currentResCode=villageCode></jichuxinxiXzc>
  57. <!-- 农村饮水工程基础信息 (基础表) -->
  58. <jichuxinxiNcysgc ref="ncysgcJcxxRef" v-if="showNcysgcBaseInfo" :currentCwsCode=currentCwsCode></jichuxinxiNcysgc>
  59. <!-- 水毁工程基础信息 (基础表) -->
  60. <jichuxinxiShuihui ref="shuihuiJcxxRef" v-if="showshuihuiBaseInfo" :currentResCode=locAd></jichuxinxiShuihui>
  61. <!-- 水闸基础信息 (基础表) -->
  62. <jichuxinxiShuiza ref="shuizaJcxxRef" v-if="showshuizaBaseInfo" :currentResCode=currentSzobjCode></jichuxinxiShuiza>
  63. <!-- 全部水闸基础信息 (基础表) -->
  64. <jichuxinxiSzAll ref="szAllJcxxRef" v-if="showszAllBaseInfo" :currentResCode=currentSzobjCode></jichuxinxiSzAll>
  65. <!-- 水闸基础信息 (基础表) -->
  66. <jichuxinxi172 ref="172JcxxRef" v-if="show172BaseInfo" :currentResCode=current172Code></jichuxinxi172>
  67. <!-- 取水口基础信息 (基础表) -->
  68. <jichuxinxiQsk ref="qskJcxxRef" v-if="showQskBaseInfo" :currentResCode=currentQskCode></jichuxinxiQsk>
  69. <!-- 地表水基础信息 (基础表) -->
  70. <jichuxinxiDbs ref="dbsJcxxRef" v-if="showDbsBaseInfo" :currentResCode=currentDbsCode></jichuxinxiDbs>
  71. <!-- 水文站基础信息 (基础表) -->
  72. <jichuxinxiSwz ref="swzJcxxRef" v-if="showSwzBaseInfo" :currentResCode=currentSwzCode></jichuxinxiSwz>
  73. <!-- 轨迹列表 -->
  74. <trackHistoryTable
  75. v-if="showTrackHistory"
  76. :perId="currentPersId"
  77. @showTrackOnMap="showTrackOnMap"
  78. @closeDraggable="closeInfo"></trackHistoryTable>
  79. <!--列表-->
  80. <listModel
  81. @closeModal_data_common="closeInfo"
  82. @peopleInfo="peopleInfo"
  83. @groupHandler="groupHandler"
  84. v-if="dcryDialog"
  85. :checkedLayerList='checkedLayerList'
  86. :currentAdCode="currentAdCode"
  87. @skInfo="skInfo"
  88. @ryInfo="ryInfo"
  89. @shgcInfo="shgcInfo"
  90. @dxsInfo="dxsInfo"
  91. @szInfo="szInfo"
  92. @szInfoAll="szInfoAll"
  93. @Info172="Info172"
  94. @QskInfo="QskInfo"
  95. @DbsInfo="DbsInfo"
  96. @SwzInfo="SwzInfo"
  97. ></listModel>
  98. <!-- 添加对象到督查计划 -->
  99. <addObjToPlan ref="addToPlanRef" v-if="showPlanList" @addPbjToPlanSucc="addPbjToPlanSucc" :currentResCode=currentRsCode :currentRsName=currentRsName :currentRsLong=currentRsLong :currentRsLat=currentRsLat></addObjToPlan>
  100. <!--列表控制-->
  101. <div style="position: fixed;top: 96px;right: 300px;">
  102. <el-button icon="el-icon-s-data" @click.native="lbClick">数据表</el-button>
  103. </div>
  104. </div>
  105. </template>
  106. <script>
  107. export default {
  108. components: {
  109. mapContent: resolve => {
  110. require(['./mapContent.vue'], resolve)
  111. },
  112. legendWidget: resolve => {
  113. require(['./components/legend'], resolve)
  114. },
  115. searchWidget: resolve => {
  116. require(['./components/searchWidget'], resolve)
  117. },
  118. jichuxinxiSk: resolve => {
  119. require(['./components/jichuxinxi_sk'], resolve)
  120. },
  121. jichuxinxiDxs: resolve => {
  122. require(['./components/jichuxinxi_dxs'], resolve)
  123. },
  124. jichuxinxiSyd: resolve => {
  125. require(['./components/jichuxinxi_nysyd'], resolve)
  126. },
  127. jichuxinxi150: resolve => {
  128. require(['./components/jichuxinxi_ny150'], resolve)
  129. },
  130. jichuxinxiXzc: resolve => {
  131. require(['./components/jichuxinxi_nyXzc'], resolve)
  132. },
  133. jichuxinxiNcysgc: resolve => {
  134. require(['./components/jichuxinxi_ncysgc'], resolve)
  135. },
  136. jichuxinxiShuihui: resolve => {
  137. require(['./components/jichuxinxi_shuihui'], resolve)
  138. },
  139. jichuxinxiShuiza: resolve => {
  140. require(['./components/jichuxinxi_shuiza'], resolve)
  141. },
  142. jichuxinxiSzAll: resolve => {
  143. require(['./components/jichuxinxi_szAll'], resolve)
  144. },
  145. jichuxinxi172: resolve => {
  146. require(['./components/jichuxinxi_172'], resolve)
  147. },
  148. jichuxinxiQsk: resolve => {
  149. require(['./components/jichuxinxi_qsk'], resolve)
  150. },
  151. jichuxinxiDbs: resolve => {
  152. require(['./components/jichuxinxi_dbs'], resolve)
  153. },
  154. jichuxinxiSwz: resolve => {
  155. require(['./components/jichuxinxi_swz'], resolve)
  156. },
  157. addObjToPlan: resolve => {
  158. require(['./components/addObjToPlan'], resolve)
  159. },
  160. personInfo: resolve => {
  161. require(['./components/personInfo'], resolve)
  162. },
  163. personInGroupInfo: resolve => {
  164. require(['./components/personInGroupInfo'], resolve)
  165. },
  166. personGzqk: resolve => {
  167. require(['./components/personGzqk'], resolve)
  168. },
  169. WaterloggingProject: resolve => {
  170. require(['./components/WaterloggingProject'], resolve)
  171. },
  172. renyinProject: resolve => {
  173. require(['./components/renyinProject'], resolve)
  174. },
  175. shuikuProject: resolve => {
  176. require(['./components/shuikuProject'], resolve)
  177. },
  178. shuiKuTianBaoShow: resolve => {//展示水库督查信息
  179. require(['../duChaTianBao/shuiKuTianbaoShow.vue'], resolve)
  180. },
  181. dixiashuiProject: resolve => {
  182. require(['../zonghexinxi/groundWateDialog'], resolve)
  183. },
  184. listModel: resolve => {
  185. require(['./components/listModel'], resolve)
  186. },
  187. trackHistoryTable: resolve => {
  188. require(['./components/trackHistoryTable'], resolve)
  189. },
  190. szDuChaInfo: resolve => {
  191. require(['../duChaTianBao/sztb.vue'], resolve)
  192. },
  193. },
  194. props: [],
  195. computed: {},
  196. data() {
  197. return {
  198. currentAdCode:localStorage.getItem("currentRlcode") ?localStorage.getItem("currentRlcode") : "350000000000",//当前行政区编码
  199. showSzDuChaInfo:false,//水闸
  200. currentObjectRgstrId:'',//水闸
  201. currentGroupId:'',//水闸
  202. currentSzCode:'',//水闸
  203. currentObjectName:'',//水闸
  204. showPlanList: false,
  205. currentRsCode: '',//当前水库id
  206. currentRsName: '',//当前水库名称
  207. currentRsLong: '',
  208. currentRsLat: '',
  209. currentRgstrId: '',//当前登记表id
  210. currentObjId: '',//当前objId
  211. showSkBaseInfo: false,
  212. showDxsBaseInfo:false,
  213. currentDxsCode:'',
  214. currentSzobjCode:'',
  215. showXzcBaseInfo: false,
  216. show150BaseInfo: false,
  217. showSydBaseInfo: false,
  218. showNcysgcBaseInfo:false,//农村饮水工程基础信息
  219. showshuihuiBaseInfo: false,
  220. currentCwsCode:'',//农村饮水工程编码
  221. currentAdCode_150:'',//150县adcode
  222. personInfoDialog: false,
  223. showPersonInGroupInfo: false,
  224. currentPersId: '',//当前选中的人员id
  225. currentIsAdmin: '',//当前选中人员是否管理员
  226. currentPersName: '',//当前选中人员姓名
  227. showTrackHistory:false,//人员轨迹列表
  228. personInfoContent: '',
  229. shInfoDialog: false,
  230. shInfoContent: '',
  231. ryInfoDialog: false,
  232. xskInfoDialog: false,
  233. xskRgstrId: '',
  234. skTitle: '',
  235. shTitle: '',
  236. ryTitle:'',
  237. checkedLayerList: [
  238. {
  239. id: 'personGraphicLayer',
  240. title: '人员',
  241. list: [
  242. {
  243. name: '在线',
  244. url: '/src/views/zongHeXinXiNew/assets/online.png',
  245. }, {
  246. name: '不在线',
  247. url: '/src/views/zongHeXinXiNew/assets/offline.png',
  248. }
  249. ]
  250. }
  251. ],//被选中的图层
  252. checkedLayerLists:[],
  253. dcryDialog: false,
  254. xskInfo:'',
  255. ryObjId:'',
  256. stcd:"",
  257. djbId:"",
  258. currentObjectId:"",
  259. modal_dixiashui:false,
  260. villageCode:'',
  261. locAd: '',
  262. currentEngSurId:'',
  263. showshuizaBaseInfo: false,
  264. showszAllBaseInfo: false,
  265. show172BaseInfo: false,
  266. current172Code: "",
  267. showQskBaseInfo: false,
  268. currentQskCode: "",
  269. showDbsBaseInfo: false,
  270. currentDbsCode: "",
  271. showSwzBaseInfo: false,
  272. currentSwzCode: "",
  273. }
  274. },
  275. watch: {},
  276. mounted() {
  277. },
  278. methods: {
  279. currentAdCodeChange1(val){
  280. if(val == "000000000000"){
  281. this.currentAdCode = '';
  282. }else{
  283. this.currentAdCode = val;//当前行政区编码
  284. }
  285. },
  286. clickMapHandler(layerId, obj) {//点击地图图层 显示详细信息
  287. console.log(obj);
  288. switch (layerId) {
  289. //人员督查
  290. case "personGraphicLayer":
  291. this.personInfoDialog = true;
  292. this.personInfoContent = obj;
  293. break;
  294. //水库
  295. case "allSkGraphicLayer":
  296. this.currentRsCode = obj.rsCode;
  297. this.currentRsName = obj.rsName;
  298. if (obj.longitude) {
  299. this.currentRsLong = obj.longitude;
  300. }
  301. if (obj.latitude) {
  302. this.currentRsLat = obj.latitude;
  303. }
  304. if (obj.rgstrId) {
  305. this.currentRgstrId = obj.rgstrId;
  306. }
  307. if (obj.objId) {
  308. this.currentObjId = obj.objId;
  309. }
  310. // if (type == "base") {//基础信息
  311. this.showSkBaseInfo = true;
  312. if (this.$refs['skJcxxRef']) {
  313. this.$refs['skJcxxRef'].showDialog();
  314. }
  315. // }
  316. // this.xskInfoDialog = true;
  317. // this.skTitle = obj.rsName;
  318. // this.xskRgstrId = obj.rgstrId;
  319. break;
  320. case "skGraphicLayer2018":
  321. this.currentRsCode = obj.rsCode;
  322. this.currentRsName = obj.rsName;
  323. if (obj.longitude) {
  324. this.currentRsLong = obj.longitude;
  325. }
  326. if (obj.latitude) {
  327. this.currentRsLat = obj.latitude;
  328. }
  329. if (obj.rgstrId) {
  330. this.currentRgstrId = obj.rgstrId;
  331. }
  332. if (obj.objId) {
  333. this.currentObjId = obj.objId;
  334. }
  335. // if (type == "base") {//基础信息
  336. this.showSkBaseInfo = true;
  337. if (this.$refs['skJcxxRef']) {
  338. this.$refs['skJcxxRef'].showDialog();
  339. }
  340. // }
  341. // this.xskInfoDialog = true;
  342. // this.xskRgstrId = obj.rgstrId;
  343. // this.skTitle = obj.rsName;
  344. break;
  345. case "skGraphicLayer2019":
  346. this.xskInfoDialog = true;
  347. this.xskRgstrId = obj.rgstrId;
  348. this.currentRsCode = obj.rsCode;
  349. this.currentObjId = obj.objId;
  350. this.currentRsName = obj.rsName;
  351. this.skTitle = obj.rsName;
  352. if (this.$refs['xskTianBaoRef']) {
  353. this.$refs['xskTianBaoRef'].showDialog();
  354. }
  355. break;
  356. case "fcskGraphicLayer":
  357. this.xskInfoDialog = true;
  358. this.currentRsCode = obj.rsCode;
  359. this.currentObjId = obj.objId;
  360. this.currentRsName = obj.rsName;
  361. this.xskRgstrId = obj.rgstrId;
  362. this.skTitle = obj.rsName;
  363. if (this.$refs['xskTianBaoRef']) {
  364. this.$refs['xskTianBaoRef'].showDialog();
  365. }
  366. break;
  367. case "jhwskGraphicLayer":
  368. this.currentRsCode = obj.rsCode;
  369. this.currentRsName = obj.rsName;
  370. if (obj.longitude) {
  371. this.currentRsLong = obj.longitude;
  372. }
  373. if (obj.latitude) {
  374. this.currentRsLat = obj.latitude;
  375. }
  376. if (obj.rgstrId) {
  377. this.currentRgstrId = obj.rgstrId;
  378. }
  379. if (obj.objId) {
  380. this.currentObjId = obj.objId;
  381. }
  382. // if (type == "base") {//基础信息
  383. this.showSkBaseInfo = true;
  384. if (this.$refs['skJcxxRef']) {
  385. this.$refs['skJcxxRef'].showDialog();
  386. }
  387. // }
  388. // this.xskInfoDialog = true;
  389. // this.xskRgstrId = obj.rgstrId;
  390. // this.skTitle = obj.rsName;
  391. break;
  392. //人饮
  393. case "ncysgcGraphicLayer":
  394. this.ryInfoDialog = true;
  395. this.ryTitle = obj.cwsName;
  396. this.ryObjId = obj.objId;
  397. break;
  398. case "sydGraphicLayer":
  399. this.ryInfoDialog = true;
  400. this.ryObjId = obj.objId;
  401. this.ryTitle = obj.adNm;
  402. break;
  403. case "country150Layer":
  404. this.ryInfoDialog = true;
  405. this.ryObjId = obj.objId;
  406. this.ryTitle = obj.adName;
  407. break;
  408. case "xzcGraphicLayer":
  409. this.ryInfoDialog = true;
  410. this.ryObjId = obj.objId;
  411. this.ryTitle = obj.adNm;
  412. break;
  413. case "graphicLayer172":
  414. this.current172Code = obj.id;
  415. this.show172BaseInfo = true;
  416. if (this.$refs['172JcxxRef']) {
  417. this.$refs['172JcxxRef'].showDialog();
  418. }
  419. break;
  420. //水毁
  421. case "shgcGraphicLayer":
  422. this.shInfoDialog = true;
  423. this.shInfoContent = obj;
  424. this.ryObjId = obj.objId;
  425. this.shTitle = obj.wtdstNm;
  426. break;
  427. //水闸
  428. case "szGraphicLayer":
  429. this.currentObjectRgstrId = obj.rgstrId;
  430. this.currentGroupId = obj.groupId;
  431. this.currentSzCode = obj.objCode;
  432. this.currentObjectName = obj.gateName;
  433. this.currentObjectId = obj.objId;
  434. this.showSzDuChaInfo = true;
  435. break;
  436. case "szGraphicLayerAll":
  437. this.currentSzobjCode = obj.objCode;
  438. this.showszAllBaseInfo = true;
  439. if (this.$refs['szAllJcxxRef']) {
  440. this.$refs['szAllJcxxRef'].showDialog();
  441. }
  442. break;
  443. //地下水
  444. case "dxsGraphicLayer":
  445. this.currentDxsCode = obj.stcd;
  446. this.showDxsBaseInfo = true;
  447. if (this.$refs['dxsJcxxRef']) {
  448. this.$refs['dxsJcxxRef'].showDialog();
  449. }
  450. // this.stcd = obj.stcd;
  451. // this.djbId = '';
  452. // this.currentObjectId = obj.objId;
  453. // this.modal_dixiashui = true;
  454. break;
  455. //取水口
  456. case "graphicLayerQsk":
  457. this.currentQskCode = obj.objCode;
  458. this.showQskBaseInfo = true;
  459. if (this.$refs['qskJcxxRef']) {
  460. this.$refs['qskJcxxRef'].showDialog();
  461. }
  462. break;
  463. //地表水水源地
  464. case "graphicLayerDbssyd":
  465. this.currentDbsCode = obj.id;
  466. this.showDbsBaseInfo = true;
  467. if (this.$refs['dbsJcxxRef']) {
  468. this.$refs['dbsJcxxRef'].showDialog();
  469. }
  470. break;
  471. //水文站
  472. case "graphicLayerSwz":
  473. this.currentSwzCode = obj.stcd;
  474. this.showSwzBaseInfo = true;
  475. if (this.$refs['swzJcxxRef']) {
  476. this.$refs['swzJcxxRef'].showDialog();
  477. }
  478. break;
  479. }
  480. },
  481. addPbjToPlanSucc(){//添加督查计划成功
  482. this.$refs['mapRef'].graphicChange();//督查计划外 及 2018督查水库 添加到督查计划后 相应的对象应该增加到2019督查
  483. },
  484. showSkDetail(type, item) {//水库 基础信息base 督查信息dcxx 加入督查计划plan
  485. this.currentRsCode = item.rsCode;
  486. this.currentRsName = item.rsName;
  487. if (item.longitude) {
  488. this.currentRsLong = item.longitude;
  489. }
  490. if (item.latitude) {
  491. this.currentRsLat = item.latitude;
  492. }
  493. if (item.rgstrId) {
  494. this.currentRgstrId = item.rgstrId;
  495. }
  496. if (item.objId) {
  497. this.currentObjId = item.objId;
  498. }
  499. if (type == "base") {//基础信息
  500. this.showSkBaseInfo = true;
  501. if (this.$refs['skJcxxRef']) {
  502. this.$refs['skJcxxRef'].showDialog();
  503. }
  504. } else if (type == "plan") {//添加到督查计划
  505. this.showPlanList = true;
  506. if (this.$refs['addToPlanRef']) {
  507. this.$refs['addToPlanRef'].showDialog();
  508. }
  509. } else if (type == "dcxx") {//督查信息
  510. this.xskRgstrId = item.rgstrId;
  511. this.skTitle = item.rsName;
  512. this.xskInfoDialog = true;
  513. if (this.$refs['xskTianBaoRef']) {
  514. this.$refs['xskTianBaoRef'].showDialog();
  515. }
  516. } else if(type == "skLocate"){//定位
  517. this.$refs['mapRef'].tableRowClick(item, 'locate', 'sk','allSkGraphicLayer');
  518. }
  519. },
  520. isCheckArray1(item) {
  521. var _self = this;
  522. if (item.checked && item.id) {
  523. _self.checkedLayerList.push(item);
  524. } else {
  525. for (var i = 0; i < _self.checkedLayerList.length; i++) {
  526. if (item.id == _self.checkedLayerList[i].id) {
  527. _self.checkedLayerList.splice(i, 1);
  528. }
  529. }
  530. }
  531. _self.checkedLayerLists = _self.checkedLayerList;
  532. },
  533. showGroupInfo(id, isAdmin, persName) {//展示人员所在组
  534. this.currentPersId = id;
  535. this.currentIsAdmin = isAdmin;
  536. this.currentPersName = persName;
  537. this.showPersonInGroupInfo = true;
  538. },
  539. trackHistory(id){//展示人员历史轨迹列表
  540. this.currentPersId = id;
  541. this.showTrackHistory = true;
  542. },
  543. // 弹窗关闭
  544. closeInfo(name) {
  545. switch (name) {
  546. case 'ryxx':
  547. this.personInfoDialog = false;
  548. break;
  549. case 'shgc':
  550. this.shInfoDialog = false;
  551. break;
  552. case 'xsk':
  553. this.xskInfoDialog = false;
  554. break;
  555. case 'lb':
  556. this.dcryDialog = false;
  557. this.checkedLayerLists = [];
  558. case 'groupInfo':
  559. this.showPersonInGroupInfo = false;
  560. this.$refs['mapRef'].clearLayer('trackGraphicLayer1');
  561. break;
  562. case 'dcryDialog':
  563. this.ryInfoDialog = false;
  564. break;
  565. case 'trackTable':
  566. this.showTrackHistory = false;
  567. this.$refs['mapRef'].clearLayer('trackGraphicLayer');
  568. this.$refs['mapRef'].clearLayer('trackGraphicLayer1');
  569. break;
  570. case 'dxs':
  571. this.modal_dixiashui = false;
  572. }
  573. },
  574. //人员信息
  575. peopleInfo(row,id,info,recPersId){//lacaiton-定位,track-轨迹,group-加入工作组
  576. console.log(row,id,info,recPersId);
  577. if(info == 'location'){
  578. this.$refs['mapRef'].tableRowClick(row, 'locate', 'person');
  579. }else if(info == 'track'){
  580. this.currentPersId = row.guid;
  581. this.showTrackHistory = true;
  582. // this.$refs['mapRef'].tableRowClick(row, 'track', 'person');
  583. }else if(info =='group'){
  584. // this.currentPersId = recPersId;
  585. this.currentPersId = row.guid;
  586. this.currentIsAdmin = row.permission;
  587. this.currentPersName = row.persName;
  588. this.showPersonInGroupInfo = true;
  589. }
  590. },
  591. showTrackOnMap(row,type){//人员轨迹 历史轨迹列表
  592. this.$refs['mapRef'].tableRowClick(row, 'track', 'track');
  593. },
  594. // 水库列表-操作-事件
  595. skInfo(row,id,info) {//lacaiton-定位,baseInfo-基础信息,dcInfo-督查信息,addDcInfo-加入督查信息
  596. console.log(row,id,info);
  597. if(info == 'dcInfo'){
  598. this.xskRgstrId = row.rgstrId;
  599. this.skTitle = row.rsName;
  600. this.xskInfoDialog = true;
  601. }else if(info == "loaction"){
  602. this.$refs['mapRef'].tableRowClick(row, 'locate', 'sk',id);
  603. }else if(info == "baseInfo"){
  604. this.currentRsCode = row.rsCode;
  605. this.showSkBaseInfo = true;
  606. if (this.$refs['skJcxxRef']) {
  607. this.$refs['skJcxxRef'].showDialog();
  608. }
  609. }else if(info == "addDcInfo"){
  610. this.currentRsCode = row.rsCode;
  611. this.currentRsName = row.rsName;
  612. this.currentRsLong = row.longitude;
  613. this.currentRsLat = row.latitude;
  614. this.showPlanList = true;
  615. if (this.$refs['addToPlanRef']) {
  616. this.$refs['addToPlanRef'].showDialog();
  617. }
  618. }
  619. },
  620. //人饮(row,id,点击)
  621. ryInfo(row,id,info,){//lacaiton-定位,baseInfo-基础信息,dcInfo-督查信息
  622. console.log(row,id,info);
  623. //农饮工程
  624. if(id == 'ncysgcGraphicLayer'){
  625. if(info == 'location'){
  626. this.$refs['mapRef'].tableRowClick(row, 'locate', 'ncysgc',id);
  627. }
  628. else if(info == 'baseInfo'){
  629. this.currentCwsCode = row.cwsCode;
  630. this.showNcysgcBaseInfo = true;
  631. if (this.$refs['ncysgcJcxxRef']) {
  632. this.$refs['ncysgcJcxxRef'].showDialog();
  633. }
  634. }
  635. else if(info == 'dcInfo'){
  636. this.ryObjId = row.objId;
  637. this.ryTitle = row.cwsName;
  638. this.ryInfoDialog = true;
  639. }
  640. }
  641. //水源地
  642. else if(id == 'sydGraphicLayer'){
  643. if(info == 'location'){
  644. this.$refs['mapRef'].tableRowClick(row, 'locate', 'syd',id);
  645. }
  646. else if(info == 'baseInfo'){
  647. this.currentEngSurId = row.engSurId;
  648. // this.ryTitle = row.cwsName;
  649. this.showSydBaseInfo = true;
  650. if (this.$refs['sydJcxxRef']) {
  651. this.$refs['sydJcxxRef'].showDialog();
  652. }
  653. }
  654. else if(info == 'dcInfo'){
  655. this.ryObjId = row.objId;
  656. this.ryTitle = row.waterSourceNm;
  657. this.ryInfoDialog = true;
  658. }
  659. }
  660. // 150县
  661. else if(id == 'country150Layer'){
  662. if(info == 'location'){
  663. this.$refs['mapRef'].tableRowClick(row, 'locate', '150',id);
  664. }
  665. else if(info == 'baseInfo'){
  666. this.currentAdCode_150 = row.adCode;
  667. this.show150BaseInfo = true;
  668. if (this.$refs['150JcxxRef']) {
  669. this.$refs['150JcxxRef'].showDialog();
  670. }
  671. }
  672. else if(info == 'dcInfo'){
  673. this.ryObjId = row.objId;
  674. this.ryTitle = row.adName;
  675. this.ryInfoDialog = true;
  676. }
  677. }
  678. //督查行政村
  679. else if(id == 'xzcGraphicLayer'){
  680. if(info == 'location'){
  681. this.$refs['mapRef'].tableRowClick(row, 'locate', 'xzc',id);
  682. }
  683. else if(info == 'baseInfo'){
  684. this.villageCode = row.villageCode;
  685. this.showXzcBaseInfo = true;
  686. if (this.$refs['xzcJcxxRef']) {
  687. this.$refs['xzcJcxxRef'].showDialog();
  688. }
  689. }
  690. else if(info == 'dcInfo'){
  691. this.ryObjId = row.objId;
  692. this.ryTitle = row.adNm;
  693. this.ryInfoDialog = true;
  694. }
  695. }
  696. },
  697. //水毁工程
  698. shgcInfo(row,id,info,){
  699. console.log(row,id,info);
  700. if(info == 'dcInfo'){
  701. this.shInfoContent = row;
  702. this.shTitle = row.wtdstNm;
  703. this.shInfoDialog = true;
  704. }else if(info == 'location'){
  705. this.$refs['mapRef'].tableRowClick(row, 'locate', 'shgc',id);
  706. }else if(info == 'baseInfo'){
  707. this.locAd = row.wtdstId;
  708. this.showshuihuiBaseInfo = true;
  709. if (this.$refs['shuihuiJcxxRef']) {
  710. this.$refs['shuihuiJcxxRef'].showDialog();
  711. }
  712. }
  713. },
  714. //地下水
  715. dxsInfo(row,id,info,){
  716. console.log(row,id,info);
  717. if(info == 'dcInfo'){
  718. }else if(info == 'location'){
  719. this.$refs['mapRef'].tableRowClick(row, 'locate', 'dxs',id);
  720. }else if(info == 'baseInfo'){
  721. this.currentDxsCode = row.stcd;
  722. this.showDxsBaseInfo = true;
  723. if (this.$refs['dxsJcxxRef']) {
  724. this.$refs['dxsJcxxRef'].showDialog();
  725. }
  726. }
  727. },
  728. //水闸
  729. szInfo(row,id,info,){
  730. console.log(row,id,info);
  731. if(info == 'dcInfo'){
  732. this.currentObjectRgstrId = row.rgstrId;
  733. this.currentGroupId = row.groupId;
  734. this.currentSzCode = row.code;
  735. this.currentObjectName = row.nm;
  736. this.currentObjectId = row.objId;
  737. this.showSzDuChaInfo = true;
  738. }else if(info == 'location'){
  739. this.$refs['mapRef'].tableRowClick(row, 'locate', 'sz',id);
  740. }else if(info == 'baseInfo'){
  741. this.currentSzobjCode = row.code;
  742. this.showshuizaBaseInfo = true;
  743. if (this.$refs['shuizaJcxxRef']) {
  744. this.$refs['shuizaJcxxRef'].showDialog();
  745. }
  746. }
  747. },
  748. //全部水闸
  749. szInfoAll(row,id,info,){
  750. console.log(row,id,info);
  751. if(info == 'dcInfo'){
  752. }else if(info == 'location'){
  753. this.$refs['mapRef'].tableRowClick(row, 'locate', 'szAll',id);
  754. }else if(info == 'baseInfo'){
  755. this.currentSzobjCode = row.objCode;
  756. this.showszAllBaseInfo = true;
  757. if (this.$refs['szAllJcxxRef']) {
  758. this.$refs['szAllJcxxRef'].showDialog();
  759. }
  760. }
  761. },
  762. szCancelHandler(){
  763. this.showSzDuChaInfo = false;
  764. },
  765. skCancelHandler(){
  766. this.xskInfoDialog = false
  767. },
  768. //Info172
  769. Info172(row,id,info,){
  770. console.log(row,id,info);
  771. if(info == 'dcInfo'){
  772. }else if(info == 'location'){
  773. this.$refs['mapRef'].tableRowClick(row, 'locate', '172',id);
  774. }else if(info == 'baseInfo'){
  775. this.current172Code = row.code;
  776. this.show172BaseInfo = true;
  777. if (this.$refs['172JcxxRef']) {
  778. this.$refs['172JcxxRef'].showDialog();
  779. }
  780. }
  781. },
  782. QskInfo(row,id,info,){
  783. console.log(row,id,info);
  784. if(info == 'dcInfo'){
  785. }else if(info == 'location'){
  786. this.$refs['mapRef'].tableRowClick(row, 'locate', 'qsk',id);
  787. }else if(info == 'baseInfo'){
  788. this.currentQskCode = row.objCode;
  789. this.showQskBaseInfo = true;
  790. if (this.$refs['qskJcxxRef']) {
  791. this.$refs['qskJcxxRef'].showDialog();
  792. }
  793. }
  794. },
  795. DbsInfo(row,id,info,){
  796. console.log(row,id,info);
  797. if(info == 'dcInfo'){
  798. }else if(info == 'location'){
  799. this.$refs['mapRef'].tableRowClick(row, 'locate', 'dbssyd',id);
  800. }else if(info == 'baseInfo'){
  801. this.currentDbsCode = row.id;
  802. this.showDbsBaseInfo = true;
  803. if (this.$refs['dbsJcxxRef']) {
  804. this.$refs['dbsJcxxRef'].showDialog();
  805. }
  806. }
  807. },
  808. SwzInfo(row,id,info,){
  809. console.log(row,id,info);
  810. if(info == 'dcInfo'){
  811. }else if(info == 'location'){
  812. this.$refs['mapRef'].tableRowClick(row, 'locate', 'swz',id);
  813. }else if(info == 'baseInfo'){
  814. this.currentSwzCode = row.stcd;
  815. this.showSwzBaseInfo = true;
  816. if (this.$refs['swzJcxxRef']) {
  817. this.$refs['swzJcxxRef'].showDialog();
  818. }
  819. }
  820. },
  821. groupHandler(currentPersId, currentIsAdmin, currentPersName) {//工作组
  822. this.currentPersId = currentPersId;
  823. this.currentIsAdmin = currentIsAdmin;
  824. this.currentPersName = currentPersName;
  825. this.showPersonInGroupInfo = true;
  826. },
  827. lbClick(){
  828. if(this.checkedLayerList.length){
  829. this.dcryDialog = !this.dcryDialog;
  830. }else{
  831. this.$message('请选择左侧图层');
  832. }
  833. },
  834. searchWidgetEmitHandler(item,type,typeDetail){
  835. if(type == 'rsvr'){//水库
  836. this.showSkDetail(typeDetail,item)
  837. }else if(type == 'pers'){
  838. if(typeDetail == 'personInfo'){
  839. this.personInfoDialog = true;
  840. this.personInfoContent = item;
  841. }else{
  842. this.peopleInfo(item,'',typeDetail);
  843. }
  844. }else if(type == 'ny'){
  845. this.ryInfo(item,'ncysgcGraphicLayer',typeDetail)
  846. }else if(type == 'xzc'){
  847. this.ryInfo(item,'xzcGraphicLayer',typeDetail)
  848. }else if(type == 'dcx'){
  849. this.ryInfo(item,'country150Layer',typeDetail)
  850. }else if(type == 'sh'){
  851. this.shgcInfo(item,'shgcGraphicLayer',typeDetail)
  852. }else if(type == '172'){
  853. item['code'] = item.id;
  854. this.Info172(item,'graphicLayer172',typeDetail)
  855. }else if(type == 'dxs'){
  856. this.dxsInfo(item,'dxsGraphicLayer',typeDetail)
  857. }else if(type == 'sz'){
  858. item['code'] = item.objCode;
  859. this.szInfo(item,'szGraphicLayer',typeDetail)
  860. }else if(type == 'syd'){
  861. this.DbsInfo(item,'graphicLayerDbssyd',typeDetail)
  862. }else if(type == 'qsk'){
  863. this.QskInfo(item,'graphicLayerQsk',typeDetail)
  864. }else if(type == 'swz'){
  865. this.SwzInfo(item,'graphicLayerSwz',typeDetail)
  866. }
  867. // if(type == "track"){//人员轨迹
  868. // this.currentPersId = item.guid;
  869. // this.showTrackHistory = true;
  870. // }else if(type == 'dcz'){//督查组
  871. // this.currentPersName = item.persName;
  872. // this.currentIsAdmin = item.permission;
  873. // this.currentPersId = item.guid;
  874. // this.showPersonInGroupInfo = true;
  875. // }else if(type == 'personInfo'){//人员信息 名牌
  876. // this.personInfoContent = item;
  877. // this.personInfoDialog = true;
  878. // }else if(type == "personLocate"){
  879. // this.$refs['mapRef'].tableRowClick(item, 'locate', 'person');
  880. // }
  881. },
  882. //地图展示人员轨迹 点
  883. showPerGzqkOnMap(item){
  884. this.$refs['mapRef'].showPerGzqkOnMap(item);
  885. }
  886. }
  887. }
  888. </script>
  889. <style>
  890. </style>