diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue index ff9129b..c183681 100644 --- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue +++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue @@ -12,8 +12,8 @@ {{ projectTypes.find(it => it.id === projectData.projectTypeId)?.projectTypeName || '' }} - {{ findText('build_category', projectData.buildCategory) }} - + {{ findText('build_category', projectData.buildCategory) }} + {{ projectData[i.props] }} @@ -30,7 +30,7 @@
{{ i.propertyName }}
- {{ i.propertyValue}} + {{ i.propertyValue }}
@@ -40,16 +40,16 @@ 项目总体工程量
-
+
{{ i.propertyName }}
- {{ i.propertyValue}} + {{ i.propertyValue }}
-
+
@@ -60,7 +60,7 @@ import { useDicts } from '@/hooks'; import bus from '@/bus'; const { proxy } = getCurrentInstance(); -const { project_content_type,build_category} = useDicts(proxy); +const { project_content_type, build_category } = useDicts(proxy); const projectCompanyList = ref([]); const projectTypes = ref([]); const xmxxList = ref([ @@ -73,10 +73,8 @@ { label: '设计单位', props: 'designUnit' }, // { label: '建设面积(㎡)', props: 'projectArea' }, ]); -const xmxtgcl = ref([ -]); -const xmmbList = ref([ -]); +const xmxtgcl = ref([]); +const xmmbList = ref([]); const dicts = { build_category, project_content_type, @@ -97,17 +95,16 @@ projectTypes.value = res?.data || []; }; - onMounted(() => { - bus.on('getProjectDate', (v) => { - console.log(project_content_type,'project_content_typeproject_content_type'); - projectData.value = v - xmmbList.value = v.projectItemDescriptionList.filter(it => it.projectContentType ==="design_parameter") - xmxtgcl.value = v.projectItemDescriptionList.filter(it => it.projectContentType === "total_engineering_quantity") + bus.on('getProjectDate', v => { + console.log(project_content_type, 'project_content_typeproject_content_type'); + projectData.value = v; + xmmbList.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'design_parameter'); + xmxtgcl.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'total_engineering_quantity'); getProjectCompanyLists(); - getProjectTypeList(); - }) -}) + getProjectTypeList(); + }); +});