优化vue2代码生成模板

This commit is contained in:
不做码农 2022-05-20 13:29:30 +08:00
parent c1ff6c47a5
commit d8abd49103
3 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ $set(labelName = "")
$set(labelDisabled = "")
$set(columnName = column.CsharpFieldFl)
$set(value = "item.dictValue")
$if(column.ColumnComment != "")
$set(labelName = column.ColumnComment)
$else

View File

@ -156,8 +156,7 @@ $end
$foreach(column in genTable.Columns)
$if(column.IsRequired && column.IsIncrement == false)
${column.CsharpFieldFl}: [
{ required: true, message: "${column.ColumnComment}不能为空", trigger: $if(column.htmlType == "select")"change"$else"blur"$end
$if(column.CsharpType == "int" || column.CsharpType == "long"), type: "number"$end }
{ required: true, message: "${column.ColumnComment}不能为空", trigger: $if(column.htmlType == "select")"change"$else"blur"$end }
],
$end
$end