069aa459a806a314f1ea978c30ef9f6dce473311.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <template>
  2. <transition name="el-fade-in-linear">
  3. <draggable :title="legendShowData.title" initTop=100 initLeft=10 initWidth=1000 initHeight=635 @closeDraggable='closeModal_data_common'>
  4. <div style="height:100%;" v-if="legendShowData.id == 'personGraphicLayer'">
  5. <InspectionPersonnel @peopleInfo="peopleInfo"></InspectionPersonnel>
  6. </div>
  7. <!--水库-->
  8. <div style="height:100%;" v-if="legendShowData.id == 'allSkGraphicLayer'">
  9. <reservoirList dcztStatus="" :dcztDisabled='false' @skInfo="skInfo" :currentAdCode="currentAdCode"></reservoirList>
  10. </div>
  11. <!--水库督查2018-->
  12. <div style="height:100%;" v-if="legendShowData.id == 'skGraphicLayer2018'">
  13. <reservoirList dcztStatus="1" :dcztDisabled='true' @skInfo="skInfo" :currentAdCode="currentAdCode"></reservoirList>
  14. </div>
  15. <!--水库督查2019-->
  16. <div style="height:100%;" v-if="legendShowData.id == 'skGraphicLayer2019'">
  17. <reservoirList dcztStatus="2" :dcztDisabled='true' @skInfo="skInfo" :currentAdCode="currentAdCode"></reservoirList>
  18. </div>
  19. <!--复查水库-->
  20. <div style="height:100%;" v-if="legendShowData.id == 'fcskGraphicLayer'">
  21. <reservoirList dcztStatus="3" :dcztDisabled='true' @skInfo="skInfo" :currentAdCode="currentAdCode"></reservoirList>
  22. </div>
  23. <!--水库督查计划外-->
  24. <div style="height:100%;" v-if="legendShowData.id == 'jhwskGraphicLayer'">
  25. <reservoirList dcztStatus="4" :dcztDisabled='true' @skInfo="skInfo" :currentAdCode="currentAdCode"></reservoirList>
  26. </div>
  27. <!--农村饮水工程-->
  28. <div style="height:100%;" v-if="legendShowData.id == 'ncysgcGraphicLayer'">
  29. <peopleDrinkNygc @ryInfo="ryInfo" :currentAdCode="currentAdCode"></peopleDrinkNygc>
  30. </div>
  31. <!--水源地-->
  32. <div style="height:100%;" v-if="legendShowData.id == 'sydGraphicLayer'">
  33. <peopleDrinkSyd @ryInfo="ryInfo" :currentAdCode="currentAdCode"></peopleDrinkSyd>
  34. </div>
  35. <!--150个县-->
  36. <div style="height:100%;" v-if="legendShowData.id == 'country150Layer'">
  37. <peopleDrink @ryInfo="ryInfo" :currentAdCode="currentAdCode"></peopleDrink>
  38. </div>
  39. <!--人饮督查行政村-->
  40. <div style="height:100%;" v-if="legendShowData.id == 'xzcGraphicLayer'">
  41. <peopleDrinkXzc @ryInfo="ryInfo" :currentAdCode="currentAdCode"></peopleDrinkXzc>
  42. </div>
  43. <!--水毁工程-->
  44. <div style="height:100%;" v-if="legendShowData.id == 'shgcGraphicLayer'">
  45. <shgc-info @shgcInfo="shgcInfo" :currentAdCode="currentAdCode"></shgc-info>
  46. </div>
  47. <!--地下水-->
  48. <div style="height:100%;" v-if="legendShowData.id == 'dxsGraphicLayer'">
  49. <dxsInfo @dxsInfo="dxsInfo" :currentAdCode="currentAdCode"></dxsInfo>
  50. </div>
  51. <!--水闸-->
  52. <div style="height:100%;" v-if="legendShowData.id == 'szGraphicLayer'">
  53. <szInfo @szInfo="szInfo" :currentAdCode="currentAdCode"></szInfo>
  54. </div>
  55. <!--全部水闸-->
  56. <div style="height:100%;" v-if="legendShowData.id == 'szGraphicLayerAll'">
  57. <szInfoAll @szInfoAll="szInfoAll" :currentAdCode="currentAdCode"></szInfoAll>
  58. </div>
  59. <!-- add by luochenghai -->
  60. <!-- 水保项目 -->
  61. <div style="height:100%;" v-if="legendShowData.id =='graphicLayerSb'">
  62. <shuiBaoProDataSheet dcztStatus="" :dcztDisabled='false' @sbInfo="sbInfo" :currentAdCode="currentAdCode"></shuiBaoProDataSheet>
  63. </div>
  64. <!--水保督查-->
  65. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerDcsb'">
  66. <shuiBaoDcDataSheet dcztStatus="" :dcztDisabled='false' @sbDcInfo="sbDcInfo" :currentAdCode="currentAdCode"></shuiBaoDcDataSheet>
  67. </div>
  68. <!--河湖四乱-->
  69. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerHhsl'">
  70. <heHuSiLuanDataSheet dcztStatus="" :dcztDisabled='false' @hhslInfo="hhslInfo" :currentAdCode="currentAdCode"></heHuSiLuanDataSheet>
  71. </div>
  72. <!--非法采沙-->
  73. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerFfcs'">
  74. <feiFaCaiShaDataSheet dcztStatus="" :dcztDisabled='false' @ffcsInfo="ffcsInfo" :currentAdCode="currentAdCode"></feiFaCaiShaDataSheet>
  75. </div>
  76. <!-- end -->
  77. <!--172-->
  78. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayer172'">
  79. <Info172 @Info172="Info172" :currentAdCode="currentAdCode"></Info172>
  80. </div>
  81. <!--取水口-->
  82. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerQsk'">
  83. <InfoIntake @QskInfo="QskInfo" :currentAdCode="currentAdCode"></InfoIntake>
  84. </div>
  85. <!--地表水水源地-->
  86. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerDbssyd'">
  87. <InfoSurfaceWater @DbsInfo="DbsInfo" :currentAdCode="currentAdCode"></InfoSurfaceWater>
  88. </div>
  89. <!--水文站-->
  90. <div style="height:100%;" v-if="legendShowData.id == 'graphicLayerSwz'">
  91. <hydrometricStation @SwzInfo="SwzInfo" :currentAdCode="currentAdCode"></hydrometricStation>
  92. </div>
  93. <!--扶贫县-->
  94. <div style="height:100%;" v-if="legendShowData.id == 'mapServer_fpx' || legendShowData.id == 'mapServer_zdx' || legendShowData.id == 'mapServer_bjx' || legendShowData.id == 'mapServer_tcx' || legendShowData.id == 'mapServer_ddfp'">
  95. <fuPinXianTableList :currentAdCode="currentAdCode" :layerId="legendShowData.id"></fuPinXianTableList>
  96. </div>
  97. <!--全部淤地坝-->
  98. <div v-if="legendShowData.id == 'allYdbGraphicLayer'">
  99. <allYdbTableList @allYdbInfo="allYdbInfo" :currentAdCode="currentAdCode"></allYdbTableList>
  100. </div>
  101. <!--淤地坝-->
  102. <div v-if="legendShowData.id == 'ydbGraphicLayer'">
  103. <ydbTableList @ydbInfo="ydbInfo" :currentAdCode="currentAdCode"></ydbTableList>
  104. </div>
  105. <!--水资源 全部水源地-->
  106. <div v-if="legendShowData.id == 'szy_allSydGraphicLayer'">
  107. <szyAllSyd @szyAllSydInfo="szyAllSydInfo" :currentAdCode="currentAdCode"></szyAllSyd>
  108. </div>
  109. <!--水源地New-->
  110. <div v-if="legendShowData.id == 'szy_sydGraphicLayer'">
  111. <sydNewTableList @sydNewInfo="sydNewInfo" :currentAdCode="currentAdCode"></sydNewTableList>
  112. </div>
  113. <!--水資源 全部取水户-->
  114. <div v-if="legendShowData.id == 'szy_allQyshGraphicLayer'">
  115. <szyAllQysh @szyAllQyshInfo="szyAllQyshInfo" :currentAdCode="currentAdCode"></szyAllQysh>
  116. </div>
  117. <!--水資源 取水户-->
  118. <div v-if="legendShowData.id == 'szy_qyshGraphicLayer'">
  119. <qshTableList @qshInfo="qshInfo" :currentAdCode="currentAdCode"></qshTableList>
  120. </div>
  121. <!--水資源 取水口-->
  122. <div v-if="legendShowData.id == 'szy_qskGraphicLayer'">
  123. <szyQskTableList @szyQskInfo="szyQskInfo" :currentAdCode="currentAdCode"></szyQskTableList>
  124. </div>
  125. <!--水资源 节水管理-->
  126. <div v-if="legendShowData.id == 'szy_jsglGraphicLayer'">
  127. <szyJsgl @szyJsglInfo="szyJsglInfo" :currentAdCode="currentAdCode"></szyJsgl>
  128. </div>
  129. <!--水资源 用水单位-->
  130. <div v-if="legendShowData.id == 'szy_ysdwGraphicLayer'">
  131. <szyYsdw @szyYsdwInfo="szyYsdwInfo" :currentAdCode="currentAdCode"></szyYsdw>
  132. </div>
  133. </draggable>
  134. </transition>
  135. </template>
  136. <script>
  137. import draggable from './draggable'
  138. import {legendData} from '../config/legendConfig.js'
  139. import InspectionPersonnel from '../components/InspectionPersonnel'
  140. import reservoirList from '../components/reservoirList'
  141. import peopleDrink from '../components/peopleDrink'
  142. import waterloggingProject from '../components/waterloggingProject'
  143. import ShgcInfo from "../components/shgcInfo"
  144. import dxsInfo from "../components/dxsInfo"
  145. import peopleDrinkNygc from '../components/peopleDrinkNygc'
  146. import peopleDrinkSyd from '../components/peopleDrinkSyd'
  147. import peopleDrinkXzc from '../components/peopleDrinkXzc'
  148. import szInfo from '../components/szInfo'
  149. import szInfoAll from '../components/szInfoAll'
  150. import Info172 from '../components/Info172'
  151. import InfoIntake from '../components/InfoIntake'
  152. import InfoSurfaceWater from '../components/InfoSurfaceWater'
  153. import hydrometricStation from '../components/hydrometricStation'
  154. import fuPinXianTableList from '../components/fuPinXianTableList'
  155. import ydbTableList from '../components/ydbTableList'
  156. import allYdbTableList from '../components/allYdbTableList'
  157. import sydNewTableList from '../components/sydNewTableList'
  158. import qshTableList from '../components/qushuihu/qshTableList'
  159. import szyQskTableList from '../components/qushuihu/szyQskTableList'
  160. import szyJsgl from '../components/tableList/szy_jsgl.vue'
  161. import szyYsdw from '../components/tableList/szy_ysdw.vue'
  162. // add by luochenghai
  163. import shuiBaoProDataSheet from '../components/duChaNewObj/shuiBaoProDataSheet' //水保项目
  164. import shuiBaoDcDataSheet from '../components/duChaNewObj/shuiBaoDcDataSheet' //水保督查
  165. import heHuSiLuanDataSheet from '../components/duChaNewObj/heHuSiLuanDataSheet' //河湖四乱
  166. import feiFaCaiShaDataSheet from '../components/duChaNewObj/feiFaCaiShaDataSheet' //非法采沙
  167. // end
  168. export default {
  169. name: "listModel",
  170. props: ['checkedLayerList','currentAdCode','currentObjectRgstrId'],
  171. components:{
  172. draggable,
  173. InspectionPersonnel,
  174. reservoirList,
  175. peopleDrink,
  176. waterloggingProject,
  177. ShgcInfo,
  178. dxsInfo,
  179. peopleDrinkNygc,
  180. peopleDrinkSyd,
  181. peopleDrinkXzc,
  182. szInfo,
  183. szInfoAll,
  184. Info172,
  185. InfoIntake,
  186. InfoSurfaceWater,
  187. hydrometricStation,
  188. fuPinXianTableList,
  189. ydbTableList,
  190. allYdbTableList,
  191. sydNewTableList,
  192. qshTableList,
  193. szyQskTableList,
  194. szyJsgl,
  195. szyYsdw,
  196. szyAllQysh:resolve => {require(['../components/tableList/szy_allQysh.vue'],resolve)},
  197. szyAllSyd:resolve => {require(['../components/tableList/szy_allSyd.vue'],resolve)},
  198. shuiBaoProDataSheet,
  199. shuiBaoDcDataSheet,
  200. heHuSiLuanDataSheet,
  201. feiFaCaiShaDataSheet
  202. },
  203. data() {
  204. return {
  205. checkedLayerList1:[],
  206. legendShowData:{}
  207. }
  208. },
  209. mounted(){
  210. this.checkedLayerList1 = this.checkedLayerList;
  211. this.handleLayerChange();
  212. },
  213. watch:{
  214. checkedLayerList(n,o){
  215. this.checkedLayerList1 = n;
  216. this.handleLayerChange();
  217. },
  218. },
  219. computed: {
  220. recPersId() {
  221. return localStorage.getItem("userid") ? localStorage.getItem("userid") : ''
  222. }
  223. },
  224. methods:{
  225. handleLayerChange(){
  226. var _self = this;
  227. legendData.forEach((item)=>{
  228. if(item.id == _self.checkedLayerList1[_self.checkedLayerList1.length-1].id){
  229. _self.legendShowData = item;
  230. }
  231. })
  232. console.log(_self.legendShowData.id);
  233. },
  234. //关闭督查人员
  235. closeModal_data_common() {
  236. this.$emit('closeModal_data_common','lb');
  237. },
  238. peopleInfo(row,info){
  239. this.$emit('peopleInfo',row,this.legendShowData.id,info,this.recPersId);
  240. },
  241. // 水库操作事件
  242. skInfo(row,info){
  243. this.$emit('skInfo',row,this.legendShowData.id,info);
  244. },
  245. paramsEmit(currentPersId,currentIsAdmin,currentPersName){
  246. this.$emit("groupHandler",currentPersId,currentIsAdmin,currentPersName)
  247. },
  248. ryInfo(row,info){
  249. this.$emit('ryInfo',row,this.legendShowData.id,info);
  250. },
  251. shgcInfo(row,info){
  252. this.$emit('shgcInfo',row,this.legendShowData.id,info)
  253. },
  254. dxsInfo(row,info){
  255. this.$emit('dxsInfo',row,this.legendShowData.id,info)
  256. },
  257. szInfo(row,info){
  258. this.$emit('szInfo',row,this.legendShowData.id,info)
  259. },
  260. szInfoAll(row,info){
  261. this.$emit('szInfoAll',row,this.legendShowData.id,info)
  262. },
  263. Info172(row,info){
  264. this.$emit('Info172',row,this.legendShowData.id,info)
  265. },
  266. QskInfo(row,info){
  267. this.$emit('QskInfo',row,this.legendShowData.id,info)
  268. },
  269. DbsInfo(row,info){
  270. this.$emit('DbsInfo',row,this.legendShowData.id,info)
  271. },
  272. SwzInfo(row,info){
  273. this.$emit('SwzInfo',row,this.legendShowData.id,info)
  274. },
  275. allYdbInfo(row,info){
  276. this.$emit('allYdbInfo',row,this.legendShowData.id,info)
  277. },
  278. ydbInfo(row,info){
  279. this.$emit('ydbInfo',row,this.legendShowData.id,info)
  280. },
  281. szyAllSydInfo(row,info){
  282. this.$emit('szyAllSydInfo',row,this.legendShowData.id,info)
  283. },
  284. sydNewInfo(row,info){
  285. this.$emit('sydNewInfo',row,this.legendShowData.id,info)
  286. },
  287. szyAllQyshInfo(row,info){
  288. this.$emit('szyAllQyshInfo',row,this.legendShowData.id,info)
  289. },
  290. qshInfo(row,info){
  291. this.$emit('qshInfo',row,this.legendShowData.id,info)
  292. },
  293. szyQskInfo(row,info){
  294. this.$emit('szyQskInfo',row,this.legendShowData.id,info)
  295. },
  296. szyJsglInfo(row,info){
  297. this.$emit('szyJsglInfo',row,this.legendShowData.id,info)
  298. },
  299. szyYsdwInfo(row,info){
  300. this.$emit('szyYsdwInfo',row,this.legendShowData.id,info)
  301. },
  302. // 省级督查平台 新增督查对象 操作事件 add by luochenahi
  303. sbInfo(row,info){
  304. this.$emit('sbInfo',row,this.legendShowData.id,info); //水保项目
  305. },
  306. sbDcInfo(row,info){
  307. this.$emit('sbDcInfo',row,this.legendShowData.id,info); //水保督查
  308. },
  309. hhslInfo(row,info){
  310. this.$emit('hhslInfo',row,this.legendShowData.id,info); //河湖四乱
  311. },
  312. ffcsInfo(row,info){
  313. this.$emit('ffcsInfo',row,this.legendShowData.id,info); //非法采沙
  314. },
  315. }
  316. }
  317. </script>
  318. <style scoped>
  319. </style>