inspectList.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div>
  3. <el-row style="margin-top: 5px">
  4. <el-col :span="24">
  5. <el-table :data="itemApproveList">
  6. <el-table-column
  7. label="项目流程名称"
  8. align="center"
  9. prop="projectProcessName"
  10. />
  11. <el-table-column
  12. label="流程名称"
  13. align="center"
  14. prop="process.processName"
  15. />
  16. <el-table-column
  17. label="流程类型"
  18. align="center"
  19. prop="process.processType"
  20. />
  21. <el-table-column
  22. label="当前流程节点"
  23. align="center"
  24. prop="node.nodeName"
  25. />
  26. <el-table-column
  27. label="操作"
  28. align="center"
  29. >
  30. <template #default="scope">
  31. <el-button
  32. type="primary"
  33. icon="Memo"
  34. text
  35. @click="jumpApproveDetail(scope.row)"
  36. >详情</el-button>
  37. </template>
  38. </el-table-column>
  39. </el-table>
  40. </el-col>
  41. </el-row>
  42. </div>
  43. </template>
  44. <script setup>
  45. // 审核列表
  46. defineOptions({
  47. name: 'InspectList'
  48. })
  49. import { onMounted, reactive } from 'vue'
  50. import { getExamineList } from '@/api/process'
  51. import { useRouter } from 'vue-router'
  52. import { useUserStore } from '@/pinia/modules/user'
  53. const router = useRouter()
  54. onMounted(() => {
  55. queryApproveList()
  56. })
  57. const user = useUserStore()
  58. // 查询项目审批列表
  59. const condition = reactive({
  60. pageInfo: {
  61. page: 1,
  62. pageSize: 10,
  63. },
  64. userId: user.userInfo.ID
  65. })
  66. const itemApproveList = reactive([])
  67. const queryApproveList = () => {
  68. getExamineList(condition).then(res => {
  69. if (res.code === 0) {
  70. const list = res.data.list
  71. itemApproveList.length = 0
  72. itemApproveList.push(...list)
  73. }
  74. })
  75. }
  76. // 跳转到详情页
  77. const jumpApproveDetail = (row) => {
  78. router.push({ path: '/layout/approve/approveDetail', query: { id: row.ID, type: 'inspect' }})
  79. }
  80. </script>
  81. <style scoped>
  82. </style>