fix(用例管理): 修复自定义字段成员的单选时的显示以及模块移动需要强制刷新以及接口定义默认模块不可拖拽问题

--bug=1038803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038803
--bug=1038673 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038673
--bug=1037653 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037653
This commit is contained in:
guoyuqi 2024-04-10 15:30:35 +08:00 committed by 刘瑞斌
parent ae998fc7b8
commit e0bc4c67bc
5 changed files with 14 additions and 3 deletions

View File

@ -422,6 +422,7 @@
return {
...e,
hideMoreAction: e.id === 'root',
draggable: e.id !== 'root',
};
});
}

View File

@ -30,7 +30,7 @@
<template #right>
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type">
<a-radio value="list" class="show-type-icon p-[2px]"><MsIcon type="icon-icon_view-list_outlined" /></a-radio>
<a-radio value="xMind" class="show-type-icon p-[2px]"><MsIcon type="icon-icon_mindnote_outlined" /></a-radio>
<!-- <a-radio value="xMind" class="show-type-icon p-[2px]"><MsIcon type="icon-icon_mindnote_outlined" /></a-radio>-->
</a-radio-group>
</template>
</MsAdvanceFilter>

View File

@ -273,7 +273,14 @@
console.log(error);
} finally {
loading.value = false;
// initModules();
await initModules();
const treeNode = ref<MsTreeNodeData | null>(null);
treeNode.value = dropNode;
treeNode.value.children = [];
if (dropPosition === 0) {
treeNode.value.children.push(dragNode);
}
caseNodeSelect(dropNode.id, treeNode.value);
emits('dragUpdate');
}
}

View File

@ -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))

View File

@ -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<boolean>(false);
//
async function conFirmImport() {