063e1c220cdecfdceabb0f1805e0bb012fa9158b.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div style="height:100%;width:100%;" class="dctb_dxs">
  3. <el-container style="height:100%;width:100%;">
  4. <el-aside width="260px" style="border-right:2px solid #d5d5ff;float:left"
  5. :style="{'max-height':testHeight+'px','height':testHeight+'px'}">
  6. <TreeListWithCheckBox
  7. type="5"
  8. :height="dxdcAsideHeight"
  9. width="250"
  10. @treeCheckedDataChange="treeCheckedDataChange"></TreeListWithCheckBox>
  11. </el-aside>
  12. <el-main id="dxdcListMainsk" style="padding:5px 20px;">
  13. <el-table
  14. :data="dxsDataList"
  15. style="width: 100%"
  16. :height="dxdcMainHeight"
  17. >
  18. <el-table-column
  19. prop="stnm"
  20. label="测站名称"
  21. min-width="100">
  22. </el-table-column>
  23. <el-table-column
  24. prop="stcd"
  25. label="测站编码"
  26. min-width="100">
  27. </el-table-column>
  28. <el-table-column
  29. prop="sttpNm"
  30. min-width="120"
  31. label="测站类别">
  32. </el-table-column>
  33. <el-table-column
  34. prop="stlc"
  35. min-width="180"
  36. label="测站地址">
  37. </el-table-column>
  38. <el-table-column
  39. prop="allScore"
  40. min-width="80"
  41. label="得分合计">
  42. </el-table-column>
  43. <el-table-column
  44. prop="inspState"
  45. label="督查状态"
  46. align="center"
  47. min-width="130">
  48. <template slot-scope="scope">
  49. <span style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)" v-if="scope.row.inspState == 0">未督查</span>
  50. <span style="padding: 3px 10px;background:#FBB56D;border-radius:15px;color:rgba(255,255,255,1)" v-if="scope.row.inspState == 1">督查中</span>
  51. <span style="padding: 3px 10px;background:#63C25E;border-radius:15px;color:rgba(255,255,255,1)" v-if="scope.row.inspState == 2">已督查</span>
  52. </template>
  53. </el-table-column>
  54. <el-table-column
  55. prop="maintainStatus"
  56. label="测站维护管理状态"
  57. align="center"
  58. min-width="130">
  59. <template slot-scope="scope">
  60. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.maintainStatus == '2' || (scope.row.maintainStatus == '1' && scope.row.inspState == '2')">已完成</p>
  61. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.maintainStatus == '1' && scope.row.inspState != '2'">已填报</p>
  62. <p style="cursor:pointer;color:#F56C6C;" v-if="!scope.row.maintainStatus || scope.row.maintainStatus == '0'">未填报</p>
  63. </template>
  64. </el-table-column>
  65. <el-table-column
  66. prop="percentageStatus"
  67. label="监测数据质量和到报率状态"
  68. align="center"
  69. min-width="130">
  70. <template slot-scope="scope">
  71. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.percentageStatus == '2' || (scope.row.percentageStatus == '1' && scope.row.inspState == '2')">已完成</p>
  72. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.percentageStatus == '1' && scope.row.inspState != '2'">已填报</p>
  73. <p style="cursor:pointer;color:#F56C6C;" v-if="!scope.row.percentageStatus || scope.row.percentageStatus == '0'">未填报</p>
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="checkComment"
  78. label="检查人员评价"
  79. align="center"
  80. min-width="130">
  81. <template slot-scope="scope">
  82. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.inspState == '2' && scope.row.checkComment">已完成</p>
  83. <p style="cursor:pointer;color:#67C23A" v-if="scope.row.checkComment && scope.row.checkComment != '' && scope.row.inspState !== '2'">已填报</p>
  84. <p style="cursor:pointer;color:#F56C6C;" v-if="!scope.row.checkComment || scope.row.checkComment == ''">未填报</p>
  85. </template>
  86. </el-table-column>
  87. <el-table-column
  88. prop="uptm"
  89. label="更新时间"
  90. align="center"
  91. min-width="160">
  92. </el-table-column>
  93. <el-table-column align="center" show-overflow-tooltip label="操作" min-width="160" fixed="right">
  94. <template slot-scope="scope">
  95. <el-button type="success" plain @click="lookOver(scope.row)">查看</el-button>
  96. </template>
  97. </el-table-column>
  98. </el-table>
  99. <el-pagination background :pager-count="5" :current-page="pageIndex"
  100. :page-size="pageSize" :page-sizes="[10, 20, 30, 40, 50, 100]"
  101. layout="sizes, total, prev, pager, next" :total="total"
  102. @current-change="pageIndexChange" @size-change="handleSizeChange"
  103. ></el-pagination>
  104. </el-main>
  105. </el-container>
  106. <jichuxinxiDxs ref="dxsJcxxRef" v-if="showDxsBaseInfo" :currentDxsCode="currentGrwCode"
  107. :currentObjectId="currentObjectId"></jichuxinxiDxs>
  108. </div>
  109. </template>
  110. <script>
  111. import request from '../../../utils/gw_ajax_request.js'
  112. import {dateFormat} from '../../../utils/gw_date.js'
  113. import provTreeList from "../../../widgets/provTreeList.vue"
  114. import TreeListWithCheckBox from "./treeListWithCheckBox"
  115. export default {
  116. components: {
  117. provTreeList: provTreeList,
  118. jichuxinxiDxs: resolve => {
  119. require(['../../../views/zongHeXinXiOl/components/popupWindow/dxs/main.vue'], resolve)
  120. },
  121. TreeListWithCheckBox
  122. },
  123. props: [],
  124. data() {
  125. return {
  126. treeData: [],
  127. dxdcMainHeight: window.innerHeight - 147,
  128. testHeight: window.innerHeight - 111,
  129. stationType: 'autoStation',
  130. dxsDataList: [],
  131. pageIndex: 1,
  132. pageSize: 20,
  133. total: 0,
  134. tableHeight: 0,
  135. currentGrwCode: '',
  136. currentGrwName: '',
  137. currentObjectId: '',
  138. currentObjectRgstrId: '',
  139. currentSttp: '',
  140. currentObjectInfoObject: null,
  141. showShuDxsTianBao: false,
  142. currentAdCode: '',
  143. currentNodeId: '',//没有初始值。
  144. typeDialog: false,
  145. staType: '',
  146. frequency: '',
  147. btnType: '',
  148. submitRow: null,
  149. showDxsBaseInfo: false,
  150. adCodes: [],
  151. dxdcAsideHeight: window.innerHeight - 180,
  152. };
  153. },
  154. computed: {
  155. persId() {
  156. return localStorage.getItem("userid")
  157. ? localStorage.getItem("userid")
  158. : "1098101939614724096";
  159. },
  160. recPersName() {
  161. return localStorage.getItem("account") ? localStorage.getItem("account") : ''
  162. }
  163. },
  164. mounted() {
  165. let h = document.getElementById('dxdcListMainsk').offsetHeight;
  166. this.tableHeight = h - 100;
  167. console.log('tableHeight' + this.tableHeight);
  168. },
  169. watch: {
  170. adCodes(n) {
  171. if (n.length) {
  172. this.getDXSDataList();
  173. }
  174. }
  175. },
  176. methods: {
  177. //树节点选中或取消事件
  178. treeCheckedDataChange(params) {
  179. this.adCodes = Array.from(new Set(params.CheckedKey));
  180. },
  181. formatDate(row, column) {
  182. if (row.uptm) {
  183. return (dateFormat(row.uptm, 'yyyy-MM-dd'));
  184. }
  185. },
  186. getDXSDataList() {
  187. let adCodes = this.adCodes.toString();
  188. request.post(`/dc/insp/grw/queryDetailListWithPblm`, {
  189. 'adCodes': adCodes,
  190. 'pageSize': this.pageSize,
  191. 'pageNum': this.pageIndex
  192. }).then((res) => {
  193. console.log(res)
  194. if (res.success) {
  195. this.dxsDataList = res.data.list;
  196. this.total = res.data.total;
  197. }
  198. }
  199. );
  200. },
  201. pageIndexChange(val) {
  202. console.log(val);
  203. this.pageIndex = val;
  204. this.getDXSDataList();
  205. },
  206. handleSizeChange(val) {
  207. this.pageSize = val;
  208. this.getDXSDataList();
  209. },
  210. formatSttp(val) {
  211. let sttp = val ? val.toUpperCase() : ''
  212. if (sttp == 'NATIONAL') {
  213. return '国家级'
  214. } else if (sttp == 'PROVAUTO') {
  215. return '省级自动站'
  216. } else if (sttp == 'PROVHAND') {
  217. return '省级手动站'
  218. }
  219. },
  220. //成果查看
  221. lookOver(row) {
  222. this.currentGrwCode = row.stcd;
  223. this.currentObjectId = row.objId;
  224. this.showDxsBaseInfo = true;
  225. if (this.$refs['dxsJcxxRef']) {
  226. this.$refs['dxsJcxxRef'].showDialog();
  227. }
  228. }
  229. },
  230. };
  231. </script>
  232. <style>
  233. .dctb_dxs .el-table .warning-row {
  234. background: oldlace;
  235. }
  236. .dctb_dxs .el-table .success-row {
  237. background: #f0f9eb;
  238. }
  239. </style>