fix【【test轨迹中台】新增拉取列表时,提示订单轨迹必填】
https://www.tapd.cn/60863849/bugtrace/bugs/view/1160863849001049555
This commit is contained in:
parent
af5c390606
commit
6ab07539e4
@ -53,15 +53,19 @@ public class EditTrackPullConfigInputValidation : AbstractValidator<EditTrackPul
|
||||
RuleFor(x => x.ParseMethod).NotNull().WithMessage(stringLocalizer[SjzyBasicLocalization.Validation_NotNull,
|
||||
nameof(EditTrackPullConfigInput.ParseMethod)]);
|
||||
|
||||
When(x => x.ParseMethod == 2, () =>
|
||||
{
|
||||
RuleFor(x => x.OrderNoName).NotEmpty().WithMessage(
|
||||
stringLocalizer[SjzyBasicLocalization.Validation_NotEmpty,
|
||||
nameof(EditTrackPullConfigInput.OrderNoName)]);
|
||||
|
||||
RuleFor(x => x.OrderPath).NotEmpty().WithMessage(stringLocalizer[SjzyBasicLocalization.Validation_NotEmpty,
|
||||
RuleFor(x => x.OrderPath).NotEmpty().WithMessage(stringLocalizer[
|
||||
SjzyBasicLocalization.Validation_NotEmpty,
|
||||
nameof(EditTrackPullConfigInput.OrderPath)]);
|
||||
|
||||
RuleFor(x => x.TrackDetailsPath).NotEmpty().WithMessage(stringLocalizer[
|
||||
SjzyBasicLocalization.Validation_NotEmpty, nameof(EditTrackPullConfigInput.TrackDetailsPath)]);
|
||||
});
|
||||
|
||||
When(x => x.ParseMethod == 1, () =>
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user