diff --git a/src/api/sponeScreen/gcpjApi.js b/src/api/sponeScreen/gcpjApi.js
index cd5dee0..8f59ebb 100644
--- a/src/api/sponeScreen/gcpjApi.js
+++ b/src/api/sponeScreen/gcpjApi.js
@@ -103,6 +103,15 @@
});
}
+// 搜索项目全过程资料
+export function getProjectFiles(params) {
+ return request({
+ url: `/business/homePage/getProjectFiles`,
+ method: 'get',
+ params,
+ });
+}
+
// 搜索项目图片列表
export function selectProjectImageList(params) {
return request({
diff --git a/src/api/sponeScreen/gcpjApi.js b/src/api/sponeScreen/gcpjApi.js
index cd5dee0..8f59ebb 100644
--- a/src/api/sponeScreen/gcpjApi.js
+++ b/src/api/sponeScreen/gcpjApi.js
@@ -103,6 +103,15 @@
});
}
+// 搜索项目全过程资料
+export function getProjectFiles(params) {
+ return request({
+ url: `/business/homePage/getProjectFiles`,
+ method: 'get',
+ params,
+ });
+}
+
// 搜索项目图片列表
export function selectProjectImageList(params) {
return request({
diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
index 7626788..5372511 100644
--- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
+++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
@@ -114,7 +114,7 @@
}
onMounted(() => {
- bus.on('getProjectDate', v => {
+ bus.on('getProjectData', v => {
projectData.value = v;
xmmbList.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'design_parameter');
xmxtgcl.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'total_engineering_quantity');
@@ -122,6 +122,9 @@
getProjectTypeList();
});
});
+onBeforeUnmount(() => {
+ bus.off('getProjectData');
+});
diff --git a/src/api/sponeScreen/gcpjApi.js b/src/api/sponeScreen/gcpjApi.js
index cd5dee0..8f59ebb 100644
--- a/src/api/sponeScreen/gcpjApi.js
+++ b/src/api/sponeScreen/gcpjApi.js
@@ -103,6 +103,15 @@
});
}
+// 搜索项目全过程资料
+export function getProjectFiles(params) {
+ return request({
+ url: `/business/homePage/getProjectFiles`,
+ method: 'get',
+ params,
+ });
+}
+
// 搜索项目图片列表
export function selectProjectImageList(params) {
return request({
diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
index 7626788..5372511 100644
--- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
+++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/XiangXiXinXi.vue
@@ -114,7 +114,7 @@
}
onMounted(() => {
- bus.on('getProjectDate', v => {
+ bus.on('getProjectData', v => {
projectData.value = v;
xmmbList.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'design_parameter');
xmxtgcl.value = v.projectItemDescriptionList.filter(it => it.projectContentType === 'total_engineering_quantity');
@@ -122,6 +122,9 @@
getProjectTypeList();
});
});
+onBeforeUnmount(() => {
+ bus.off('getProjectData');
+});
diff --git a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/xmsgt.vue b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/xmsgt.vue
index 4f43508..1f7e671 100644
--- a/src/views/sponeScreen/projectHM/gongchenkanbani_comp/xmsgt.vue
+++ b/src/views/sponeScreen/projectHM/gongchenkanbani_comp/xmsgt.vue
@@ -29,9 +29,16 @@
let { data } = await selectProjectImageList(p);
allImages.value = data[0];
}
-bus.on('getProjectDate', v => {
- projectData.value = v;
- selectProjectImage({ projectNo: v.projectNo });
+
+onMounted(() => {
+ bus.on('getProjectData', v => {
+ projectData.value = v;
+ selectProjectImage({ projectNo: v.projectNo });
+ });
+});
+
+onBeforeUnmount(() => {
+ bus.off('getProjectData');
});