d16036f8fd61460f8f8f6af356428df5b32d48a8.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <template>
  2. <div>
  3. <el-row class="mb10">
  4. <el-col :span="24">整改问题:</el-col>
  5. </el-row>
  6. <el-row class="mb10">
  7. <el-col :span="24">
  8. <el-table
  9. :data="tableDataZgWt"
  10. border
  11. stripe
  12. style="width: 100%">
  13. <el-table-column
  14. prop="name"
  15. label="项目"
  16. min-width="180"
  17. show-overflow-tooltip>
  18. </el-table-column>
  19. <el-table-column
  20. prop="pblmNm"
  21. label="问题名称"
  22. min-width="180"
  23. show-overflow-tooltip>
  24. </el-table-column>
  25. <el-table-column
  26. prop="note"
  27. label="问题描述"
  28. min-width="180"
  29. show-overflow-tooltip>
  30. </el-table-column>
  31. <el-table-column
  32. label="严重程度"
  33. min-width="120"
  34. show-overflow-tooltip>
  35. <template slot-scope="scope">
  36. <p v-if="scope.row.pblmPasi == 0"><span class="inspPblmCate"
  37. style="background: #27C19F;">一般</span></p>
  38. <p v-if="scope.row.pblmPasi == 1"><span class="inspPblmCate"
  39. style="background: #E6A23C;">较重</span></p>
  40. <p v-if="scope.row.pblmPasi == 2"><span class="inspPblmCate"
  41. style="background: #F56C6C;">严重</span></p>
  42. <!--<p v-if="scope.row.inspPblmCate == 3"><span class="inspPblmCate" style="background: #795548;">特别严重</span></p>-->
  43. </template>
  44. </el-table-column>
  45. <!--<el-table-column-->
  46. <!--label="问题详情"-->
  47. <!--min-width="180">-->
  48. <!--<template slot-scope="scope">-->
  49. <!--<el-button type="text" size="small" @click="problemSee(scope.row)">查看</el-button>-->
  50. <!--</template>-->
  51. <!--</el-table-column>-->
  52. </el-table>
  53. </el-col>
  54. </el-row>
  55. <el-row class="mb10" :gutter="20">
  56. <el-col :span="4">反馈记录:</el-col>
  57. </el-row>
  58. <el-row class="mb10">
  59. <el-col :span="24">
  60. <el-table
  61. :data="tableDataFkJl"
  62. ref="tableDataFkJl"
  63. :height="tableHeight"
  64. border
  65. stripe
  66. style="width: 100%"
  67. @selection-change='selectRow'>
  68. <el-table-column type="selection" width="45" align="center"></el-table-column>
  69. <el-table-column type="index" fixed min-width="80" :index="getIndex" label="序号"
  70. show-overflow-tooltip align="center"></el-table-column>
  71. <el-table-column
  72. header-align="center"
  73. align="center"
  74. min-width="200"
  75. label="反馈时间"
  76. prop="intm"
  77. ></el-table-column>
  78. <el-table-column
  79. prop="rectConc"
  80. label="整改状态"
  81. min-width="180"
  82. show-overflow-tooltip>
  83. <template slot-scope="scope">
  84. <span v-if="scope.row.rectConc == 1">整改中</span>
  85. <span v-if="scope.row.rectConc == 2">未整改</span>
  86. <span v-if="scope.row.rectConc == 3">已整改</span>
  87. <span v-if="scope.row.rectConc == 4">不具备整改条件</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column
  91. prop="city"
  92. label="反馈详情"
  93. min-width="120"
  94. show-overflow-tooltip>
  95. <template slot-scope="scope">
  96. <el-button type="text" size="small" @click="problemSeeFk(scope.row)">查看</el-button>
  97. </template>
  98. </el-table-column>
  99. <el-table-column
  100. label="批复时间"
  101. min-width="180"
  102. prop="replyTm"
  103. show-overflow-tooltip>
  104. </el-table-column>
  105. <el-table-column
  106. label="批复意见"
  107. min-width="180"
  108. prop="replyState">
  109. <template slot-scope="scope">
  110. <span v-if="scope.row.replyState == 1">通过</span>
  111. <span v-if="scope.row.replyState == 0">不通过</span>
  112. </template>
  113. </el-table-column>
  114. <el-table-column
  115. prop="inspPblmCate"
  116. label="批复意见说明"
  117. min-width="120"
  118. show-overflow-tooltip>
  119. <template slot-scope="scope">
  120. <el-button type="text" size="small" @click="problemEditPf(scope.row)">编辑</el-button>
  121. </template>
  122. </el-table-column>
  123. </el-table>
  124. </el-col>
  125. </el-row>
  126. <!--编辑反馈详情-->
  127. <addRectify v-if="zgfkDialog" @dialogClose="dialogClose" :listId="rowId" :listPlmbId="listPlmbId"></addRectify>
  128. <!--查看反馈详情-->
  129. <el-dialog title="查看反馈" width="60%" :visible.sync="dialogDetailVisible" :close-on-click-modal="false"
  130. :modal-append-to-body="true" :append-to-body="true">
  131. <problem-detail :problemId="rowId"></problem-detail>
  132. </el-dialog>
  133. <!--批复意见编辑-->
  134. <reply v-if="pfYjDialog" @dialogClose="dialogClose" :rowPblRowId="rowPblRowId"></reply>
  135. <!--查看批复详情-->
  136. <el-dialog title="查看批复" width="40%" :visible.sync="dialogDetailPfVisible" :close-on-click-modal="false"
  137. :modal-append-to-body="true" :append-to-body="true">
  138. <problemDetailPf :problemId="rowPblRowId"></problemDetailPf>
  139. </el-dialog>
  140. </div>
  141. </template>
  142. <script>
  143. import problemDetail from './problemDetail_fkxq.vue'
  144. import problemDetailPf from './problemDetail_pfxq.vue'
  145. import request from '@util/gw_ajax_request.js'
  146. import addRectify from './addRectify'
  147. import reply from './reply'
  148. import {dateFormat} from '../../../utils/gw_date';
  149. export default {
  150. props: ["problemId", "pblmListId"], //
  151. data() {
  152. //这里存放数据
  153. return {
  154. dialogFormVisible: true,
  155. tableDataZgWt: [],
  156. tableDataFkJl: [
  157. {
  158. 'aa': 'ceshi'
  159. }
  160. ],
  161. selectlistRow: [],
  162. pageSize: 10,
  163. pageNum: 1,
  164. tableHeight: window.innerHeight * .4,
  165. zgfkDialog: false,
  166. pfYjDialog: false,
  167. rowPblRowId: '',
  168. rowId: '',
  169. dialogDetailVisible: false,
  170. dialogDetailPfVisible: false,
  171. listPlmbId: "",
  172. ifMinistriesAgencies: false
  173. };
  174. },
  175. components: {
  176. addRectify,
  177. problemDetail,
  178. problemDetailPf,
  179. reply
  180. },
  181. computed: {
  182. persId() {
  183. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  184. },
  185. },
  186. //监控data中的数据变化
  187. watch: {
  188. problemId(n, o) {
  189. if (n) {
  190. this.problemId = n;
  191. this.getDataFkJl();
  192. }
  193. }
  194. },
  195. //方法集合
  196. methods: {
  197. async getDataFkJl() {
  198. this.tableDataZgWt = [];
  199. await request.get(`/tac/pblm/rect/plmb/aps/getPlmbApsByListPlmbId/${this.pblmListId}`).then(res => {
  200. if (res.success) {
  201. this.tableDataFkJl = res.data;
  202. this.tableDataFkJl.forEach(item => {
  203. item.intm = dateFormat(item.intm, "yyyy-MM-dd");
  204. item.replyTm = dateFormat(item.replyTm, "yyyy-MM-dd");
  205. item.uptm = dateFormat(item.uptm, "yyyy-MM-dd");
  206. })
  207. console.log(this.tableDataFkJl);
  208. }
  209. })
  210. await request.get(`/tac/pblm/rect/list/plmb/${this.problemId}`).then(res => {
  211. this.tableDataZgWt.push(res.data);
  212. });
  213. },
  214. //取消
  215. closeDialog() {
  216. this.$emit('closeDialog')
  217. },
  218. getIndex(index) {
  219. return (index + this.pageSize * (this.pageNum - 1)) + 1
  220. },
  221. // 获取表格选中时的数据
  222. selectRow(val) {
  223. this.selectlistRow = val
  224. },
  225. //反馈查看
  226. problemSeeFk(row) {
  227. this.rowId = row.id;
  228. this.dialogDetailVisible = true;
  229. },
  230. dialogClose() {
  231. this.zgfkDialog = false;
  232. this.pfYjDialog = false;
  233. },
  234. // 批复意见说明编辑
  235. problemEditPf(row) {
  236. this.pfYjDialog = true;
  237. this.rowPblRowId = row.listPlmbId;
  238. }
  239. },
  240. //生命周期 - 创建完成(可以访问当前this实例)
  241. created() {
  242. },
  243. //生命周期 - 挂载完成(可以访问DOM元素)
  244. mounted() {
  245. this.$nextTick(() => {
  246. console.log(this.problemId);
  247. this.getDataFkJl();
  248. })
  249. }
  250. }
  251. </script>
  252. <style scoped>
  253. .mb10 {
  254. margin-bottom: 10px;
  255. }
  256. </style>