fix(测试计划): 修复评论组件内容清空可发布&修复测试计划用例小卡片对齐方式

This commit is contained in:
xinxin.wu 2024-06-20 10:57:56 +08:00 committed by Craftsman
parent 10a7d2a382
commit 969e7716ab
6 changed files with 10 additions and 6 deletions

View File

@ -41,7 +41,6 @@
:popup-visible="selectVisible" :popup-visible="selectVisible"
class="w-[240px]" class="w-[240px]"
:default-value="innerProject" :default-value="innerProject"
allow-search
:placeholder="t('common.pleaseSelect')" :placeholder="t('common.pleaseSelect')"
@popup-visible-change="changeProjectHandler" @popup-visible-change="changeProjectHandler"
> >

View File

@ -32,7 +32,7 @@
></a-textarea> ></a-textarea>
<div class="mt-4 flex flex-row justify-end gap-[12px]"> <div class="mt-4 flex flex-row justify-end gap-[12px]">
<a-button @click="cancelClick">{{ t('common.cancel') }}</a-button> <a-button @click="cancelClick">{{ t('common.cancel') }}</a-button>
<a-button type="primary" :disabled="!currentContent" @click="publish">{{ t('common.publish') }}</a-button> <a-button type="primary" :disabled="isDisabled" @click="publish">{{ t('common.publish') }}</a-button>
</div> </div>
</div> </div>
</div> </div>
@ -102,6 +102,11 @@
window.removeEventListener('keydown', handleGlobalKeyDown); window.removeEventListener('keydown', handleGlobalKeyDown);
}); });
const isDisabled = computed(() => {
// <p style=""></p>
return !currentContent.value || currentContent.value === '<p style=""></p>';
});
defineExpose({ defineExpose({
isActive, isActive,
}); });

View File

@ -1580,7 +1580,7 @@
color: var(--color-text-4); color: var(--color-text-4);
} }
.popover-value-td { .popover-value-td {
@apply font-medium; @apply text-right font-medium;
padding-top: 8px; padding-top: 8px;
color: var(--color-text-1); color: var(--color-text-1);

View File

@ -132,7 +132,7 @@
color: var(--color-text-4); color: var(--color-text-4);
} }
.popover-value-td { .popover-value-td {
@apply font-medium; @apply text-right font-medium;
padding-top: 8px; padding-top: 8px;
color: var(--color-text-1); color: var(--color-text-1);

View File

@ -66,7 +66,7 @@ export default {
'testPlan.testPlanIndex.TotalCases': 'Total use cases', 'testPlan.testPlanIndex.TotalCases': 'Total use cases',
'testPlan.testPlanIndex.functionalUseCase': 'case', 'testPlan.testPlanIndex.functionalUseCase': 'case',
'testPlan.testPlanIndex.apiCase': 'Api use case', 'testPlan.testPlanIndex.apiCase': 'Api use case',
'testPlan.testPlanIndex.apiScenarioCase': 'Api scenario use cases', 'testPlan.testPlanIndex.apiScenarioCase': 'Scenario use cases',
'testPlan.testPlanIndex.scheduledTask': 'stop and delete scheduled tasks, ', 'testPlan.testPlanIndex.scheduledTask': 'stop and delete scheduled tasks, ',
'testPlan.testPlanIndex.operateWithCaution': 'please operate with caution!', 'testPlan.testPlanIndex.operateWithCaution': 'please operate with caution!',
'testPlan.testPlanIndex.deleteArchivedPlan': 'After the program has been archived, delete data unrecoverable,', 'testPlan.testPlanIndex.deleteArchivedPlan': 'After the program has been archived, delete data unrecoverable,',

View File

@ -64,7 +64,7 @@ export default {
'testPlan.testPlanIndex.TotalCases': '用例总数', 'testPlan.testPlanIndex.TotalCases': '用例总数',
'testPlan.testPlanIndex.functionalUseCase': '功能用例', 'testPlan.testPlanIndex.functionalUseCase': '功能用例',
'testPlan.testPlanIndex.apiCase': '接口用例', 'testPlan.testPlanIndex.apiCase': '接口用例',
'testPlan.testPlanIndex.apiScenarioCase': '接口场景用例', 'testPlan.testPlanIndex.apiScenarioCase': '场景用例',
'testPlan.testPlanIndex.scheduledTask': '定时任务停止并删除,', 'testPlan.testPlanIndex.scheduledTask': '定时任务停止并删除,',
'testPlan.testPlanIndex.operateWithCaution': '请谨慎操作!', 'testPlan.testPlanIndex.operateWithCaution': '请谨慎操作!',
'testPlan.testPlanIndex.deleteArchivedPlan': '计划 已归档,删除后数据不可恢复,', 'testPlan.testPlanIndex.deleteArchivedPlan': '计划 已归档,删除后数据不可恢复,',