index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <com-dialog
  3. v-if="show"
  4. title="审核记录"
  5. :show="show"
  6. hideFloor
  7. @update:show="val => $emit('update:show', val)">
  8. <div style="width: 100%; overflow: hidden">
  9. <el-table ref="multipleTable" :data="dataList.state" style="width: 100%" >
  10. <el-table-column label="审核人" prop="auditorName"></el-table-column>
  11. <el-table-column label="审核时间" prop="auditTime"></el-table-column>
  12. <el-table-column label="审核结果" prop="auditStatus" v-slot:default="{ row }">
  13. <span>{{getExamineName(row.auditStatus)}}</span>
  14. </el-table-column>
  15. <el-table-column label="审核备注" prop="auditRemark" v-slot:default="{ row }">
  16. <div class="remark">
  17. {{row.auditRemark}}
  18. </div>
  19. </el-table-column>
  20. </el-table>
  21. </div>
  22. <div class="pag-block no-sizes">
  23. <el-pagination
  24. @current-change="pag.currentChange"
  25. :current-page="pag.state.currPage"
  26. :page-size="pag.state.size"
  27. layout="total, prev, pager, next, jumper"
  28. :total="pag.state.total">
  29. </el-pagination>
  30. </div>
  31. </com-dialog>
  32. </template>
  33. <script>
  34. import getTableState from '@/state/tableRef'
  35. import comDialog from "@/components/dialog";
  36. import { getExamineList } from '@/request/config'
  37. import {
  38. EXAMINE_VIEW_SELECT,
  39. getName
  40. } from '@/constant'
  41. export default {
  42. props: ['show', 'data'],
  43. setup(props) {
  44. const state = getTableState({
  45. getUrl: getExamineList,
  46. searchAttr: { houseId: props.data }
  47. })
  48. state.pag.value.sizeChange(8)
  49. return { ...state }
  50. },
  51. methods: {
  52. getExamineName: getName(EXAMINE_VIEW_SELECT),
  53. },
  54. watch: {
  55. data() {
  56. this.search.state.houseId = this.props.data
  57. }
  58. },
  59. components: {
  60. "com-dialog": comDialog
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .remark {
  66. max-height: 100px;
  67. overflow-y: auto;
  68. }
  69. </style>