922aa73a81e232a3c3bc6570b70133f235e6099b.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <div :style="{'height':this.tableHeight+'px'}">
  3. <el-container>
  4. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;overflow-x: hidden;">
  5. <el-table :data="villageList" :height="tableHeight1" style="width: 100%">
  6. <el-table-column align="center" show-overflow-tooltip prop="adnm" label="行政村名(*县*乡镇*村)" min-width="160"></el-table-column>
  7. <el-table-column align="center" show-overflow-tooltip prop="isNdAdmin" label="是否需要设置管水员" min-width="110">
  8. <template slot-scope="scope">
  9. <span>{{formatRadio(scope.row.isNdAdmin)}}</span>
  10. </template>
  11. </el-table-column>
  12. <el-table-column align="center" show-overflow-tooltip prop="isAdmin" label="是否设置管水员" min-width="80">
  13. <template slot-scope="scope">
  14. <span>{{formatRadio(scope.row.isAdmin)}}</span>
  15. </template>
  16. </el-table-column>
  17. <el-table-column align="center" show-overflow-tooltip prop="adminNm" label="管水员姓名" min-width="90"></el-table-column>
  18. <el-table-column align="center" show-overflow-tooltip prop="adminAge" label="管水员年龄" min-width="90"></el-table-column>
  19. <el-table-column align="center" show-overflow-tooltip prop="adminPro" label="管水员性质" min-width="90">
  20. <template slot-scope="scope">
  21. <span>{{scope.row.adminPro == 'A' ? '专职' : scope.row.adminPro == 'B' ? '兼职' : scope.row.adminPro}}</span>
  22. </template>
  23. </el-table-column>
  24. <el-table-column align="center" show-overflow-tooltip prop="salary" label="管水员工资(元/年)" min-width="100"></el-table-column>
  25. <el-table-column align="center" show-overflow-tooltip prop="operFee" label="运行维护费用(元/年)" min-width="110"></el-table-column>
  26. <el-table-column align="center" show-overflow-tooltip prop="otherFeeOrg" label="除水费收入外的运行维护费用来源" min-width="130">
  27. <template slot-scope="scope">
  28. <span>{{scope.row.otherFeeOrg == 'A' ? '政府' : scope.row.otherFeeOrg == 'B' ? '村委会' : scope.row.otherFeeOrg == 'C' ? '村民自筹' : scope.row.otherFeeOrg}}</span>
  29. </template>
  30. </el-table-column>
  31. <el-table-column align="center" show-overflow-tooltip prop="feeCommons" label="费用说明" min-width="90"></el-table-column>
  32. <el-table-column align="center" sortable show-overflow-tooltip prop="visitDate" label="暗访日期" min-width="100"></el-table-column>
  33. </el-table>
  34. </el-main>
  35. </el-container>
  36. <!-- 分页 -->
  37. <div style="text-align: center;">
  38. <el-pagination
  39. class="paginationCenter"
  40. background
  41. @size-change="handleSizeChange"
  42. @current-change="search"
  43. :current-page.sync="pageIndex"
  44. :page-sizes="[10, 20, 50, 100]"
  45. :page-size="pageSize"
  46. layout="total, sizes, prev, pager, next"
  47. :total="total">
  48. </el-pagination>
  49. </div>
  50. </div>
  51. </template>
  52. <script>
  53. import provTreeList from "../../../../../widgets/villageList_nongyin.vue";
  54. import inputWith from "../../../../../widgets/inuptWith.vue"
  55. import request from "../../../../../utils/gw_ajax_request.js"
  56. import {formatDateTimeD} from "../../../../../utils/gw_date.js"
  57. export default {
  58. components: {
  59. provTreeList: provTreeList,
  60. inputWith: inputWith
  61. },
  62. props: ['ryObjId'],
  63. data() {
  64. return {
  65. tableHeight: window.innerHeight * 0.5,
  66. tableHeight1: window.innerHeight * 0.5 -2,
  67. addObj: {
  68. adnm: '',
  69. adCode: '',
  70. isNdAdmin: '',
  71. recPersId: '',
  72. isAdmin: '',
  73. adminNm: '',
  74. adminAge: '',
  75. adminPro: '',
  76. salary: '',
  77. operFee: '',
  78. otherFeeOrg: '',
  79. feeCommons: '',
  80. visitDate: '',
  81. recPers2: ''
  82. },
  83. searchObj: {
  84. pageNum: 1,
  85. pageSize: 20
  86. },
  87. adminType: [
  88. {
  89. label: '专职',
  90. value: 'A'
  91. },{
  92. label: '兼职',
  93. value: 'B'
  94. }
  95. ],
  96. feeFrom: [
  97. {
  98. label: '政府',
  99. value: 'A',
  100. },{
  101. label: '村委会',
  102. value: 'B',
  103. },{
  104. label: '村民自筹',
  105. value: 'C',
  106. },
  107. ],
  108. pageIndex: 1,
  109. pageSize: 20,
  110. total: 1,
  111. villageList: [],
  112. dialogFormVisible: false,
  113. formLabelWidth: '170px',
  114. curOperate: '',
  115. isExits: false,
  116. loading: true
  117. }
  118. },
  119. computed:{
  120. recPersId(){
  121. return localStorage.getItem("userid")? localStorage.getItem("userid"): '1098101939614724096'
  122. }
  123. },
  124. watch: {
  125. ryObjId(newVal,oldVal){
  126. if(newVal){
  127. this.getVillageList()
  128. }
  129. }
  130. },
  131. mounted() {
  132. this.getVillageList()
  133. },
  134. methods: {
  135. //工程列表
  136. getVillageList(){
  137. this.searchObj.pageSize = this.pageSize;
  138. this.searchObj.pageNum = this.pageIndex;
  139. this.searchObj.ryObjId = this.ryObjId
  140. let paramsObj = this.searchObj
  141. request.post('/dc/insp/VlgdrinkFacOper/queryListByPage',paramsObj).then((res)=>{
  142. if(res.success){
  143. this.villageList = res.data.list
  144. this.total = res.data.total
  145. // this.loading = false
  146. }
  147. })
  148. },
  149. search(val){
  150. this.pageIndex = val
  151. this.getVillageList()
  152. },
  153. handleSizeChange(val){
  154. console.log(val);
  155. this.pageSize = val;
  156. this.getVillageList()
  157. },
  158. formatRadio(val){
  159. if(val == '1'){
  160. return '是'
  161. }else{
  162. return '否'
  163. }
  164. }
  165. },
  166. }
  167. </script>
  168. <style>
  169. </style>