Skip to content

Commit

Permalink
Article type name, product category name is required
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Sep 20, 2024
1 parent 5cdc110 commit a078bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ZKEACMS/Article/Models/ArticleType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void ViewConfigure()
ViewConfig(m => m.ID).AsHidden();
ViewConfig(m => m.ParentID).AsHidden();
ViewConfig(m => m.Title).AsTextBox().Order(1).MaxLength(200).Required();
ViewConfig(m => m.Url).AsTextBox().Order(2).MaxLength(100).UrlPart().RandomText();
ViewConfig(m => m.Url).AsTextBox().Order(2).MaxLength(100).UrlPart().RandomText().Required();
ViewConfig(m => m.Status).AsDropDownList().DataSource(DicKeys.RecordStatus, SourceType.Dictionary);
ViewConfig(m => m.SEOTitle).AsTextBox().Order(4).MaxLength(100);
ViewConfig(m => m.SEOKeyWord).AsTextBox().Order(5).MaxLength(100);
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS/Product/Models/ProductCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void ViewConfigure()
ViewConfig(m => m.ID).AsHidden();
ViewConfig(m => m.ParentID).AsHidden();
ViewConfig(m => m.Title).AsTextBox().Order(1).MaxLength(200).Required();
ViewConfig(m => m.Url).AsTextBox().Order(2).MaxLength(100).UrlPart().RandomText();
ViewConfig(m => m.Url).AsTextBox().Order(2).MaxLength(100).UrlPart().RandomText().Required();
ViewConfig(m => m.Status).AsDropDownList().DataSource(DicKeys.RecordStatus, SourceType.Dictionary);
ViewConfig(m => m.SEOTitle).AsTextBox().Order(4).MaxLength(100);
ViewConfig(m => m.SEOKeyWord).AsTextBox().Order(5).MaxLength(100);
Expand Down

0 comments on commit a078bc4

Please sign in to comment.