优化代码控件生成

This commit is contained in:
不做码农
2021-12-11 16:37:08 +08:00
parent 75fd761299
commit a0e1276bdf
9 changed files with 74 additions and 101 deletions

View File

@@ -267,7 +267,7 @@ $if(replaceDto.UploadFile == 1)
},
$end
$foreach(item in genTable.Columns)
$if((item.HtmlType == "radio" || item.HtmlType == "select" || item.HtmlType == "checkbox") && item.DictType != "")
$if((item.HtmlType == "radio" || item.HtmlType == "select" || item.HtmlType == "checkbox"))
// ${item.ColumnComment}字典翻译
${item.ColumnName}Format(row, column) {
return this.selectDictLabel(this.${item.ColumnName}Options, row.${item.ColumnName});