@@ -34,28 +64,13 @@
- {% elif column.html_type == "datetime" and column.query_type != "BETWEEN" %}
+ {% elif column.time_kind and column.query_type != "BETWEEN" %}
-
+ {{ picker(column, "queryParams." ~ column.python_field ~ "", True, False) | indent(10) }}
- {% elif column.html_type == "datetime" and column.query_type == "BETWEEN" %}
+ {% elif column.time_kind and column.query_type == "BETWEEN" %}
-
+ {{ picker(column, "daterange" ~ AttrName ~ "", True, True) | indent(10) }}
{% endif %}
{% endif %}
@@ -116,10 +131,10 @@
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% if column.pk %}
- {% elif column.list and column.html_type == "datetime" %}
+ {% elif column.list and column.time_kind == "instant" %}
- {% raw %}{{{% endraw %} parseTime(scope.row.{{ pythonField }}, '{y}-{m}-{d}') {% raw %}}}{% endraw %}
+ {% raw %}{{{% endraw %} parseTime(scope.row.{{ pythonField }}) {% raw %}}}{% endraw %}
{% elif column.list and column.html_type == "imageUpload" %}
@@ -278,15 +293,10 @@
- {% elif column.html_type == "datetime" %}
+ {% elif column.time_kind %}
-
-
+ {{ picker(column, "form." ~ field ~ "", True, False) | indent(10) }}
{% elif column.html_type == "textarea" %}
@@ -325,15 +335,10 @@
- {% elif column.list and column.html_type == 'datetime' %}
+ {% elif column.list and column.time_kind %}
-
-
+ {{ picker(column, "scope.row." ~ pythonField ~ "", True, False) | indent(10) }}
{% elif column.list and (column.html_type == 'select' or column.html_type == 'radio') and column.dict_type %}
@@ -373,7 +378,9 @@
diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/view.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/view.vue.jinja2
index e0c0f05a..edc8c16c 100644
--- a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/view.vue.jinja2
+++ b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/view.vue.jinja2
@@ -30,8 +30,8 @@
{% else %}
{% endif %}
- {% elif column.html_type == "datetime" %}
- {% raw %}{{{% endraw %} parseTime(info.{{ pythonField }}, '{y}-{m}-{d}') {% raw %}}}{% endraw %}
+ {% elif column.time_kind == "instant" %}
+ {% raw %}{{{% endraw %} parseTime(info.{{ pythonField }}) {% raw %}}}{% endraw %}
{% elif column.html_type == "imageUpload" %}
{% else %}
diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/view.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/view.vue.jinja2
index a318815c..d160cc6e 100644
--- a/ruoyi-fastapi-backend/module_generator/templates/vue/view.vue.jinja2
+++ b/ruoyi-fastapi-backend/module_generator/templates/vue/view.vue.jinja2
@@ -30,8 +30,8 @@
{% else %}
{% endif %}
- {% elif column.html_type == "datetime" %}
- {% raw %}{{{% endraw %} parseTime(info.{{ pythonField }}, '{y}-{m}-{d}') {% raw %}}}{% endraw %}
+ {% elif column.time_kind == "instant" %}
+ {% raw %}{{{% endraw %} parseTime(info.{{ pythonField }}) {% raw %}}}{% endraw %}
{% elif column.html_type == "imageUpload" %}
{% else %}
@@ -55,6 +55,7 @@
diff --git a/ruoyi-fastapi-frontend/src/components/Crontab/index.vue b/ruoyi-fastapi-frontend/src/components/Crontab/index.vue
index 3963df28..34210922 100644
--- a/ruoyi-fastapi-frontend/src/components/Crontab/index.vue
+++ b/ruoyi-fastapi-frontend/src/components/Crontab/index.vue
@@ -101,7 +101,7 @@
-
+
确定
@@ -140,7 +140,11 @@ export default {
};
},
name: "vcrontab",
- props: ["expression", "hideComponent"],
+ props: {
+ expression: String,
+ hideComponent: Array,
+ timeZone: { type: String, required: true }
+ },
methods: {
shouldHide(key) {
if (this.hideComponent && this.hideComponent.includes(key)) return false;
diff --git a/ruoyi-fastapi-frontend/src/components/Crontab/result.vue b/ruoyi-fastapi-frontend/src/components/Crontab/result.vue
index aea6e0e4..9c36caf3 100644
--- a/ruoyi-fastapi-frontend/src/components/Crontab/result.vue
+++ b/ruoyi-fastapi-frontend/src/components/Crontab/result.vue
@@ -1,559 +1,92 @@
-
+
+
+
diff --git a/ruoyi-fastapi-frontend/src/components/JsonEditor/index.vue b/ruoyi-fastapi-frontend/src/components/JsonEditor/index.vue
new file mode 100644
index 00000000..517b0925
--- /dev/null
+++ b/ruoyi-fastapi-frontend/src/components/JsonEditor/index.vue
@@ -0,0 +1,291 @@
+
+
+
+
+
+
+
diff --git a/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/DetailView.vue b/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/DetailView.vue
index e547a969..25f7bfa8 100644
--- a/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/DetailView.vue
+++ b/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/DetailView.vue
@@ -27,7 +27,7 @@
- {{ detail.createTime || '—' }}
+ {{ parseTime(detail.createTime) || '—' }}
diff --git a/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/index.vue b/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/index.vue
index 161d91ed..b76e3fc4 100644
--- a/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/index.vue
+++ b/ruoyi-fastapi-frontend/src/layout/components/HeaderNotice/index.vue
@@ -13,7 +13,7 @@
{{ item.noticeType === '1' ? '通知' : '公告' }}
{{ item.noticeTitle }}
- {{ item.createTime }}
+ {{ parseTime(item.createTime) || '-' }}