a9743d2eb3cab316d28b053a942113e5ee6adb2e.svn-base 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <div id="swzMain">
  3. <el-row style="margin-bottom:5px;">
  4. <el-col :span="24">
  5. <div class="grid-content bg-purple-light">
  6. <div style="padding:15px 5px 5px 5px;">
  7. <span style="font-size: 12px;margin-left: 10px;">名称:</span>
  8. <el-input style="width:150px;" class="kjr-input" size="mini" v-model="model_shuiwenzhan_name"
  9. placeholder="请输入名称查询" @keydown.enter.native="searchByName" clearable>
  10. </el-input>
  11. &nbsp;&nbsp;&nbsp;
  12. <el-button @click="searchByName" size="mini" type="primary">查询</el-button>
  13. </div>
  14. <div style="padding:5px;">
  15. <el-col :span="5">
  16. <div style="height: 500px;overflow: auto">
  17. <provTreeList :rootCode="rootCode" :rootType="rootType"
  18. @provTreeSelectChange="provTreeSelectChangeHandler"
  19. >
  20. </provTreeList>
  21. </div>
  22. </el-col>
  23. <el-col :span="19">
  24. <el-table :data="tableData_shuiwenzhanList" v-loading="loading" height="500" border stripe style="width: 100%">
  25. <el-table-column type="index" width="50" label="序号" align="center" :index="indexMethod_country">
  26. </el-table-column>
  27. <el-table-column prop="stnm" label="测站名称" width="150" align="center" show-overflow-tooltip>
  28. </el-table-column>
  29. <el-table-column prop="rvnm" label="河流名称" width="150" align="center" show-overflow-tooltip></el-table-column>
  30. <el-table-column prop="hnnm" label="水系名称" width="200" align="center" show-overflow-tooltip></el-table-column>
  31. <el-table-column prop="bsnm" label="流域名称" width="150" align="center" show-overflow-tooltip>
  32. </el-table-column>
  33. <el-table-column prop="stlc" label="站址" width="200" align="center" show-overflow-tooltip>
  34. </el-table-column>
  35. <el-table-column label="基面名称" prop="dtmnm" width="110" align="center">
  36. </el-table-column>
  37. <el-table-column label="基面高程" width="160" align="center" prop="dtmel">
  38. </el-table-column>
  39. <el-table-column prop="sttp" label="站类" width="100" align="center" show-overflow-tooltip>
  40. </el-table-column>
  41. <el-table-column prop="dfrtms" label="报汛段次" width="200" align="center" show-overflow-tooltip>
  42. </el-table-column>
  43. <el-table-column prop="frgrd" label="报汛等级
  44. " width="200" align="center" show-overflow-tooltip>
  45. </el-table-column>
  46. <el-table-column prop="bgfrym" label="始报年月
  47. " width="200" align="center" show-overflow-tooltip>
  48. </el-table-column>
  49. <el-table-column prop="edfrym" label="终报报年月" width="200" align="center" show-overflow-tooltip>
  50. </el-table-column>
  51. <el-table-column prop="admauth" label="信息管理单位
  52. " width="200" align="center" show-overflow-tooltip>
  53. </el-table-column>
  54. <el-table-column prop="stbk" label="测站岸别
  55. " width="200" align="center" show-overflow-tooltip>
  56. </el-table-column>
  57. <el-table-column prop="esstym" label="建站年月
  58. " width="200" align="center" show-overflow-tooltip>
  59. </el-table-column>
  60. <el-table-column prop="phcd" label="拼音码
  61. " width="200" align="center" show-overflow-tooltip>
  62. </el-table-column>
  63. <el-table-column prop="locality" label="交换管理单位" width="100" align="center" show-overflow-tooltip>
  64. </el-table-column>
  65. <el-table-column prop="drna" label="集水面积" width="100" align="center" show-overflow-tooltip>
  66. </el-table-column>
  67. <el-table-column prop="dtpr" label="基面修正值" width="200" align="center" show-overflow-tooltip>
  68. </el-table-column>
  69. <el-table-column prop="atcunit" label="隶属行业单位" width="200" align="center" show-overflow-tooltip>
  70. </el-table-column>
  71. <el-table-column prop="stazt" label="测站方位
  72. " width="200" align="center" show-overflow-tooltip>
  73. </el-table-column>
  74. <el-table-column label="至河口距离" width="160" align="center" prop="dstrvm"></el-table-column>
  75. <el-table-column prop="usfl" label="启用标志" width="200" align="center" show-overflow-tooltip>
  76. </el-table-column>
  77. <el-table-column fixed="right" label="操作" min-width="200" align="center">
  78. <template slot-scope="scope">
  79. <el-button type="text" size="small" @click="SwzInfo(scope.row,'location')">定位</el-button>
  80. <el-button type="text" size="small" @click="SwzInfo(scope.row,'baseInfo')">基础信息</el-button>
  81. </template>
  82. </el-table-column>
  83. </el-table>
  84. <div class="block">
  85. <el-pagination background @size-change="handleSizeChange_QuShuiKou"
  86. @current-change="handleCurrentChange_QuShuiKou" :page-sizes="[10,50, 100, 200]"
  87. :page-size="15" layout="total,sizes, prev, pager, next" :pager-count="5"
  88. :total="recordTotal_shuiwenzhan">
  89. </el-pagination>
  90. </div>
  91. </el-col>
  92. </div>
  93. </div>
  94. </el-col>
  95. </el-row>
  96. </div>
  97. </template>
  98. <script>
  99. import provTreeList from '../../../widgets/provTreeListAndChina'
  100. import request from '../../../utils/gw_ajax_request.js';
  101. export default {
  102. name: "InfoSurfaceWater",
  103. components:{
  104. provTreeList
  105. },
  106. props:["dcztStatus","dcztDisabled","currentAdCode"],
  107. data() {
  108. return {
  109. rootCode:'000000',
  110. rootType:'2',
  111. model_shuiwenzhan_name:'',
  112. recordTotal_dxs:'',
  113. tableData_shuiwenzhanList:[],
  114. recordTotal_shuiwenzhan:0,
  115. pageSize_shuiwenzhan: 10,
  116. pageIndex_shuiwenzhan: 1,
  117. loading: false,
  118. adCode:'',
  119. }
  120. },
  121. computed: {
  122. recPersId() {
  123. return localStorage.getItem("userid") ? localStorage.getItem("userid") : ''
  124. }
  125. },
  126. mounted(){
  127. this.adCode = this.currentAdCode;
  128. this.rootCode = this.currentAdCode;
  129. let _this = this;
  130. _this.dczt = _this.dcztStatus;
  131. _this.loadTableQuShuiKou();
  132. },
  133. methods:{
  134. indexMethod_country(index) {
  135. return (index + 1) + this.pageSize_shuiwenzhan * (this.pageIndex_shuiwenzhan - 1)
  136. },
  137. provTreeSelectChangeHandler(params) {
  138. if(params.code == '000000000000'){
  139. this.adCode = '';
  140. }else{
  141. this.adCode = params.code;
  142. }
  143. this.$nextTick(()=>{
  144. this.pageSize_shuiwenzhan = 10;
  145. this.pageIndex_shuiwenzhan = 1;
  146. this.loadTableQuShuiKou();
  147. })
  148. },
  149. searchByName() {
  150. this.loadTableQuShuiKou();
  151. },
  152. loadTableQuShuiKou() {
  153. let _this = this;
  154. _this.loading = true;
  155. request.post(`/st/stbprp/base/findPageList`, {
  156. stnm: _this.model_shuiwenzhan_name,
  157. pageNum: _this.pageIndex_shuiwenzhan,
  158. pageSize: _this.pageSize_shuiwenzhan,
  159. adCode: _this.adCode,
  160. // count: false
  161. }).then((res) => {
  162. if (res.success) {
  163. _this.$nextTick(function () {
  164. _this.loading = false;
  165. var obj = res.data;
  166. _this.tableData_shuiwenzhanList = obj.list;
  167. _this.recordTotal_shuiwenzhan = obj.total;
  168. })
  169. }
  170. })
  171. },
  172. handleSizeChange_QuShuiKou (pageSize) {
  173. this.pageSize_shuiwenzhan = pageSize;
  174. this.loadTableQuShuiKou();
  175. },
  176. handleCurrentChange_QuShuiKou (pageNum) {
  177. this.pageIndex_shuiwenzhan = pageNum;
  178. this.loadTableQuShuiKou();
  179. },
  180. bShuikuStatistic(){
  181. },
  182. SwzInfo(row,info){
  183. this.$emit('SwzInfo',row,info);
  184. },
  185. },
  186. watch:{
  187. currentAdCode(n,o){
  188. if(n == '0000000000'){
  189. n = '';
  190. }
  191. this.adCode = n;
  192. this.loadTableQuShuiKou();
  193. }
  194. }
  195. }
  196. </script>
  197. <style>
  198. #swzMain .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  199. background-color: #558ed0;
  200. }
  201. </style>