2b108079b6857b5a327adca3685b9112e68cec7e.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <el-container class="reformFeedback">
  3. <el-aside style="border:1px solid #dcdfe6;" :style="{'height': cardHeight + 'px'}">
  4. <el-header
  5. style="font-size: 17px;height: 5vh;text-align: center;line-height: 5vh;border-bottom:1px solid #dcdfe6;">
  6. <strong>请选择项目:</strong>
  7. </el-header>
  8. <el-row style="overflow-y:auto;padding: 0 10px;">
  9. <el-tree :highlight-current="true" class="filter_tree" :data="treeDataLists" :props="defaultProps"
  10. node-key="id" @node-click="treeNodeClickHandler" ref="tree2"></el-tree>
  11. </el-row>
  12. </el-aside>
  13. <el-main>
  14. <el-form :model="form" label-width="110px">
  15. <el-form-item label="处罚情况说明:">
  16. <el-input v-model="form.punishMents" type="textarea" :rows="5" autocomplete="off"></el-input>
  17. </el-form-item>
  18. <el-form-item label="问责情况说明:">
  19. <el-input v-model="form.rspnMents" type="textarea" :rows="5" autocomplete="off"></el-input>
  20. </el-form-item>
  21. </el-form>
  22. <el-table :data="tableData" border="" stripe="" :height="tableHeight" style="width: 100%">
  23. <el-table-column prop="pblmNm" label="问题名称" min-width="180" show-overflow-tooltip="" align="center">
  24. </el-table-column>
  25. <el-table-column prop="note" label="问题描述" min-width="180" show-overflow-tooltip="" align="center">
  26. </el-table-column>
  27. <el-table-column label="严重性" min-width="80" show-overflow-tooltip="" align="center">
  28. <template slot-scope="scope">
  29. <p v-if="scope.row.pblmPasi == 0"><span class="inspPblmCate"
  30. style="background: #27C19F;">一般</span></p>
  31. <p v-if="scope.row.pblmPasi == 1"><span class="inspPblmCate"
  32. style="background: #E6A23C;">较重</span></p>
  33. <p v-if="scope.row.pblmPasi == 2"><span class="inspPblmCate"
  34. style="background: #F56C6C;">严重</span></p>
  35. </template>
  36. </el-table-column>
  37. <el-table-column label="问题详情" min-width="180" align="center">
  38. <template slot-scope="scope">
  39. <el-button type="text" size="small" @click="problemSee(scope.row)">
  40. 查看
  41. </el-button>
  42. </template>
  43. </el-table-column>
  44. <el-table-column label="整改状态" min-width="120" align="center">
  45. <template slot-scope="scope">
  46. <span v-if="scope.row.rectConc">{{scope.row.rectConc == '1' ? '未整改' : scope.row.rectConc == '2' ? '整改中' : scope.row.rectConc == '3' ? '已整改' : scope.row.rectConc == '4' ? '不具备整改条件': ''}}</span>
  47. </template>
  48. </el-table-column>
  49. <el-table-column label="整改进度" min-width="80" align="center">
  50. <template slot-scope="scope">
  51. <el-button type="text" size="small" @click="toShowDetail(scope.row)">
  52. 查看
  53. </el-button>
  54. </template>
  55. </el-table-column>
  56. <el-table-column label="批复意见" min-width="120" align="center">
  57. </el-table-column>
  58. </el-table>
  59. </el-main>
  60. <!-- 查看问题弹窗 -->
  61. <el-dialog title="查看问题" width="60%" :visible.sync="dialogDetailVisible" :close-on-click-modal="false"
  62. :modal-append-to-body="true" :append-to-body="true">
  63. <problem-detail :problemId="rowPblRowId"></problem-detail>
  64. </el-dialog>
  65. <!-- 整改反馈问题弹窗 -->
  66. <add-rectify v-if="showRectifyDialog" @dialogclose="dialogClose"></add-rectify>
  67. <!--处罚情况-->
  68. <punishcondition v-if="isPunishConditionDialog" @chufadialogclose="chuFaDialogClose"></punishcondition>
  69. <!--问责情况-->
  70. <accountabilitycondition v-if="isAccountabilityCondition" @wenzedialogclose="wenZeDialogClose"
  71. :islookover="isWzLookOver"></accountabilitycondition>
  72. <!--整改进度查看-->
  73. <el-dialog title="整改进度" width="60%" :visible.sync="dialogDetailZgJdVisible" :close-on-click-modal="false"
  74. :modal-append-to-body="true" :append-to-body="true">
  75. <rectificationProgress @closedialog="zgJdCloseDialog" :problemId="rowPblRowId"
  76. :pblmListId="pblmListId"></rectificationProgress>
  77. </el-dialog>
  78. </el-container>
  79. </template>
  80. <script>
  81. import problemDetail from './problemDetail_zgfk.vue'
  82. import addRectify from './addRectify_zgfk.vue'
  83. import punishCondition from './punishCondition'
  84. import accountabilityCondition from './accountabilityCondition'
  85. import rectificationProgress from './rectificationProgress_st'
  86. import request from '../../../utils/gw_ajax_request'
  87. export default {
  88. name: "reformFeedback",
  89. components: {
  90. problemDetail,
  91. addRectify,
  92. punishCondition,
  93. accountabilityCondition,
  94. rectificationProgress
  95. },
  96. props: ["rectId"],
  97. data() {
  98. return {
  99. formTable: {
  100. name: '',
  101. region: ''
  102. },
  103. form: {
  104. "punishMents": '',
  105. "rspnMents": '',
  106. "id": "",
  107. "rectId": "",
  108. "rgstrId": "",
  109. "objId": "",
  110. "name": "",
  111. "rectConc": "",
  112. "note": null,
  113. "persId": null,
  114. "persName": null,
  115. "intm": "",
  116. "uptm": "",
  117. "dataStat": "0"
  118. },
  119. dialogDetailVisible: false,
  120. showRectifyDialog: false,
  121. isPunishConditionDialog: false,
  122. isAccountabilityCondition: false,
  123. tableData: [],
  124. tableHeight: window.innerHeight - 480,
  125. cardHeight: window.innerHeight - 220,
  126. pageSize: 1,
  127. pageNum: 20,
  128. spanOneArr: [],
  129. concatOne: 0,
  130. spanEightArr: [],
  131. concatEight: 0,
  132. spanNineArr: [],
  133. concatNine: 0,
  134. isLookOver: true,
  135. isWzLookOver: false,
  136. dialogDetailZgJdVisible: false,
  137. treeDataLists: [],
  138. defaultProps: {
  139. // children: 'children',
  140. label: 'name'
  141. },
  142. nodeId: '',
  143. rowPblRowId: '',
  144. rectIds: '',
  145. pblmListId: ''
  146. }
  147. },
  148. mounted: function () {
  149. this.getTreeListData();
  150. },
  151. methods: {
  152. getTreeListData() {
  153. request.get(`/tac/pblm/rect/list/getRectListByInfoId/${this.rectId}`).then(res => {
  154. this.$nextTick(()=>{
  155. this.treeDataLists = res.data;
  156. })
  157. })
  158. },
  159. //树节点点击事件
  160. treeNodeClickHandler: function (data, node, tree) {
  161. this.nodeId = data.id;
  162. this.getMenu();
  163. },
  164. getMenu() {
  165. request.get(`/tac/pblm/rect/list/${this.nodeId}`).then(res => {
  166. if (res.success) {
  167. this.form = res.data;
  168. }
  169. })
  170. request.get(`/tac/pblm/rect/list/plmb/getPlmbByPblmListId/${this.nodeId}`).then(res => {
  171. if (res.success) {
  172. this.$nextTick(() => {
  173. this.tableData = res.data;
  174. })
  175. }
  176. })
  177. },
  178. updateQk() {
  179. if (this.nodeId) {
  180. request.post(`/tac/pblm/rect/list/update`, this.form).then(res => {
  181. if (res.success) {
  182. this.$message.success("保存成功");
  183. this.$nextTick(() => {
  184. this.form = res.data;
  185. })
  186. }
  187. })
  188. } else {
  189. this.$message.warning("请选择左侧项目");
  190. }
  191. },
  192. toSearch() {
  193. },
  194. exportTable() {
  195. },
  196. handleSizeChange() {
  197. },
  198. handleCurrentChange() {
  199. },
  200. // 问题查看
  201. problemSee(row) {
  202. this.rowPblRowId = row.id;
  203. this.dialogDetailVisible = true;
  204. },
  205. toShowDetail(row) {
  206. this.rowPblRowId = row.id;
  207. this.pblmListId = row.pblmListId;
  208. this.dialogDetailZgJdVisible = true;
  209. },
  210. toShowRectify() {
  211. this.showRectifyDialog = true
  212. },
  213. dialogClose() {
  214. this.showRectifyDialog = false
  215. },
  216. //关闭
  217. chuFaDialogClose() {
  218. this.isPunishConditionDialog = false;
  219. },
  220. //整改进度关闭
  221. zgJdCloseDialog() {
  222. this.dialogDetailZgJdVisible = false;
  223. },
  224. wenZeDialogClose() {
  225. this.isAccountabilityCondition = false;
  226. },
  227. },
  228. watch: {
  229. rectId(n) {
  230. if (n == '' || n == undefined) {
  231. this.form = {};
  232. this.tableData = [];
  233. }
  234. this.getTreeListData();
  235. }
  236. }
  237. }
  238. </script>
  239. <style lang="scss" scoped="">
  240. .reformFeedback {
  241. .el-tree-node__label {
  242. color: #666;
  243. font-size: 14px;
  244. }
  245. .el-main {
  246. padding: 20px 20px 0 20px;
  247. }
  248. .inspPblmCate {
  249. padding: 2px 10px;
  250. border-radius: 10px;
  251. color: #ffffff;
  252. -webkit-border-radius: 10px;
  253. -moz-border-radius: 10px;
  254. border-radius: 10px;
  255. }
  256. }
  257. </style>