diff --git a/backend/app/api/v1/module_generator/gencode/templates/vue/index.vue.j2 b/backend/app/api/v1/module_generator/gencode/templates/vue/index.vue.j2 index eeb43bf5..16e233b8 100644 --- a/backend/app/api/v1/module_generator/gencode/templates/vue/index.vue.j2 +++ b/backend/app/api/v1/module_generator/gencode/templates/vue/index.vue.j2 @@ -10,24 +10,24 @@ {% set parentheseIndex = column_comment.find("(") %} {% set comment = column_comment[:parentheseIndex] if parentheseIndex != -1 else column_comment %} {% 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" %} - - + + {% endif %} {% endif %} @@ -155,7 +155,7 @@ {% for column in columns %} - {% set python_field = column.python_field %} + {% set python_field = column.column_name %} {% set column_comment = column.column_comment if column.column_comment else '' %} {% set parentheseIndex = column_comment.find("(") %} {% set comment = column_comment[:parentheseIndex] if parentheseIndex != -1 else column_comment %} @@ -194,7 +194,7 @@