diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 index 4da71a0..eb8ceaf 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 @@ -35,12 +35,13 @@ {% elif column.html_type == "datetime" and column.query_type != "BETWEEN" %} - - + placeholder="请选择{{ comment }}" + clearable + /> {% elif column.html_type == "datetime" and column.query_type == "BETWEEN" %} @@ -52,7 +53,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - > + /> {% endif %} {% endif %} diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/index.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/index.vue.jinja2 index 673caf4..39f861d 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/index.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/index.vue.jinja2 @@ -35,12 +35,13 @@ {% elif column.html_type == "datetime" and column.query_type != "BETWEEN" %} - - + placeholder="请选择{{ comment }}" + clearable + /> {% elif column.html_type == "datetime" and column.query_type == "BETWEEN" %} @@ -52,7 +53,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - > + /> {% endif %} {% endif %} diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 index 1e60ae8..52eeda9 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 @@ -13,12 +13,13 @@ v-model="queryParams.{{ column.python_field }}" placeholder="请输入{{ comment }}" clearable + style="width: 240px" @keyup.enter="handleQuery" /> {% 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" %} - - + placeholder="请选择{{ comment }}" + clearable + style="width: 240px" + /> {% elif column.html_type == "datetime" and column.query_type == "BETWEEN" %} @@ -51,7 +54,8 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - > + style="width: 240px" + /> {% endif %} {% endif %} diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index.vue.jinja2 index 6356d85..73dae7d 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index.vue.jinja2 @@ -13,12 +13,13 @@ v-model="queryParams.{{ column.python_field }}" placeholder="请输入{{ comment }}" clearable + style="width: 240px" @keyup.enter="handleQuery" /> {% 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" %} - - + placeholder="请选择{{ comment }}" + clearable + style="width: 240px" + /> {% elif column.html_type == "datetime" and column.query_type == "BETWEEN" %} @@ -51,7 +54,8 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - > + style="width: 240px" + /> {% endif %} {% endif %}