From cf57f981c0f5b15cfd86b8888508f07d3986ea25 Mon Sep 17 00:00:00 2001 From: Viajero-tect <2737079298@qq.com> Date: Thu, 13 Nov 2025 17:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E2=80=9C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elastic/indexes.py | 3 + elastic/templates/elastic/manage.html | 176 ++++++++++++++++++++ elastic/templates/elastic/upload.html | 228 ++++++++++++++++++++++++++ 3 files changed, 407 insertions(+) create mode 100644 elastic/indexes.py create mode 100644 elastic/templates/elastic/manage.html create mode 100644 elastic/templates/elastic/upload.html diff --git a/elastic/indexes.py b/elastic/indexes.py new file mode 100644 index 0000000..67b7bd5 --- /dev/null +++ b/elastic/indexes.py @@ -0,0 +1,3 @@ +INDEX_NAME = "wordsearch266666" +ACHIEVEMENT_INDEX_NAME = INDEX_NAME +USER_INDEX_NAME = INDEX_NAME diff --git a/elastic/templates/elastic/manage.html b/elastic/templates/elastic/manage.html new file mode 100644 index 0000000..9a969a1 --- /dev/null +++ b/elastic/templates/elastic/manage.html @@ -0,0 +1,176 @@ + + +
+ +仅管理员可见。可查看、编辑、删除所有记录。
+| ID | +图片 | +数据 | +作者 | +操作 | +
|---|---|---|---|---|
| {{ it._id }} | +
+ {% if it.image %}
+ /media/{{ it.image }}
+ {% endif %}
+ |
+
+ {{ it.data|safe }}
+ |
+ {{ it.writer_id }} | ++ + + | +
选择图片后上传,服务端调用大模型解析为可编辑的 JSON,再确认入库。
+ + + +