pending.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div :style="{height:height,width:width}">
  3. <h3>我的待办
  4. <el-button
  5. size="mini"
  6. type="text"
  7. icon="el-icon-top-right"
  8. @click="toPending"
  9. >去处理
  10. </el-button>
  11. </h3>
  12. <el-table :data="approvedangerList" v-loading="loading">
  13. <el-table-column label="流程名称" align="center" prop="processName" :show-overflow-tooltip="true"/>
  14. <el-table-column label="待办任务名称" align="center" prop="taskName" :show-overflow-tooltip="true"/>
  15. </el-table>
  16. <pagination
  17. v-show="total>0"
  18. :total="total"
  19. :page.sync="queryParams.pageNum"
  20. :limit.sync="queryParams.pageSize"
  21. layout="prev, pager, next"
  22. :background="false"
  23. @pagination="getList"
  24. />
  25. </div>
  26. </template>
  27. <script>
  28. import {getPendinglist} from "@/api/ehs/approvedanger";
  29. export default {
  30. name: 'pendingChart',
  31. props: {
  32. height: {
  33. type: String,
  34. default: '610px'
  35. },
  36. width: {
  37. type: String,
  38. default: '100%'
  39. }
  40. },
  41. data() {
  42. return {
  43. // 总条数
  44. total: 0,
  45. // 遮罩层
  46. loading: true,
  47. approvedangerList: [],
  48. queryParams: {
  49. pageNum: 1,
  50. pageSize: 20,
  51. plantCode: null,
  52. recorderId: null,
  53. hiddendangerLevel: null,
  54. hiddendangerContent: null,
  55. measures: null,
  56. completeTime: null,
  57. status: null,
  58. creattime: null,
  59. endtime: null,
  60. processId: null,
  61. approveNo: null,
  62. deptId: null,
  63. },
  64. }
  65. },
  66. created() {
  67. this.getList()
  68. },
  69. methods: {
  70. /** 查询隐患申请列表 */
  71. getList() {
  72. this.loading = true;
  73. getPendinglist(this.queryParams).then(response => {
  74. this.approvedangerList = response.rows;
  75. this.total = response.total;
  76. this.loading = false;
  77. });
  78. },
  79. toPending() {
  80. this.$router.push({path: '/approve/pending'})
  81. }
  82. }
  83. }
  84. </script>