e78b600ec2d8bc94f7244a7707ce8af0bd54b464.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <template>
  2. <el-dialog width="70%"
  3. :visible.sync="dialogVisible"
  4. title="销号问题列表"
  5. @close="dialogClose">
  6. <div class="messageBox">
  7. <el-form :inline="true" size="mini" class="demo-form-inline" style="padding-left: 10px;">
  8. <el-form-item label="行政区划:">
  9. <el-input
  10. resize="none"
  11. type="input"
  12. :rows="3"
  13. placeholder="行政区划名称"
  14. v-model.trim="params.pblmAdName"
  15. clearable
  16. ></el-input>
  17. </el-form-item>
  18. <el-form-item label="对象名称:">
  19. <el-input
  20. resize="none"
  21. type="input"
  22. :rows="3"
  23. placeholder="请输入名称"
  24. v-model.trim="params.objName"
  25. clearable
  26. ></el-input>
  27. </el-form-item>
  28. <el-form-item label="问题类别:">
  29. <el-input
  30. resize="none"
  31. type="input"
  32. :rows="3"
  33. placeholder="请输入问题类别"
  34. v-model.trim="params.pblmNameBz"
  35. clearable
  36. ></el-input>
  37. </el-form-item>
  38. <el-form-item label="督查类别:">
  39. <el-input
  40. :disabled="isObjType"
  41. resize="none"
  42. type="input"
  43. :rows="3"
  44. placeholder="请输入督查类别"
  45. v-model.trim="params.pblmClassify"
  46. clearable
  47. ></el-input>
  48. </el-form-item>
  49. <el-form-item label="上报人员:">
  50. <el-input
  51. resize="none"
  52. type="input"
  53. :rows="3"
  54. placeholder="请输入名称"
  55. v-model.trim="params.persName"
  56. clearable
  57. ></el-input>
  58. </el-form-item>
  59. <el-form-item label="">
  60. <el-button
  61. style="color:rgba(255,255,255,1);"
  62. type="primary"
  63. icon="el-icon-search"
  64. @click="getTableData"
  65. >&nbsp;查&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;询&nbsp;
  66. </el-button>
  67. </el-form-item>
  68. </el-form>
  69. <el-table
  70. v-loading="loading"
  71. border
  72. ref="table"
  73. :height="tableHeight"
  74. :data="tableData"
  75. tooltip-effect="dark"
  76. style="width: 100%"
  77. >
  78. <el-table-column align="center" type="index" label="序号" width="60">
  79. <template slot-scope="scope">{{ (pageNum - 1) * pageSize + (scope.$index + 1) }}
  80. </template>
  81. </el-table-column>
  82. <el-table-column
  83. header-align="center"
  84. align="center"
  85. min-width="60"
  86. prop="province"
  87. label="省" v-if="isXj"
  88. show-overflow-tooltip
  89. ></el-table-column>
  90. <el-table-column
  91. header-align="center"
  92. align="center"
  93. min-width="60"
  94. prop="city"
  95. :label="ownAdName"
  96. show-overflow-tooltip
  97. ></el-table-column>
  98. <el-table-column
  99. header-align="center"
  100. align="center"
  101. min-width="60"
  102. prop="county"
  103. label="县"
  104. v-if="isXj"
  105. show-overflow-tooltip
  106. ></el-table-column>
  107. <el-table-column
  108. header-align="center"
  109. align="center"
  110. min-width="110"
  111. prop="objName"
  112. label="督查对象名称"
  113. show-overflow-tooltip
  114. ></el-table-column>
  115. <el-table-column
  116. header-align="center"
  117. align="center"
  118. min-width="110"
  119. prop="pblmClassify"
  120. label="督查类别"
  121. show-overflow-tooltip
  122. ></el-table-column>
  123. <el-table-column
  124. header-align="center"
  125. align="center"
  126. min-width="140"
  127. prop="pblmNameBz"
  128. label="问题类别"
  129. show-overflow-tooltip
  130. ></el-table-column>
  131. <el-table-column
  132. header-align="center"
  133. align="center"
  134. min-width="100"
  135. prop="checkPointBz"
  136. label="检查项目"
  137. show-overflow-tooltip
  138. ></el-table-column>
  139. <el-table-column
  140. header-align="center"
  141. align="center"
  142. min-width="100"
  143. prop="pblmDescBz"
  144. label="问题描述"
  145. show-overflow-tooltip>
  146. </el-table-column>
  147. <el-table-column
  148. header-align="center"
  149. align="center"
  150. min-width="100"
  151. prop="inspPblmDesc"
  152. label="详细描述"
  153. show-overflow-tooltip
  154. ></el-table-column>
  155. <el-table-column
  156. header-align="center"
  157. align="center"
  158. min-width="100"
  159. prop="inspPblmCate"
  160. label="严重程度"
  161. show-overflow-tooltip
  162. >
  163. <template slot-scope="scope">
  164. <span v-if="scope.row.inspPblmCate=='0'" class="info">一般</span>
  165. <span v-if="scope.row.inspPblmCate=='1'" class="warning">较重</span>
  166. <span v-if="scope.row.inspPblmCate=='2'" class="fatal">严重</span>
  167. <span v-if="scope.row.inspPblmCate=='3'" class="error">特别严重</span>
  168. </template>
  169. </el-table-column>
  170. <el-table-column
  171. header-align="center"
  172. align="center"
  173. min-width="70"
  174. prop="persName"
  175. label="上报人"
  176. ></el-table-column>
  177. <el-table-column
  178. prop="pblmTm"
  179. label="上报时间"
  180. sortable
  181. align="center"
  182. min-width="110"
  183. :formatter="formatDate"
  184. show-overflow-tooltip
  185. ></el-table-column>
  186. <el-table-column
  187. fixed="right"
  188. label="操作"
  189. min-width="80"
  190. >
  191. <template slot-scope="scope">
  192. <el-button icon="el-icon-view" title="查看详情"type="text"
  193. @click="showDetails(scope.row)"></el-button>
  194. </template>
  195. </el-table-column>
  196. </el-table>
  197. <el-pagination
  198. class="paginationCenter"
  199. background
  200. @size-change="handleSizeChange"
  201. @current-change="handlePageChange"
  202. :page-sizes="[10, 20, 50, 100]"
  203. :page-size="pageSize"
  204. layout="total, sizes, prev, pager, next, jumper"
  205. :total="total"
  206. ></el-pagination>
  207. <el-dialog
  208. class="custom_dialog"
  209. title="问题详情"
  210. width="60%"
  211. @close="dialogCloseDetail"
  212. append-to-body
  213. v-if="supervisionDetailsVisible"
  214. :visible.sync="supervisionDetailsVisible">
  215. <problemDetail :problemId="problemId" v-if="problemId"></problemDetail>
  216. <problemMendDetail :mendId="mendId" v-if="!problemId && mendId"></problemMendDetail>
  217. </el-dialog>
  218. </div>
  219. </el-dialog>
  220. </template>
  221. <script>
  222. import request from "@util/gw_ajax_request.js";
  223. export default {
  224. props: ['param'],
  225. components: {
  226. problemDetail: resolve => {
  227. require(["./problemDetail.vue"], resolve);
  228. },
  229. problemMendDetail: resolve => {
  230. require(["./problemMendDetail.vue"], resolve);
  231. },
  232. },
  233. data(){
  234. return{
  235. loading:false,
  236. dialogVisible:true,
  237. supervisionDetailsVisible:false,
  238. tableData:[],
  239. problemId:"",
  240. mendId:"",
  241. tableHeight:450,
  242. total:0,
  243. pageNum:1,
  244. pageSize:10,
  245. isObjType:false,
  246. params:{
  247. pblmAdName:"",
  248. objName:"",
  249. pblmNameBz:"",
  250. objType:"",
  251. pblmClassify:"",
  252. persName:"",
  253. // orgNm:"",
  254. // hasVedio:"",
  255. adCode:"",
  256. timeType:"",
  257. inspPblmCate:"",
  258. pblmOut:"1"
  259. }
  260. }
  261. },
  262. mounted(){
  263. if(this.param.objType!="" && this.param.objType!=null){
  264. this.isObjType = true;
  265. }
  266. this.params.pblmClassify = this.param.objTypeName=="全部"?"":this.param.objTypeName;
  267. this.getTableData();
  268. },
  269. methods:{
  270. getTableData(){
  271. var _self = this;
  272. this.loading = true;
  273. this.params.objAdCode = this.param.adCode;
  274. this.params.objType = this.param.objType;
  275. this.params.timeType = this.param.timeType;
  276. // this.params.inspPblmCate = this.param.inspPblmCate;
  277. this.params.pageNum = this.pageNum;
  278. this.params.pageSize = this.pageSize;
  279. if(this.param.selectTime!=undefined && this.param.selectTime && this.param.selectTime.length==2){
  280. this.params.sttm = this.param.selectTime[0];
  281. this.params.entm = this.param.selectTime[1];
  282. }
  283. if(this.param.depm!=undefined && this.param.depm){
  284. this.params.depm = this.param.depm;
  285. }
  286. request.post('/bis/insp/pblm/plist/sendOrgGetList',this.params).then(res => {
  287. if (res.success) {
  288. _self.loading = false;
  289. _self.tableData = res.data.list;
  290. _self.total = res.data.total;
  291. }
  292. });
  293. },
  294. inspPblmCateFormat(val){
  295. if(val=='0'){
  296. return "一般"
  297. }
  298. if(val=='1'){
  299. return "较重"
  300. }
  301. if(val=='2'){
  302. return "严重"
  303. }
  304. if(val=='3'){
  305. return "特别严重"
  306. }
  307. return "";
  308. },
  309. showDetails(row){
  310. this.problemId = row.pblmId;
  311. this.mendId = row.id;
  312. this.supervisionDetailsVisible = true;
  313. },
  314. handleSizeChange(val){
  315. this.pageSize = val;
  316. this.getTableData();
  317. },
  318. handlePageChange(val){
  319. this.pageNum = val;
  320. this.getTableData();
  321. },
  322. dialogClose(){
  323. this.$emit('closeDialogPblmLog')
  324. },
  325. dialogCloseDetail(){
  326. this.supervisionDetailsVisible = false;
  327. this.problemId = "";
  328. },
  329. formatDate(row){
  330. if(!row.collTime){
  331. return "";
  332. }
  333. var date = new Date(row.collTime);
  334. return date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()
  335. }
  336. },
  337. }
  338. </script>
  339. <style scoped>
  340. .info{
  341. padding: 15px;
  342. background: #409eff;
  343. color:white;
  344. }
  345. .warning{
  346. padding: 15px;
  347. background: #ff9800;
  348. color:white;
  349. }
  350. .fatal{
  351. padding: 15px;
  352. background: #f56c6c;
  353. color:white;
  354. }
  355. .error{
  356. padding: 15px;
  357. background: #f94c01;
  358. color:white;
  359. }
  360. .messageBox{
  361. color: #606266;
  362. height: 600px;
  363. overflow: auto;
  364. }
  365. .messT{
  366. width: 100%;
  367. height:40px;
  368. line-height: 40px;
  369. margin: 0;
  370. padding: 0;
  371. text-align: center;
  372. font-size: 16px;
  373. font-weight: bold;
  374. }
  375. .messTime{
  376. width: 100%;
  377. height:30px;
  378. line-height: 30px;
  379. margin: 0;
  380. padding: 0;
  381. border-bottom: 1px solid grey;
  382. }
  383. .messC{
  384. width: 100%;
  385. height:calc(100%- 70px);
  386. margin: 0;
  387. padding: 0;
  388. line-height: 30px;
  389. overflow: auto;
  390. }
  391. </style>