diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue index 5abf1938c9..6a852432a5 100644 --- a/frontend/src/views/api-test/management/components/moduleTree.vue +++ b/frontend/src/views/api-test/management/components/moduleTree.vue @@ -422,6 +422,7 @@ return { ...e, hideMoreAction: e.id === 'root', + draggable: e.id !== 'root', }; }); } diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index 68565d6aa4..c56d42b1e8 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -30,7 +30,7 @@ diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue index ca5063354a..1efedb5f4c 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue @@ -273,7 +273,14 @@ console.log(error); } finally { loading.value = false; - // initModules(); + await initModules(); + const treeNode = ref(null); + treeNode.value = dropNode; + treeNode.value.children = []; + if (dropPosition === 0) { + treeNode.value.children.push(dragNode); + } + caseNodeSelect(dropNode.id, treeNode.value); emits('dragUpdate'); } } diff --git a/frontend/src/views/case-management/caseManagementFeature/components/utils.ts b/frontend/src/views/case-management/caseManagementFeature/components/utils.ts index 0186a9ebfc..abbdb82a9a 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/utils.ts +++ b/frontend/src/views/case-management/caseManagementFeature/components/utils.ts @@ -151,6 +151,9 @@ export function getTableFields(customFields: CustomAttributes[], itemDataIndex: const index = selectValue.indexOf('CREATE_USER'); selectValue.splice(index, 1, userId); } + if (selectValue === 'CREATE_USER') { + selectValue = userId; + } return ( (currentColumnData.options || []) .filter((item: any) => selectValue.includes(item.value)) diff --git a/frontend/src/views/case-management/caseManagementFeature/index.vue b/frontend/src/views/case-management/caseManagementFeature/index.vue index 2b848b0d2a..e635a142f6 100644 --- a/frontend/src/views/case-management/caseManagementFeature/index.vue +++ b/frontend/src/views/case-management/caseManagementFeature/index.vue @@ -210,6 +210,7 @@ const confirmRef = ref(); const addSubVisible = ref(false); const caseTreeRef = ref(); + const caseTableRef = ref(); // 添加子模块 const confirmHandler = async () => { @@ -365,7 +366,6 @@ validateResultModal.value = false; caseTreeRef.value.initModules(); } - const caseTableRef = ref(); const importLoading = ref(false); // 确定导入 async function conFirmImport() {