e2c69e17d615852fbe71ffa8f8e3a35da0f7ee52.svn-base 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <template>
  2. <div class = "gwSearchWidget">
  3. <div class = "gwSearchWidgetInput">
  4. <el-input placeholder="请输入内容" v-model="searchText" style="min-width:150px;"
  5. clearable @keyup.enter.native="searchHandler" @change="inputChange">
  6. <el-button slot="append" icon="el-icon-search" @click="searchHandler"></el-button>
  7. </el-input>
  8. </div>
  9. <div class = "gwSearchWidgetResult" v-show="showResultTabs">
  10. <div style="background-color:white;padding:5px;min-width: 360px;display:flex;flex-direction:column;height:500px;">
  11. <div class="searchResultTabs" style="padding: 5px !important;margin: 0px;">
  12. <p style="margin:0px;font-size:small;">查询结果</p>
  13. <span class="el-icon-error closeNaviToolButton" @click="closeSearchResult"></span>
  14. </div>
  15. <div style="display:flex;flex-direction:row;height:440px;margin:5px;">
  16. <el-tabs @tab-click="tabClickHandler" tab-position="left" type="border-card" style="height:465px;">
  17. <el-tab-pane label="人员">
  18. <div class="searchResultSets" v-if="showResultType == 'pers'" v-loading="loading">
  19. <div class="searchADItem" v-for="(item,index) in currentResultSet" :key="index">
  20. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  21. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  22. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'pers','location')"></span>
  23. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'pers','personInfo')">{{item.persName}}</p>
  24. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.orgNm}}</p>
  25. </div>
  26. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  27. <div>
  28. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">手机:{{item.mobilenumb}}</p>
  29. </div>
  30. <div style="display:flex;flex-direction:row">
  31. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'pers','track')">历史轨迹</p>
  32. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:42px;" @click="searchWidgetEmitHandler(item,'pers','group')">督查组</p>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </el-tab-pane>
  39. <el-tab-pane label="水库">
  40. <div class="searchResultSets" v-if="showResultType == 'rsvr'" v-loading="loading">
  41. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  42. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  43. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  44. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'rsvr','skLocate')"></span>
  45. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'rsvr','base')">{{item.rsName}}</p>
  46. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{formatEngScal(item.engScal)}}</p>
  47. </div>
  48. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  49. <div>
  50. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.location}}</p>
  51. </div>
  52. <div style="display:flex;flex-direction:row;float: right;">
  53. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'rsvr','base')">基础信息</p>
  54. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" v-show="item.status =='2019-督查中' || item.status =='2019-已督查'" @click="searchWidgetEmitHandler(item,'rsvr','dcxx')">督查信息</p>
  55. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" v-show="item.status =='督查计划外' || item.status =='2018-已督查'" @click="searchWidgetEmitHandler(item,'rsvr','plan')">加入督查计划</p>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </el-tab-pane>
  62. <el-tab-pane label="人饮">
  63. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  64. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  65. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  66. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  67. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'ny','location')"></span>
  68. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'ny','baseInfo')">{{item.cwsName}}</p>
  69. <!-- <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsCode}}</p> -->
  70. </div>
  71. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  72. <div>
  73. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsLoc}}</p>
  74. </div>
  75. <div style="display:flex;flex-direction:row;float: right;">
  76. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'ny','baseInfo')">基础信息</p>
  77. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'ny','dcInfo')">督查信息</p>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </el-tab-pane>
  84. <el-tab-pane label="行政村">
  85. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  86. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  87. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  88. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  89. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'xzc','location')"></span>
  90. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'xzc','baseInfo')">{{item.adNm}}</p>
  91. <!-- <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsCode}}</p> -->
  92. </div>
  93. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  94. <div>
  95. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsLoc}}</p>
  96. </div>
  97. <div style="display:flex;flex-direction:row;float: right;">
  98. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'xzc','baseInfo')">基础信息</p>
  99. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'xzc','dcInfo')">督查信息</p>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </el-tab-pane>
  106. <el-tab-pane label="督查县">
  107. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  108. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  109. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  110. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  111. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'dcx','location')"></span>
  112. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'dcx','baseInfo')">{{item.adName}}</p>
  113. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.adCode}}</p>
  114. </div>
  115. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  116. <div>
  117. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.adFullName}}</p>
  118. </div>
  119. <div style="display:flex;flex-direction:row;float: right;">
  120. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'dcx','baseInfo')">基础信息</p>
  121. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'dcx','dcInfo')">督查信息</p>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </el-tab-pane>
  128. <el-tab-pane label="水毁">
  129. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  130. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  131. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  132. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  133. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'sh','location')"></span>
  134. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'sh','baseInfo')">{{item.wtdstNm}}</p>
  135. <!-- <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsCode}}</p> -->
  136. </div>
  137. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  138. <div>
  139. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.locAd}}</p>
  140. </div>
  141. <div style="display:flex;flex-direction:row;float: right;">
  142. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'sh','baseInfo')">基础信息</p>
  143. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'sh','dcInfo')">督查信息</p>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </el-tab-pane>
  150. <el-tab-pane label="172">
  151. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  152. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  153. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  154. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  155. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'172','location')"></span>
  156. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'172','baseInfo')">{{item.nm}}</p>
  157. <!-- <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.cwsCode}}</p> -->
  158. </div>
  159. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  160. <div>
  161. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.adCode}}</p>
  162. </div>
  163. <div style="display:flex;flex-direction:row;float: right;">
  164. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'172','baseInfo')">基础信息</p>
  165. <!-- <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'172','dcInfo')">督查信息</p> -->
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </el-tab-pane>
  172. <el-tab-pane label="地下水">
  173. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  174. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  175. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  176. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  177. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'dxs','location')"></span>
  178. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'dxs','baseInfo')">{{item.stnm}}</p>
  179. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{dxsSttpFormat(item.sttp)}}</p>
  180. </div>
  181. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  182. <div>
  183. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.adnm}}</p>
  184. </div>
  185. <div style="display:flex;flex-direction:row;float: right;">
  186. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'dxs','baseInfo')">基础信息</p>
  187. <!-- <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'dxs','dcInfo')">督查信息</p> -->
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </el-tab-pane>
  194. <el-tab-pane label="水闸">
  195. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  196. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  197. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  198. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  199. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'sz','location')"></span>
  200. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'sz','baseInfo')">{{item.gateName}}</p>
  201. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{gateTypeFormat(item.gateType)}}</p>
  202. </div>
  203. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  204. <div>
  205. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.adnm}}</p>
  206. </div>
  207. <div style="display:flex;flex-direction:row;float: right;">
  208. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'sz','baseInfo')">基础信息</p>
  209. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'sz','dcInfo')">督查信息</p>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </el-tab-pane>
  216. <el-tab-pane label="水源地">
  217. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  218. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  219. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  220. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  221. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'syd','location')"></span>
  222. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'syd','baseInfo')">{{item.waterSourceNm}}</p>
  223. <!-- <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{gateTypeFormat(item.gateType)}}</p> -->
  224. </div>
  225. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  226. <div style="display:flex;flex-direction:row;float: right;">
  227. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'syd','baseInfo')">基础信息</p>
  228. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'syd','dcInfo')">督查信息</p>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </el-tab-pane>
  235. <el-tab-pane label="取水口">
  236. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  237. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  238. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  239. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  240. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'qsk','location')"></span>
  241. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'qsk','baseInfo')">{{item.wintName}}</p>
  242. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{gateTypeFormat(item.gateType)}}</p>
  243. </div>
  244. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  245. <div>
  246. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.wintPos}}</p>
  247. </div>
  248. <div style="display:flex;flex-direction:row;float: right;">
  249. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'qsk','baseInfo')">基础信息</p>
  250. <!-- <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'qsk','dcInfo')">督查信息</p> -->
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </el-tab-pane>
  257. <el-tab-pane label="水文站">
  258. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  259. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  260. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  261. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  262. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'swz','location')"></span>
  263. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'swz','baseInfo')">{{item.stnm}}</p>
  264. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{swzFormat(item.sttp)}}</p>
  265. </div>
  266. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  267. <div>
  268. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{item.stcd}}</p>
  269. </div>
  270. <div style="display:flex;flex-direction:row;float: right;">
  271. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'swz','baseInfo')">基础信息</p>
  272. <!-- <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'swz','dcInfo')">督查信息</p> -->
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </el-tab-pane>
  279. <el-tab-pane label="贫困县">
  280. <div class="searchResultSets" v-if="showResultType == 'other'" v-loading="loading">
  281. <div class="searchSKItem" v-for="(item,index) in currentResultSet" :key="index">
  282. <div style="display:flex;flex-direction:column;flex-basis:100%;background-color:transparent;">
  283. <div style="display:flex;flex-direction:row;align-items: flex-end;flex-basis:100%;">
  284. <span class="el-icon-location" style="color: blue;padding-bottom: 4px;" @click="searchWidgetEmitHandler(item,'pkx','location')"></span>
  285. <p style="margin:2px;color: blue;" class="adTitle" @click="searchWidgetEmitHandler(item,'pkx','baseInfo')">{{item.name}}</p>
  286. <p style="margin:2px;font-size:small;margin-left:5px;color:rgba(116, 115, 115, 0.7)">{{pkxTypeFormat(item)}}</p>
  287. </div>
  288. <div style="display:flex;flex-direction:row;justify-content:space-between;flex-basis:100%;">
  289. <div style="display:flex;flex-direction:row;float: right;">
  290. <!-- <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'pkx','baseInfo')">基础信息</p>
  291. <p style="margin:2px;font-size:small;color:blue;cursor:pointer;width:52px;" @click="searchWidgetEmitHandler(item,'pkx','dcInfo')">督查信息</p> -->
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. </el-tab-pane>
  298. </el-tabs>
  299. </div>
  300. <div class="block" style="display:flex;flex-direction:row;justify-content:center;align-items:center;">
  301. <el-pagination
  302. small
  303. :current-page.sync="pageIndex"
  304. :page-size="pageSize"
  305. layout="total, prev, pager, next"
  306. :total="total"
  307. @current-change="pageIndexChange">
  308. </el-pagination>
  309. </div>
  310. </div>
  311. </div>
  312. </div>
  313. </template>
  314. <script>
  315. import request from '../../../utils/gw_ajax_request'
  316. import { queryByName } from '../../../api/zhxxAPI.js'
  317. export default {
  318. components: {
  319. },
  320. props:[],
  321. data () {
  322. return {
  323. showResultTabs:false,
  324. searchText:'',
  325. showResultType:'pers',//当前tab签类型
  326. currentObjType:'',
  327. currentResultSet:[],
  328. pageIndex:1,
  329. pageSize:10,
  330. total:0,
  331. loading:true,
  332. }
  333. },
  334. computed:{
  335. userId: function () {
  336. return localStorage.getItem("userid") ?localStorage.getItem("userid") : "1098101939614724096";
  337. },
  338. currentAdCode:function(){
  339. localStorage.getItem('areacode') ? localStorage.getItem('areacode') : '000000000000';
  340. }
  341. },
  342. mounted:function(){
  343. },
  344. watch:{
  345. },
  346. methods:{
  347. searchHandler(){
  348. this.getDataList();
  349. this.showResultTabs = true;
  350. },
  351. getDataList(){
  352. let _self = this;
  353. _self.loading = true;
  354. let obj = {
  355. 'name':_self.searchText,
  356. 'adCode':_self.currentAdCode,
  357. 'type':_self.showResultType,
  358. 'objType':_self.currentObjType,
  359. 'pageNum':_self.pageIndex,
  360. 'pageSize':_self.pageSize,
  361. 'persId':_self.userId
  362. }
  363. queryByName(obj).then((res)=>{
  364. if(res.success){
  365. _self.currentResultSet = res.data.list;
  366. _self.total = res.data.total;
  367. }
  368. _self.loading = false;
  369. })
  370. },
  371. searchWidgetEmitHandler(item,type,val){
  372. this.$emit('searchWidgetEmitHandler',item,type,val);
  373. },
  374. tabClickHandler(val,objtype){
  375. console.log(val);
  376. if(val.label == "人员"){
  377. this.showResultType = 'pers';
  378. this.currentObjType = '';
  379. }else if(val.label == "水库"){
  380. this.showResultType = 'rsvr';
  381. this.currentObjType = '';
  382. }else if(val.label == "人饮"){
  383. this.showResultType = 'other';
  384. this.currentObjType = '21';
  385. }else if(val.label == "行政村"){
  386. this.showResultType = 'other';
  387. this.currentObjType = '2';
  388. }else if(val.label == "督查县"){
  389. this.showResultType = 'other';
  390. this.currentObjType = '23';
  391. }else if(val.label == "水毁"){
  392. this.showResultType = 'other';
  393. this.currentObjType = '3';
  394. }else if(val.label == "172"){
  395. this.showResultType = 'other';
  396. this.currentObjType = '4';
  397. }else if(val.label == "地下水"){
  398. this.showResultType = 'other';
  399. this.currentObjType = '5';
  400. }else if(val.label == "水闸"){
  401. this.showResultType = 'other';
  402. this.currentObjType = '6';
  403. }else if(val.label == "水源地"){
  404. this.showResultType = 'other';
  405. this.currentObjType = '22';
  406. }else if(val.label == "取水口"){
  407. this.showResultType = 'other';
  408. this.currentObjType = '14';
  409. }else if(val.label == "水文站"){
  410. this.showResultType = 'other';
  411. this.currentObjType = '12';
  412. }else if(val.label == "贫困县"){
  413. this.showResultType = 'other';
  414. this.currentObjType = '13';
  415. }
  416. this.getDataList();
  417. },
  418. pageIndexChange(val){
  419. this.pageIndexChange = val;
  420. this.getDataList();
  421. },
  422. inputChange:function(){
  423. if(this.searchText==''){
  424. this.showResultTabs = false;
  425. }
  426. },
  427. closeSearchResult(){
  428. this.showResultTabs = false;
  429. },
  430. formatEngScal(val) {
  431. switch (val) {
  432. case "1":
  433. val = "大(1)型";
  434. break;
  435. case "2":
  436. val = "大(2)型";
  437. break;
  438. case "3":
  439. val = "中型";
  440. break;
  441. case "4":
  442. val = "小(1)型";
  443. break;
  444. case "5":
  445. val = "小(2)型";
  446. break;
  447. case "9":
  448. val = "其他";
  449. break;
  450. }
  451. return val;
  452. },
  453. dxsSttpFormat(sttp) {//地下水监测站类型
  454. return sttp == 'NATIONAL'? "国家级监测站":
  455. sttp == 'PROVAUTO'? "省级自动监测站":
  456. sttp == 'PROVHAND'? "省级手动监测站":
  457. sttp == 'PRO'? "省级监测站": '';
  458. },
  459. gateTypeFormat(sttp) {//水闸类型
  460. return sttp == '1'? "分(泄)洪闸":
  461. sttp == '2'? "节制闸":
  462. sttp == '3'? "排(退)水闸":
  463. sttp == '4'? "引(进)水闸":
  464. sttp == '5'? "挡潮闸":
  465. sttp == '6'? "船闸":
  466. sttp == '9'? "其它": '';
  467. },
  468. swzFormat(sttp){
  469. return sttp == 'MM'? "气象站":
  470. sttp == 'PP'? "雨量站":
  471. sttp == 'BB'? "蒸发站":
  472. sttp == 'ZQ'? "河道水文站":
  473. sttp == 'DD'? "堰闸水文站":
  474. sttp == 'ZZ'? "河道水位站":
  475. sttp == 'TT'? "潮位站":
  476. sttp == 'RR'? "水库水文站":
  477. sttp == 'DP'? "泵站":
  478. sttp == 'ZG'? "地下水站":
  479. sttp == 'SS'? "墒情站":
  480. sttp == 'ZB'? "分洪水位站": '';
  481. },
  482. pkxTypeFormat(obj){
  483. if(obj.pw == '1'){
  484. return '连片外贫困县'
  485. }else if(obj.zdx == '1'){
  486. return '重点扶贫县'
  487. }else if(obj.sdpk == '1'){
  488. return '深度贫困县'
  489. }else if(obj.sqsz == '1'){
  490. return '三区三州'
  491. }else if(obj.bjx == '1'){
  492. return '边境县'
  493. }else if(obj.mzx == '1'){
  494. return '民族自治县、旗'
  495. }else if(obj.sysq == '1'){
  496. return '赣闽粤原中央苏区'
  497. }else if(obj.tcx == '1'){
  498. return '天窗县'
  499. }else if(obj.ddfp == '1'){
  500. return '定点扶贫先'
  501. }
  502. }
  503. }
  504. }
  505. </script>
  506. <style>
  507. .gwSearchWidget{
  508. position: fixed;
  509. top: 96px;
  510. right: 450px;
  511. min-height: 10px;
  512. width: 100px;
  513. border-radius: 3px;
  514. /* background-color: rgba(255,255,255,0.5); */
  515. z-index: 0;
  516. display: flex;
  517. flex-direction: column;
  518. justify-content: flex-start;
  519. align-items: stretch;
  520. }
  521. .gwSearchWidgetInput{
  522. display: flex;
  523. flex-direction: row;
  524. justify-content: flex-start;
  525. align-items: stretch;
  526. }
  527. .gwSearchWidgetResult{
  528. margin-top: 3px;
  529. display: flex;
  530. flex-direction: row;
  531. justify-content: flex-start;
  532. align-items: stretch;
  533. min-width: 360px;
  534. max-height:500px;
  535. }
  536. .searchResultTabs{
  537. display: flex;
  538. flex-direction: row;
  539. justify-content: space-between;
  540. align-items: center;
  541. padding:0px 25px 3px 5px;
  542. margin-top:10px;
  543. border-bottom: 1px solid rgba(233,233,233,0.7);
  544. }
  545. .searchResultSets{
  546. /* padding:5px; */
  547. margin:0px;
  548. max-height: 430px;
  549. min-width:238px;
  550. overflow: auto;
  551. }
  552. .searchADItem{
  553. border:1px solid skyblue;
  554. border-radius: 3px;
  555. padding:5px;
  556. display: flex;
  557. flex-direction: row;
  558. justify-content: space-between;
  559. align-items: center;
  560. margin-top:5px;
  561. min-height:55px;
  562. }
  563. /* .searchADItem :hover{
  564. background-color: rgba(82, 177, 255, 0.493);
  565. } */
  566. .searchSKItem{
  567. border:1px solid skyblue;
  568. border-radius: 3px;
  569. padding:5px;
  570. display: flex;
  571. flex-direction: row;
  572. justify-content: space-between;
  573. align-items: center;
  574. margin-top:5px;
  575. min-height:55px;
  576. }
  577. .searchGMItem{
  578. border:1px solid skyblue;
  579. border-radius: 3px;
  580. padding:5px;
  581. display: flex;
  582. flex-direction: row;
  583. justify-content: space-between;
  584. align-items: center;
  585. margin-top:5px;
  586. min-height:55px;
  587. }
  588. .searchRiverItem{
  589. border:1px solid skyblue;
  590. border-radius: 3px;
  591. padding:5px;
  592. display: flex;
  593. flex-direction: row;
  594. justify-content: space-between;
  595. align-items: center;
  596. margin-top:5px;
  597. min-height:55px;
  598. }
  599. .adTitle:hover{
  600. color:rgb(0, 38, 253);
  601. text-decoration: underline;
  602. cursor: pointer;
  603. }
  604. .subLink:hover{
  605. color:rgb(0, 38, 253) !important;
  606. text-decoration: underline;
  607. cursor: pointer;
  608. }
  609. .buttonA{
  610. color: #409EFF !important;
  611. border-color: #c6e2ff !important;
  612. background-color: #ecf5ff !important;
  613. }
  614. .badgeA{
  615. margin-right:10px;
  616. }
  617. .gwSearchWidget .closeNaviToolButton{
  618. font-size:small;
  619. color:rgb(0,89,242);
  620. }
  621. .gwSearchWidget .closeNaviToolButton:hover{
  622. color:cadetblue;
  623. cursor: pointer;
  624. }
  625. .gwSearchWidget .el-tabs--border-card>.el-tabs__content{
  626. padding: 5px;
  627. }
  628. </style>