706ebdaefc9176fa7d9b45bda89a4c523bd79f5e.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <template>
  2. <div style="height:100%;width:100%;">
  3. <el-container style="height:100%;width:100%;">
  4. <el-aside width="320px" style="border-right:2px solid #d5d5ff;float:left"
  5. :style="{'max-height':testHeight+'px','height':testHeight+'px'}">
  6. <cg-left-tree orgType="25" @treeNodeClickHandler="treeNodeClickHandler"></cg-left-tree>
  7. </el-aside>
  8. <!-- 主要窗口 -->
  9. <el-main id="dxdcListMaintdfj" style="padding:5px 20px;">
  10. <el-row>
  11. <el-col :span="24">
  12. <el-form :inline="true" size="mini" class="demo-form-inline" style="padding-left: 10px;">
  13. <el-form-item label="督查状态">
  14. <el-select v-model="dcType" clearable placeholder="督查状态">
  15. <el-option label="未督查" value="0"></el-option>
  16. <el-option label="督查中" value="1"></el-option>
  17. <el-option label="已督查" value="2"></el-option>
  18. </el-select>
  19. </el-form-item>
  20. <el-form-item label="项目名称">
  21. <el-input v-model="name" placeholder="项目名称" clearable></el-input>
  22. </el-form-item>
  23. <el-form-item label="督查时间">
  24. <div style="display: flex;">
  25. <el-date-picker
  26. v-model="dateRange"
  27. type="daterange"
  28. value-format="yyyy-MM-dd"
  29. style="width:100%"
  30. range-separator="至"
  31. start-placeholder="开始日期"
  32. end-placeholder="结束日期"
  33. ></el-date-picker>
  34. </div>
  35. </el-form-item>
  36. <el-form-item style="float:right">
  37. <el-button type="primary" @click="onSubmit" icon="el-icon-search">查询</el-button>
  38. </el-form-item>
  39. </el-form>
  40. </el-col>
  41. </el-row>
  42. <el-table
  43. ref="table"
  44. border
  45. :height="tableHeight"
  46. :data="tdfjDataList"
  47. style="width: 100%"
  48. v-loading="expLoading">
  49. <el-table-column prop="nm" label="项目名称" min-width="130" align="center"
  50. fixed="left"></el-table-column>
  51. <el-table-column prop="province" label="省" v-if="isXj" show-overflow-tooltip min-width="100"
  52. align="center"></el-table-column>
  53. <el-table-column prop="city" :label="ownAdName" show-overflow-tooltip min-width="100"
  54. align="center"></el-table-column>
  55. <el-table-column prop="county" label="县" v-if="isXj" show-overflow-tooltip min-width="100"
  56. align="center"></el-table-column>
  57. <el-table-column prop="groupName" label="所在组" show-overflow-tooltip min-width="150"
  58. align="center"></el-table-column>
  59. <el-table-column prop="intm" label="创建时间" show-overflow-tooltip min-width="100"
  60. align="center"></el-table-column>
  61. <el-table-column
  62. prop="uptm"
  63. label="修改时间"
  64. align="center"
  65. min-width="100">
  66. </el-table-column>
  67. <el-table-column
  68. prop="wtdstState"
  69. label="督查状态"
  70. align="center"
  71. min-width="130">
  72. <template slot-scope="scope">
  73. <span
  74. style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"
  75. v-if="scope.row.wtdstState == '0' || !scope.row.wtdstState">未督查</span>
  76. <span
  77. style="padding: 3px 10px;background:#FBB56D;border-radius:15px;color:rgba(255,255,255,1)"
  78. v-if="scope.row.wtdstState == '1'">督查中</span>
  79. <span
  80. style="padding: 3px 10px;background:#63C25E;border-radius:15px;color:rgba(255,255,255,1)"
  81. v-if="scope.row.wtdstState == '2'">已督查</span>
  82. </template>
  83. </el-table-column>
  84. <el-table-column
  85. prop="waterPriceIsMade"
  86. label="水价相关政策制定情况"
  87. align="center"
  88. min-width="130">
  89. <template slot-scope="scope">
  90. <p style="cursor:pointer;color:#F56C6C;"
  91. v-if="scope.row.waterPriceIsMade == 0 || !scope.row.waterPriceIsMade">待填报</p>
  92. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.waterPriceIsMade == 1">未完成</p>
  93. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.waterPriceIsMade == 2">已完成</p>
  94. </template>
  95. </el-table-column>
  96. <el-table-column align="center" label="操作" min-width="220" fixed="right">
  97. <template slot-scope="scope">
  98. <el-button
  99. size="mini"
  100. type="success"
  101. plain
  102. @click="renyinNewInfo(scope.row)"
  103. >查看
  104. </el-button>
  105. </template>
  106. </el-table-column>
  107. </el-table>
  108. <el-pagination background :pager-count="5" :current-page="pageIndex"
  109. :page-size="pageSize" :page-sizes="[10, 20, 30, 40, 50, 100]"
  110. layout="sizes, total, prev, pager, next" :total="total"
  111. @current-change="pageIndexChange" @size-change="handleSizeChange"
  112. ></el-pagination>
  113. </el-main>
  114. <xinRenYinChengGuo v-if="showxinRenYinChengGuo" :rowData="rowData"
  115. :currentObjectRgstrId="currentObjectRgstrId" :currentObjectId="currentObjectId"
  116. :currentObjectName="currentResName"
  117. @cancelHandler="cancelHandler"
  118. @addxinRenYinSuccess="addxinRenYinSuccess"></xinRenYinChengGuo>
  119. </el-container>
  120. </div>
  121. </template>
  122. <script>
  123. import request from '@util/gw_ajax_request.js'
  124. import {dateFormat} from '@util/gw_date.js'
  125. import xinRenYinChengGuo from "../../zongHeXinXiOl/components/popupWindow/renyinNew/main"
  126. import cgLeftTree from "../dccg_lefttree.vue"
  127. export default {
  128. components: {
  129. xinRenYinChengGuo: xinRenYinChengGuo,
  130. cgLeftTree
  131. },
  132. props: [],
  133. data() {
  134. return {
  135. dateRange: [],
  136. lyjg: [],
  137. engScale: '',
  138. orgName: '',
  139. groupName: '',
  140. groupId: '',
  141. groups: [],
  142. adName: '',
  143. treeData: [],
  144. dxdcMainHeight: window.innerHeight - 304,
  145. testHeight: window.innerHeight - 111,
  146. tdfjDataList: [],
  147. pageIndex: 1,
  148. pageSize: 20,
  149. total: 0,
  150. tableHeight: 0,
  151. currentResCode: '',
  152. currentResName: '',
  153. currentObjectId: '',
  154. currentObjectRgstrId: '',
  155. currentObjectInfoObject: null,
  156. showxinRenYinChengGuo: false,
  157. currentAdCode: '',
  158. currentNodeId: '',
  159. rsvrName: '',
  160. dcType: '',
  161. sjState: '',
  162. rowData: '',
  163. disabled: true,
  164. showxinRenYinChengGuoPl: false,
  165. downIcon: 'el-icon-download',
  166. expLoading: false,
  167. dataStat: '',
  168. name: '',
  169. state: '',
  170. adCodes: []
  171. };
  172. },
  173. computed: {
  174. persId() {
  175. return localStorage.getItem("userid")
  176. ? localStorage.getItem("userid")
  177. : "1098101939614724096";
  178. },
  179. isAdmin: function () {
  180. return localStorage.getItem("isAdmin") ? localStorage.getItem("isAdmin") : ''
  181. },
  182. hasPriv() {
  183. return this.ownPriv
  184. }
  185. },
  186. mounted() {
  187. this.$nextTick(function () {
  188. this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 50;
  189. let _self = this;
  190. window.onresize = function () {
  191. _self.tableHeight = window.innerHeight - _self.$refs.table.$el.offsetTop - 50
  192. }
  193. })
  194. // this.getTdfjDataList();
  195. },
  196. watch: {
  197. currentNodeId(n, o) {
  198. this.getTdfjDataList();
  199. }
  200. },
  201. methods: {
  202. renyinNewInfo(rowData) {
  203. var _self = this;
  204. _self.rowData = rowData;
  205. _self.currentObjectId = this.rowData.objId;
  206. _self.currentObjectRgstrId = this.rowData.regstrId;
  207. _self.currentResName = this.rowData.nm;
  208. _self.currentResCode = this.rowData.code;
  209. _self.showxinRenYinChengGuo = true;
  210. },
  211. treeNodeClickHandler(data) {
  212. this.adCodes = data;
  213. },
  214. getTdfjDataList: function () {
  215. this.expLoading = true;
  216. let paramStartDate = '';
  217. let paramEndDate = '';
  218. if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
  219. paramStartDate = this.dateRange[0];
  220. paramEndDate = this.dateRange[1];
  221. }
  222. let params = {
  223. "sttm": paramStartDate,
  224. "entm": paramEndDate,
  225. "pageSize": this.pageSize,
  226. "pageNum": this.pageIndex,
  227. "groupId": this.groupId,
  228. "name": this.name,
  229. "state": this.dcType,
  230. "pType": 25,
  231. "adName": this.adName,
  232. "presId": this.persId,
  233. "plnaId": this.currentNodeId,
  234. "adCodes": this.adCodes.toString()
  235. };
  236. request.post(`/bis/new/vill/rgstr/findPageByType`, params).then(res => {
  237. if (res.success) {
  238. this.expLoading = false;
  239. if (res.data.list) {
  240. res.data.list.forEach((item) => {
  241. if (item.intm && item.uptm) {
  242. item.intm = item.intm.substr(0, 10);
  243. item.uptm = item.uptm.substr(0, 10);
  244. }
  245. })
  246. }
  247. this.tdfjDataList = res.data.list;
  248. this.total = res.data.total;
  249. }
  250. })
  251. },
  252. onSubmit() {
  253. this.getTdfjDataList();
  254. },
  255. toAddMember(type, rowData) {
  256. console.log(rowData)
  257. var _self = this;
  258. this.rowData = rowData;
  259. console.log(rowData);
  260. _self.currentObjectId = this.rowData.objId;
  261. _self.currentObjectRgstrId = this.rowData.regstrId;
  262. _self.currentResName = this.rowData.nm;
  263. _self.currentResCode = this.rowData.code;
  264. _self.showxinRenYinChengGuo = true;
  265. },
  266. cancelHandler() {
  267. this.showxinRenYinChengGuo = false;
  268. this.getTdfjDataList();
  269. },
  270. addxinRenYinSuccess() {
  271. this.getTdfjDataList();
  272. },
  273. pageIndexChange(val) {
  274. console.log(val);
  275. this.pageIndex = val;
  276. this.getTdfjDataList();
  277. },
  278. handleSizeChange(val) {
  279. this.pageSize = val;
  280. this.getTdfjDataList();
  281. }
  282. },
  283. };
  284. </script>
  285. <style>
  286. .el-table .warning-row {
  287. background: oldlace;
  288. }
  289. .el-table .success-row {
  290. background: #f0f9eb;
  291. }
  292. #dxdcListMaintdfj {
  293. overflow-y: hidden;
  294. }
  295. </style>