| | |
| | | for (GenTableColumn column : columns)
|
| | | {
|
| | | if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny(
|
| | | column.getHtmlType(), new String[] { GenConstants.HTML_SELECT, GenConstants.HTML_RADIO }))
|
| | | column.getHtmlType(),
|
| | | new String[] { GenConstants.HTML_SELECT, GenConstants.HTML_RADIO, GenConstants.HTML_CHECKBOX }))
|
| | | {
|
| | | dicts.add("'" + column.getDictType() + "'");
|
| | | }
|
| | |
| | | #elseif($column.list && "" != $column.dictType)
|
| | | <el-table-column label="${comment}" align="center" prop="${javaField}">
|
| | | <template slot-scope="scope">
|
| | | #if($column.htmlType == "checkbox")
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
|
| | | #else
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField}"/>
|
| | | #end
|
| | | </template>
|
| | | </el-table-column>
|
| | | #elseif($column.list && "" != $javaField)
|
| | |
| | | #elseif($column.list && "" != $column.dictType)
|
| | | <el-table-column label="${comment}" align="center" prop="${javaField}">
|
| | | <template slot-scope="scope">
|
| | | #if($column.htmlType == "checkbox")
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
|
| | | #else
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField}"/>
|
| | | #end
|
| | | </template>
|
| | | </el-table-column>
|
| | | #elseif($column.list && "" != $javaField)
|