auditRecords.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <!-- 任务审核记录 -->
  3. <div class="auditRecords">
  4. <el-dialog title="查看审核记录" :visible.sync="dialogVisible" width="1000px" :before-close="handleClose" :close-on-click-modal="false">
  5. <el-table :data="tableData" style="width: 100%;" border header-row-class-name="custom-table-header">
  6. <el-table-column label="#" align="center" width="60px">
  7. <template slot-scope="scope">
  8. <div>
  9. {{ (queryParams.current - 1) * queryParams.size + scope.$index + 1 }}
  10. </div>
  11. </template>
  12. </el-table-column>
  13. <el-table-column prop="name" label="任务名称" align="center"></el-table-column>
  14. <el-table-column prop="type" label="任务类型" align="center"></el-table-column>
  15. <el-table-column prop="createPerson" label="发起人" align="center"></el-table-column>
  16. <el-table-column prop="handlePerson" label="处理人" align="center"></el-table-column>
  17. <el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
  18. <el-table-column prop="endTime" label="截止时间" align="center"></el-table-column>
  19. <el-table-column prop="status" label="状态" align="center"></el-table-column>
  20. </el-table>
  21. <div style="text-align: center;padding-top: 20px;">
  22. <el-pagination background layout="total, prev, pager, next, jumper" :current-page.sync="queryParams.current"
  23. :page-size.sync="queryParams.size" @current-change="handleCurrentChange" :total="queryParams.total">
  24. </el-pagination>
  25. </div>
  26. <span slot="footer" class="dialog-footer">
  27. <el-button type="primary" @click="handleClose">关 闭</el-button>
  28. </span>
  29. </el-dialog>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. tableData: [],
  37. dialogVisible: false,
  38. queryParams: {
  39. current: 1,
  40. size: 10,
  41. total: 0,
  42. },
  43. }
  44. },
  45. mounted() {
  46. },
  47. methods: {
  48. getList() { },
  49. // 打开弹窗
  50. open() {
  51. // this.getList()
  52. this.dialogVisible = true
  53. },
  54. handleClose() {
  55. this.dialogVisible = false
  56. },
  57. // 分页查询
  58. handleCurrentChange(val) {
  59. this.queryParams.current=val
  60. this.getList()
  61. },
  62. },
  63. }
  64. </script>
  65. <style lang="scss" scoped></style>