fix(测试计划): 测试计划详情-接口用例规划视图要显示协议筛选
--bug=1042909 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001042909
This commit is contained in:
parent
cbe159d1b7
commit
02ca9cf611
|
@ -166,10 +166,6 @@
|
||||||
selectedProtocols.value = allProtocolList.value.filter((item) => protocols.includes(item as string));
|
selectedProtocols.value = allProtocolList.value.filter((item) => protocols.includes(item as string));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
defineExpose({
|
|
||||||
allProtocolList,
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
@ -154,7 +154,6 @@
|
||||||
moduleTree: ModuleTreeNode[];
|
moduleTree: ModuleTreeNode[];
|
||||||
canEdit: boolean;
|
canEdit: boolean;
|
||||||
selectedProtocols: string[];
|
selectedProtocols: string[];
|
||||||
allProtocolList: string[];
|
|
||||||
treeType: 'MODULE' | 'COLLECTION';
|
treeType: 'MODULE' | 'COLLECTION';
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
@ -360,9 +359,8 @@
|
||||||
const selectModules = await getModuleIds();
|
const selectModules = await getModuleIds();
|
||||||
const commonParams = {
|
const commonParams = {
|
||||||
testPlanId: props.planId,
|
testPlanId: props.planId,
|
||||||
...(props.treeType === 'COLLECTION'
|
protocols: props.selectedProtocols,
|
||||||
? { protocols: props.allProtocolList, collectionId: collectionId.value }
|
...(props.treeType === 'COLLECTION' ? { collectionId: collectionId.value } : { moduleIds: selectModules }),
|
||||||
: { protocols: props.selectedProtocols, moduleIds: selectModules }),
|
|
||||||
};
|
};
|
||||||
if (isBatch) {
|
if (isBatch) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -12,10 +12,8 @@
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
/>
|
/>
|
||||||
<TreeFolderAll
|
<TreeFolderAll
|
||||||
ref="treeFolderAllRef"
|
|
||||||
v-model:isExpandAll="isExpandAll"
|
v-model:isExpandAll="isExpandAll"
|
||||||
v-model:selectedProtocols="selectedProtocols"
|
v-model:selectedProtocols="selectedProtocols"
|
||||||
:not-show-operation="props.treeType === 'COLLECTION'"
|
|
||||||
:active-folder="activeFolder"
|
:active-folder="activeFolder"
|
||||||
:folder-name="t('testPlan.testPlanIndex.apiCase')"
|
:folder-name="t('testPlan.testPlanIndex.apiCase')"
|
||||||
:all-count="allCount"
|
:all-count="allCount"
|
||||||
|
@ -92,8 +90,6 @@
|
||||||
buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题
|
buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const treeFolderAllRef = ref<InstanceType<typeof TreeFolderAll>>();
|
|
||||||
const allProtocolList = computed(() => treeFolderAllRef.value?.allProtocolList);
|
|
||||||
|
|
||||||
const activeFolder = ref<string>('all');
|
const activeFolder = ref<string>('all');
|
||||||
const allCount = ref(0);
|
const allCount = ref(0);
|
||||||
|
@ -180,6 +176,5 @@
|
||||||
defineExpose({
|
defineExpose({
|
||||||
initModules,
|
initModules,
|
||||||
setActiveFolder,
|
setActiveFolder,
|
||||||
allProtocolList,
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
:module-tree="moduleTree"
|
:module-tree="moduleTree"
|
||||||
:can-edit="props.canEdit"
|
:can-edit="props.canEdit"
|
||||||
:selected-protocols="selectedProtocols"
|
:selected-protocols="selectedProtocols"
|
||||||
:all-protocol-list="allProtocolList"
|
|
||||||
@get-module-count="getModuleCount"
|
@get-module-count="getModuleCount"
|
||||||
@refresh="emit('refresh')"
|
@refresh="emit('refresh')"
|
||||||
@init-modules="initModules"
|
@init-modules="initModules"
|
||||||
|
@ -110,8 +109,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const allProtocolList = computed(() => caseTreeRef.value?.allProtocolList ?? []);
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
getCaseTableList,
|
getCaseTableList,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue