diff --git a/src/views/projectdemand/demandcollection/detail.vue b/src/views/projectdemand/demandcollection/detail.vue index 10c1b04..aaa074b 100644 --- a/src/views/projectdemand/demandcollection/detail.vue +++ b/src/views/projectdemand/demandcollection/detail.vue @@ -10,13 +10,13 @@ - - {{ formData.requirementName }} + + {{ formData.affiliatedCompany }} - - {{ formData.requirementName }} + + {{ formData.collectType }} @@ -79,7 +79,7 @@ import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.v import {useProcessStore} from '@/stores/processStore.js'; import {getInfo} from "@/api/project-demand/index.js"; import {ElMessage} from "element-plus"; - +const route = useRoute() const form = ref(); const processStore = useProcessStore() const processInstanceData = ref() @@ -119,7 +119,7 @@ const tableConfig = reactive({ api: '' }) const getTree = async () => { - getInfo(10).then(res => { + getInfo(route.query.id).then(res => { let data = res.data formData.value = data.formData; processInstanceData.value = data diff --git a/src/views/projectdemand/demandcollection/index.vue b/src/views/projectdemand/demandcollection/index.vue index 14ce54d..0fa62b4 100644 --- a/src/views/projectdemand/demandcollection/index.vue +++ b/src/views/projectdemand/demandcollection/index.vue @@ -124,7 +124,7 @@ const handleDetail = (row) => { router.push({ path: '/projectdemand/demanddetail', query: { - id: row.roleId + id: row.requirementId } }) }