From d89c0df4258cd5a9353f2d4b525d0c8cfdfaa550 Mon Sep 17 00:00:00 2001
From: insistence <3055204202@qq.com>
Date: Wed, 19 Mar 2025 15:46:28 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E7=94=9F=E6=88=90vue=E6=A8=A1=E6=9D=BF=20#23?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../templates/vue/index-tree.vue.jinja2 | 9 +++++----
.../templates/vue/index.vue.jinja2 | 9 +++++----
.../templates/vue/v3/index-tree.vue.jinja2 | 16 ++++++++++------
.../templates/vue/v3/index.vue.jinja2 | 16 ++++++++++------
4 files changed, 30 insertions(+), 20 deletions(-)
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 %}