fix(系统设置): 修复模板管理编辑用例/缺陷模板名称称不应该提示为空

This commit is contained in:
xinxin.wu 2024-08-15 16:30:51 +08:00 committed by 刘瑞斌
parent a1052c4d51
commit e3f73e8c27
5 changed files with 19 additions and 4 deletions

View File

@ -0,0 +1,3 @@
<svg width="7" height="7" viewBox="0 0 7 7" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.96997 0.00399935H3.94997L3.85197 2.734L6.34397 1.782L6.65197 2.706L4.07597 3.476L5.81197 5.534L5.05597 6.136L3.45997 3.924L1.86397 6.136L1.10797 5.534L2.84397 3.476L0.267969 2.706L0.575969 1.782L3.08197 2.734L2.96997 0.00399935Z" fill="#ED0303"/>
</svg>

After

Width:  |  Height:  |  Size: 358 B

View File

@ -683,7 +683,6 @@
right: 16px; right: 16px;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
@apply bg-white;
} }
:deep(.arco-menu-light) { :deep(.arco-menu-light) {
height: 50px; height: 50px;

View File

@ -883,4 +883,15 @@
:deep(.arco-form-item-content) { :deep(.arco-form-item-content) {
overflow-wrap: anywhere; overflow-wrap: anywhere;
} }
:deep(.label-validate-star) {
.arco-form-item-label::after {
display: inline-block;
margin-top: -3px;
content: '';
width: 7px;
height: 7px;
vertical-align: middle;
background: url('@/assets/svg/icons/validateStar.svg') center/cover;
}
}
</style> </style>

View File

@ -3,9 +3,9 @@
<a-form-item <a-form-item
field="name" field="name"
:label="t('system.orgTemplate.caseName')" :label="t('system.orgTemplate.caseName')"
:rules="[{ required: true, message: t('system.orgTemplate.caseNamePlaceholder') }]" :rules="[{ required: props.isDisabled, message: t('system.orgTemplate.caseNamePlaceholder') }]"
required
asterisk-position="end" asterisk-position="end"
:class="`${props.isDisabled ? '' : 'label-validate-star'}`"
> >
<a-input <a-input
v-model="form.name" v-model="form.name"

View File

@ -3,7 +3,9 @@
<a-form-item <a-form-item
field="title" field="title"
:label="t('bugManagement.bugName')" :label="t('bugManagement.bugName')"
:rules="[{ required: true, message: t('bugManagement.edit.nameIsRequired') }]" :rules="[{ required: props.isDisabled, message: t('bugManagement.edit.nameIsRequired') }]"
:class="`${props.isDisabled ? '' : 'label-validate-star'}`"
asterisk-position="end"
> >
<a-input <a-input
v-model="form.title" v-model="form.title"