${range $index,$column := $columns}
${if eq $column.IsQuery "1"}
${$dictType:=$column.DictType}
${$AttrName:=$column.ColumnName }
${$comment:=$column.ColumnComment}
${if eq $column.HtmlType "input"}
${else if and (or (eq $column.HtmlType "select" ) (eq $column.HtmlType "radio")) (ne $dictType "") }
${else if and (or (eq $column.HtmlType "select" ) (eq $column.HtmlType "radio")) (eq $dictType "") }
${else if eq $column.HtmlType "datetime"}
${end}
${end}
${end}
搜索
重置
新增
${range $index,$column := $columns}
${$ColumnName:=$column.ColumnName}
${$comment:=$column.ColumnComment}
${if eq $column.IsPk "1"}
${else if and (eq $column.IsList "1") (eq $column.HtmlType "datetime")}
${ "${" } parseTime(scope.row.${$ColumnName}, '{y}-{m}-{d}') ${"}"}
${else if and (eq $column.IsList "1") (ne $column.DictType "")}
${else if and (eq $column.IsList "1") (ne $ColumnName "")}
${end}
${end}
修改
删除
${range $index,$column := $columns}
${$field := $column.ColumnName}
${if and (eq $column.IsInsert "1") (ne $column.IsPk "1") }
${$comment :=$column.ColumnComment}
${$dictType := $column.DictType }
${if and (ne $treeParentCode "") (eq $column.ColumnName $treeParentCode) }
${else if eq $column.HtmlType "input"}
${else if and (eq $column.HtmlType "select") (ne $dictType "") }
${else if and (eq $column.HtmlType "select") $dictType}
${else if and (eq $column.HtmlType "checkbox") (ne $dictType "")}
${"${"}dict.value${"}"}
${else if and (eq $column.HtmlType "checkbox") $dictType }
请选择字典生成
${else if and (eq $column.HtmlType "radio") (ne $dictType "") }
${"${"}dict.value${"}"}
${else if and (eq $column.HtmlType "radio") $dictType }
请选择字典生成
${else if eq $column.HtmlType "datetime"}
${else if eq $column.HtmlType "textarea"}
${end}
${end}
${end}