fix(测试计划): 修复测试计划tablebug&关联用例失败排除已关联用例查询问题
This commit is contained in:
parent
e9cfdf112c
commit
b4619c882b
|
@ -580,7 +580,6 @@
|
||||||
selectedAssociateCasesParams.value = { ...param };
|
selectedAssociateCasesParams.value = { ...param };
|
||||||
const node: PlanMinderNode = window.minder.getSelectedNode();
|
const node: PlanMinderNode = window.minder.getSelectedNode();
|
||||||
let associateType: string = '';
|
let associateType: string = '';
|
||||||
// TODO 类型对应的上 但是node保存的时候节点好像不太对
|
|
||||||
if (node.data.type === PlanMinderCollectionType.SCENARIO) {
|
if (node.data.type === PlanMinderCollectionType.SCENARIO) {
|
||||||
associateType = PlanMinderAssociateType.SCENARIO_CASE;
|
associateType = PlanMinderAssociateType.SCENARIO_CASE;
|
||||||
} else {
|
} else {
|
||||||
|
@ -766,6 +765,7 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
selectedAssociateCasesParams.value.selectIds = [];
|
||||||
} finally {
|
} finally {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,6 +287,18 @@
|
||||||
<MsTableMoreAction :list="getMoreActions(record)" @select="handleMoreActionSelect($event, record)" />
|
<MsTableMoreAction :list="getMoreActions(record)" @select="handleMoreActionSelect($event, record)" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="(keyword || '').trim() === ''" #empty>
|
||||||
|
<div class="flex w-full items-center justify-center p-[8px] text-[var(--color-text-4)]">
|
||||||
|
{{ t('common.noData') }}
|
||||||
|
<MsButton v-permission="['PROJECT_TEST_PLAN:READ+ADD']" class="ml-[8px]" @click="emit('new', 'group')">
|
||||||
|
{{ t('testPlan.testPlanIndex.createTestPlan') }}
|
||||||
|
</MsButton>
|
||||||
|
{{ t('caseManagement.featureCase.or') }}
|
||||||
|
<MsButton v-permission="['PROJECT_TEST_PLAN:READ+ADD']" class="ml-[8px]" @click="emit('new', 'testPlan')">
|
||||||
|
{{ t('testPlan.testPlanIndex.createTestPlanGroup') }}
|
||||||
|
</MsButton>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</MsBaseTable>
|
</MsBaseTable>
|
||||||
<a-modal
|
<a-modal
|
||||||
v-model:visible="executeVisible"
|
v-model:visible="executeVisible"
|
||||||
|
@ -442,6 +454,7 @@
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'init', params: any): void;
|
(e: 'init', params: any): void;
|
||||||
(e: 'edit', record: TestPlanItem): void;
|
(e: 'edit', record: TestPlanItem): void;
|
||||||
|
(e: 'new', type: string): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const isArchived = ref<boolean>(false);
|
const isArchived = ref<boolean>(false);
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
:node-name="nodeName"
|
:node-name="nodeName"
|
||||||
@init="initModulesCount"
|
@init="initModulesCount"
|
||||||
@edit="handleEdit"
|
@edit="handleEdit"
|
||||||
|
@new="createTestPlan"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -274,6 +275,14 @@
|
||||||
function dragUpdate() {
|
function dragUpdate() {
|
||||||
planTableRef.value?.emitTableParams();
|
planTableRef.value?.emitTableParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createTestPlan(type: string) {
|
||||||
|
if (type === 'group') {
|
||||||
|
showPlanGroupModel.value = true;
|
||||||
|
} else {
|
||||||
|
showPlanDrawer.value = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
Loading…
Reference in New Issue