fix(用例管理): 修复用例管理部分_bug
This commit is contained in:
parent
13adc882ea
commit
e76308113e
|
@ -67,9 +67,11 @@
|
|||
defineProps<{
|
||||
stepList: any;
|
||||
isDisabled?: boolean;
|
||||
isScrollY?: boolean;
|
||||
}>(),
|
||||
{
|
||||
isDisabled: false,
|
||||
isScrollY: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -149,7 +151,7 @@
|
|||
const { propsRes, propsEvent, setProps } = useTable(undefined, {
|
||||
tableKey: TableKeyEnum.CASE_MANAGEMENT_DETAIL_TABLE,
|
||||
columns: templateFieldColumns.value,
|
||||
scroll: { x: '100%', y: 400 },
|
||||
scroll: { x: '100%', y: props.isScrollY ? 400 : '' },
|
||||
selectable: false,
|
||||
noDisable: true,
|
||||
size: 'default',
|
||||
|
|
|
@ -118,7 +118,13 @@
|
|||
</a-menu>
|
||||
</div>
|
||||
<keep-alive>
|
||||
<div class="leftContent mt-4 p-[24px]">
|
||||
<div class="leftContent mt-4 w-full px-[24px]">
|
||||
<a-scrollbar
|
||||
:style="{
|
||||
overflow: 'auto',
|
||||
height: 'calc(100vh - 190px)',
|
||||
}"
|
||||
>
|
||||
<template v-if="activeTab === 'detail'">
|
||||
<TabDetail
|
||||
ref="tabDetailRef"
|
||||
|
@ -152,6 +158,7 @@
|
|||
<template v-if="activeTab === 'changeHistory'">
|
||||
<TabChangeHistory :case-id="props.detailId" />
|
||||
</template>
|
||||
</a-scrollbar>
|
||||
</div>
|
||||
</keep-alive>
|
||||
</div>
|
||||
|
|
|
@ -390,7 +390,7 @@
|
|||
} = useTable(getLinkedCaseBugList, {
|
||||
columns: testPlanColumns,
|
||||
scroll: { x: '100%' },
|
||||
heightUsed: 340,
|
||||
heightUsed: 354,
|
||||
enableDrag: true,
|
||||
});
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="mb-4 flex items-center justify-between">
|
||||
<a-dropdown @select="handleSelect">
|
||||
<a-button v-permission="['FUNCTIONAL_CASE:READ+UPDATE']" type="primary">
|
||||
{{ t('caseManagement.featureCase.linkCase') }}
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
<template>
|
||||
<div class="mb-4 flex items-center justify-between break-words break-all">
|
||||
<div class="font-medium">{{ t('caseManagement.featureCase.commentList') }}</div>
|
||||
<div>
|
||||
<a-radio-group v-model="activeComment" type="button">
|
||||
<a-radio value="caseComment">{{ t('caseManagement.featureCase.caseComment') }}</a-radio>
|
||||
<a-radio value="reviewComment">{{ t('caseManagement.featureCase.reviewComment') }}</a-radio>
|
||||
<!-- <a-radio value="executiveComment">{{ t('caseManagement.featureCase.executiveReview') }}</a-radio> -->
|
||||
</a-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<!-- 用例评论 -->
|
||||
<div v-show="activeComment === 'caseComment'">
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
const platformKeyword = ref<string>('');
|
||||
|
||||
const tableRef = ref();
|
||||
const initData = async () => {
|
||||
tableRef.value?.initColumn(fullColumns);
|
||||
setLoadListParams({ keyword: platformKeyword.value, projectId: currentProjectId.value });
|
||||
loadList();
|
||||
};
|
||||
|
@ -233,7 +235,6 @@
|
|||
resetSelector();
|
||||
};
|
||||
|
||||
const tableRef = ref();
|
||||
const customFields = ref<any[]>([]);
|
||||
async function initColumn() {
|
||||
fullColumns = [...columns];
|
||||
|
@ -262,7 +263,6 @@
|
|||
const linkDemandDrawer = ref<boolean>(false);
|
||||
function associatedDemand() {
|
||||
linkDemandDrawer.value = true;
|
||||
initData();
|
||||
}
|
||||
|
||||
function getSlotName(record: any, item: MsTableColumnData) {
|
||||
|
@ -350,11 +350,14 @@
|
|||
(val) => {
|
||||
if (val) {
|
||||
resetSelector();
|
||||
nextTick(() => {
|
||||
tableRef.value?.initColumn(fullColumns);
|
||||
nextTick(async () => {
|
||||
await tableRef.value?.initColumn(fullColumns);
|
||||
initData();
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -21,14 +21,13 @@
|
|||
}}</a-button
|
||||
></span
|
||||
>
|
||||
<div v-if="isEditPreposition" class="px-2">
|
||||
<MsRichText
|
||||
v-if="isEditPreposition"
|
||||
v-model:raw="detailForm.prerequisite"
|
||||
v-model:filed-ids="prerequisiteFileIds"
|
||||
:upload-image="handleUploadImage"
|
||||
class="mt-2"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else
|
||||
|
@ -63,7 +62,7 @@
|
|||
</div>
|
||||
<!-- 步骤描述 -->
|
||||
<div v-if="detailForm.caseEditType === 'STEP'" class="w-full">
|
||||
<AddStep v-model:step-list="stepData" :is-disabled="!isEditPreposition" />
|
||||
<AddStep v-model:step-list="stepData" :is-scroll-y="false" :is-disabled="!isEditPreposition" />
|
||||
</div>
|
||||
<!-- 文本描述 -->
|
||||
<MsRichText
|
||||
|
|
|
@ -269,4 +269,5 @@ export default {
|
|||
'caseManagement.featureCase.ModuleOwned': 'Module owned',
|
||||
'caseManagement.featureCase.excelImportTip': 'Only xls/xlsx files are supported',
|
||||
'caseManagement.featureCase.xmindImportTip': 'Only xmind files are supported',
|
||||
'caseManagement.featureCase.AssociatedSuccess': 'Associated with success',
|
||||
};
|
||||
|
|
|
@ -265,4 +265,5 @@ export default {
|
|||
'caseManagement.featureCase.ModuleOwned': '所属模块',
|
||||
'caseManagement.featureCase.excelImportTip': '仅支持xls/xlsx格式的文件',
|
||||
'caseManagement.featureCase.xmindImportTip': '仅支持xmind格式的文件',
|
||||
'caseManagement.featureCase.AssociatedSuccess': '关联成功',
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue