fix(测试计划): 修复测试计划报告未执行不可查看结果&标签校验优先级bug

This commit is contained in:
xinxin.wu 2024-09-20 15:54:17 +08:00 committed by Craftsman
parent 03bbba5ede
commit fbe3ef3490
12 changed files with 23 additions and 8 deletions

View File

@ -35,9 +35,8 @@
</template>
</a-input-tag>
</div>
<!-- 为空优先级最高为空则提示外部校验的内容输入回车并且不超过64 -->
<div
v-if="isError && innerModelValue.length"
v-if="isError && (!props.emptyPriorityHighest || innerModelValue.length)"
class="ml-[1px] mr-[4px] flex justify-start text-[12px] text-[rgb(var(--danger-6))]"
>
{{ t('common.tagInputMaxLength', { number: props.maxLength }) }}
@ -69,6 +68,7 @@
disabled?: boolean;
noTooltip?: boolean;
inputValidator?: (value: string) => boolean;
emptyPriorityHighest?: boolean; //
}>(),
{
retainInputValue: true,

View File

@ -149,6 +149,7 @@
placeholder="common.tagsInputPlaceholder"
allow-clear
unique-value
empty-priority-highest
retain-input-value
/>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>

View File

@ -222,6 +222,7 @@
placeholder="common.tagsInputPlaceholder"
allow-clear
unique-value
empty-priority-highest
retain-input-value
/>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>

View File

@ -135,6 +135,7 @@
placeholder="common.tagsInputPlaceholder"
allow-clear
unique-value
empty-priority-highest
retain-input-value
/>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>

View File

@ -409,7 +409,11 @@
const tiledListRef = ref<InstanceType<typeof TiledList>>();
function searchHandler() {
tiledListRef.value?.updateDebouncedSearch();
if (keywordName.value) {
tiledListRef.value?.updateDebouncedSearch();
} else {
tiledListRef.value?.initStepTree();
}
}
function resetHandler() {

View File

@ -327,7 +327,11 @@
const tiledListRef = ref<InstanceType<typeof TiledList>>();
function searchHandler() {
tiledListRef.value?.updateDebouncedSearch();
if (keywordName.value) {
tiledListRef.value?.updateDebouncedSearch();
} else {
tiledListRef.value?.initStepTree();
}
}
function resetHandler() {

View File

@ -349,6 +349,7 @@
placeholder="common.tagsInputPlaceholder"
allow-clear
unique-value
empty-priority-highest
retain-input-value
/>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>

View File

@ -68,7 +68,7 @@
:rules="[{ required: true, message: t('common.inputPleaseEnterTags') }]"
>
<template v-if="valueMode === 'tags'">
<MsTagsInput v-model:modelValue="form.value" :disabled="!form.attribute"></MsTagsInput>
<MsTagsInput v-model:modelValue="form.value" empty-priority-highest :disabled="!form.attribute" />
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>
</template>
<template v-else-if="valueMode === 'user_selector'">

View File

@ -160,7 +160,7 @@
</div>
<a-divider class="ml-[16px]" direction="vertical" />
<div :class="`${props.isDrawer ? 'w-[332px]' : 'w-[428px]'} right grow`">
<div class="min-w-[250px] overflow-auto">
<div :class="`min-w-[250px] overflow-x-hidden ${props.isDrawer ? 'max-w-[316px]' : 'max-w-[412px]'}`">
<a-skeleton v-if="isLoading" :loading="isLoading" :animation="true">
<a-space direction="vertical" class="w-full" size="large">
<a-skeleton-line :rows="12" :line-height="30" :line-spacing="30" />

View File

@ -37,7 +37,7 @@
asterisk-position="end"
:rules="[{ required: true, message: t('common.inputPleaseEnterTags') }]"
>
<MsTagsInput v-model:modelValue="form.tags" allow-clear></MsTagsInput>
<MsTagsInput v-model:modelValue="form.tags" allow-clear empty-priority-highest></MsTagsInput>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>
</a-form-item>

View File

@ -242,6 +242,9 @@
const apiReportId = ref<string>('');
function showReport(record: ApiOrScenarioCaseItem) {
if (!record.reportId) {
return;
}
if (!record.executeResult || record.executeResult === 'STOPPED') return;
reportVisible.value = true;
apiReportId.value = record.reportId;

View File

@ -33,7 +33,7 @@
class="mb-0"
required
>
<MsTagsInput v-model:modelValue="form.tags" allow-clear></MsTagsInput>
<MsTagsInput v-model:modelValue="form.tags" allow-clear empty-priority-highest></MsTagsInput>
<div class="text-[12px] leading-[20px] text-[var(--color-text-4)]">{{ t('ms.tagsInput.tagLimitTip') }}</div>
</a-form-item>
<a-form-item