From adcab0961c96e4f67984836b3ae5f9d5a36e2147 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Sat, 16 Mar 2024 21:25:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A1=A8=E5=8F=82=E6=95=B0=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=90=8E=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/caseTable.vue | 4 +++ .../components/caseTree.vue | 5 ++-- .../tabDemand/thirdDemandDrawer.vue | 17 ++++++++++--- .../caseManagementFeature/index.vue | 25 ++++++++++++------- 4 files changed, 36 insertions(+), 15 deletions(-) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index d1f64e121a..f63cb21114 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -1563,6 +1563,10 @@ } } ); + + defineExpose({ + emitTableParams, + }); await getDefaultFields(); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue index 27031df977..ca5063354a 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue @@ -113,7 +113,7 @@ modulesCount?: Record; // 模块数量统计对象 }>(); - const emits = defineEmits(['update:selectedKeys', 'caseNodeSelect', 'init']); + const emits = defineEmits(['update:selectedKeys', 'caseNodeSelect', 'init', 'dragUpdate']); const currentProjectId = computed(() => appStore.currentProjectId); @@ -273,7 +273,8 @@ console.log(error); } finally { loading.value = false; - initModules(); + // initModules(); + emits('dragUpdate'); } } diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/thirdDemandDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/thirdDemandDrawer.vue index ad2d11c264..108905b6db 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/thirdDemandDrawer.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/thirdDemandDrawer.vue @@ -228,11 +228,20 @@ } } - watchEffect(() => { - if (props.platformInfo.demand_platform_config) { - initColumn(); + watch( + () => props.platformInfo.demand_platform_config, + (val) => { + if (val) { + initColumn(); + } } - }); + ); + + // watchEffect(() => { + // if (props.platformInfo.demand_platform_config) { + + // } + // }); watch( () => innerLinkDemandVisible.value, diff --git a/frontend/src/views/case-management/caseManagementFeature/index.vue b/frontend/src/views/case-management/caseManagementFeature/index.vue index f6e06612a1..72c414cb4b 100644 --- a/frontend/src/views/case-management/caseManagementFeature/index.vue +++ b/frontend/src/views/case-management/caseManagementFeature/index.vue @@ -66,6 +66,7 @@ :modules-count="modulesCount" @case-node-select="caseNodeSelect" @init="setRootModules" + @drag-update="dragUpdate" >
@@ -83,6 +84,7 @@