{% for column in columns %}
{% if column.query %}
{% set dictType = column.dict_type %}
{% set AttrName = column.python_field[0] | upper + column.python_field[1:] %}
{% set parentheseIndex = column.column_comment.find("(") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% if column.html_type == "input" %}
{% elif (column.html_type == "select" or column.html_type == "radio") and dictType %}
{% elif (column.html_type == "select" or column.html_type == "radio") and not dictType %}
{% 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 columns %}
{% set pythonField = column.python_field %}
{% set parentheseIndex = column.column_comment.find("(") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% if column.pk %}
{% elif column.list and column.html_type == "datetime" %}
{% raw %}{{{% endraw %} parseTime(scope.row.{{ pythonField }}, '{y}-{m}-{d}') {% raw %}}}{% endraw %}
{% elif column.list and column.html_type == "imageUpload" %}
{% elif column.list and column.dict_type %}
{% if column.html_type == "checkbox" %}
{% else %}
{% endif %}
{% elif column.list and pythonField %}
{% endif %}
{% endfor %}
修改
删除
{% for column in columns %}
{% set field = column.python_field %}
{% if column.insert and not column.pk %}
{% if column.usable_column or not column.super_column %}
{% set parentheseIndex = column.column_comment.find("(") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% set dictType = column.dict_type %}
{% if 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 dictType %}
{% elif column.html_type == "select" and not dictType %}
{% elif column.html_type == "checkbox" and dictType %}
{{ dict.label }}
{% elif column.html_type == "checkbox" and not dictType %}
请选择字典生成
{% elif column.html_type == "radio" and dictType %}
{% raw %}{{{% endraw %} dict.label {% raw %}}}{% endraw %}
{% elif column.html_type == "radio" and not dictType %}
{% elif column.html_type == "datetime" %}
{% elif column.html_type == "textarea" %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if table.sub %}
{{ subTable.functionName }}信息
添加
删除
{% for column in subTable.columns %}
{% set pythonField = column.python_field %}
{% set parentheseIndex = column.column_comment.find("(") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% if column.pk or pythonField == subTableFkclassName %}
{% elif column.list and column.html_type == 'input' %}
{% elif column.list and column.html_type == 'datetime' %}
{% elif column.list and (column.html_type == 'select' or column.html_type == 'radio') and column.dict_type %}
{% elif column.list and (column.html_type == 'select' or column.html_type == 'radio') and not column.dict_type %}
{% endif %}
{% endfor %}
{% endif %}