{%- if table.pk_column %}
{%- set pk_field = table.pk_column.java_field %}
{%- else %}
{%- set pk_field = 'id' %}
{%- endif %}
{%- for column in table.columns %}
{%- if column.is_query %}
{%- set dict_type = column.dict_type if column.dict_type else '' %}
{%- set attr_name = capitalize_first(column.java_field) %}
{%- set comment = column.column_comment %}
{%- if '(' in comment or '(' in comment %}
{%- if '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- elif '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- endif %}
{%- endif %}
{%- if column.html_type == 'input' %}
{%- elif (column.html_type == 'select' or column.html_type == 'radio') and dict_type != '' %}
{%- elif (column.html_type == 'select' or column.html_type == 'radio') and dict_type == '' %}
{%- elif column.html_type == 'datetime' and column.query_type != 'BETWEEN' %}
{%- elif column.html_type == 'datetime' and column.query_type == 'BETWEEN' %}
{%- endif %}
{%- endif %}
{%- endfor %}
搜索重置新增展开/折叠导出导入
{%- for column in table.columns %}
{%- set java_field = column.java_field %}
{%- set comment = column.column_comment %}
{%- if '(' in comment or '(' in comment %}
{%- if '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- elif '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- endif %}
{%- endif %}
{%- if column.is_list and column.list_index is not none and column.html_type == 'datetime' %}
{{ "{{ parseTime(scope.row." }}{{ java_field }}{{ ", '{y}-{m}-{d}') }}" }}
{%- elif column.is_list and column.list_index is not none and column.html_type == 'imageUpload' %}
{%- elif column.is_list and column.list_index is not none and column.html_type == 'fileUpload' %}
{{ "{{ getFileName(file) }}" }}
查看文件
-
{%- elif column.is_list and column.list_index is not none and column.dict_type and column.dict_type != '' %}
{%- if column.html_type == 'checkbox' %}
{%- else %}
{%- endif %}
{%- elif column.is_list and column.list_index is not none and java_field %}
{%- if column.list_index == 0 %}
{%- else %}
{%- endif %}
{%- endif %}
{%- endfor %}
修改新增删除
{%- for column in table.columns %}
{%- set field = column.java_field %}
{%- if column.is_insert and column.is_pk != '1' %}
{%- set comment = column.column_comment %}
{%- if '(' in comment or '(' in comment %}
{%- if '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- elif '(' in comment %}
{%- set comment = comment.split('(')[0] %}
{%- endif %}
{%- endif %}
{%- set dict_type = column.dict_type if column.dict_type else '' %}
{%- if column.java_field == tree_parent_field %}
{%- elif column.html_type == 'input' %}
{%- elif column.html_type == 'imageUpload' %}
{%- elif column.html_type == 'fileUpload' %}
{%- elif column.html_type == 'editor' %}
{%- elif column.html_type == 'select' and dict_type != '' %}
{%- elif column.html_type == 'select' and dict_type == '' %}
{%- elif column.html_type == 'checkbox' and dict_type != '' %}
{{ "{{dict.label}}" }}
{%- elif column.html_type == 'checkbox' and dict_type == '' %}
请选择字典生成
{%- elif column.html_type == 'radio' and dict_type != '' %}
{{ "{{dict.label}}" }}
{%- elif column.html_type == 'radio' and dict_type == '' %}
请选择字典生成
{%- elif column.html_type == 'datetime' %}
{%- elif column.html_type == 'textarea' %}
{%- endif %}
{%- endif %}
{%- endfor %}