From 87e8f0c6367574044ebbaa8194b98f78a19223f6 Mon Sep 17 00:00:00 2001 From: qitangbo Date: Fri, 9 Oct 2026 15:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E4=BA=8E=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- college/data/about_pages.xml | 59 ++++++++++++++++++++ college/models/about_page.py | 1 + college/static/src/scss/hide_about_edit.scss | 4 +- college/views/menus.xml | 14 +++++ 4 files changed, 76 insertions(+), 2 deletions(-) diff --git a/college/data/about_pages.xml b/college/data/about_pages.xml index 7eb4d5d..bf9ee19 100644 --- a/college/data/about_pages.xml +++ b/college/data/about_pages.xml @@ -236,4 +236,63 @@ ]]> + + + + 团队介绍 + team + 40 + True + + +
+ +
+
+ + +
+ P + Peng Yuthon +
+ +

鹏程万里 气宇轩昂

+

软件 · 硬件 · AI 智能体

+ + +
+ 软件 + 硬件 + AI 智能体 + 工程化教育 + 企业实训 +
+
+ + +
+

关于我们

+

+ Peng Yuthon 专注于软件、硬件与 AI 智能体方向的工程化教育, + 致力于为高校与职业院校提供真实企业场景驱动的实训解决方案。 +

+ +

联系方式

+
    +
  • B 站:bilibili: pengyuthon
  • +
  • 邮箱:pengyuthon@163.com
  • +
  • 官网:pengyuthon.cn
  • +
  • 学习平台:edu.pengyuthon.cn
  • +
+
+ + +
+ © 2026 Peng Yuthon. All rights reserved. +
+ + ]]>
+
+ diff --git a/college/models/about_page.py b/college/models/about_page.py index b75e2fc..9ff9d6e 100644 --- a/college/models/about_page.py +++ b/college/models/about_page.py @@ -18,6 +18,7 @@ class YuthonAboutPage(models.Model): ('operation', '操作手册'), ('product', '产品介绍'), ('import', '导入说明'), + ('team', '团队介绍'), ], string='分类', default='system', required=True) content = fields.Html(string='内容', sanitize=True, translate=True) sequence = fields.Integer(string='排序', default=10) diff --git a/college/static/src/scss/hide_about_edit.scss b/college/static/src/scss/hide_about_edit.scss index 2cecf81..178860f 100644 --- a/college/static/src/scss/hide_about_edit.scss +++ b/college/static/src/scss/hide_about_edit.scss @@ -1,7 +1,7 @@ // 关于页(yuthon.about.page)为只读展示页: // form 视图已设 edit="false",但教师组有该模型写权限时控制面板仍会渲染「编辑」按钮, // 这里用 CSS 精准隐藏该页面的编辑按钮(作用域限定 o_about_full_form,不影响其他表单)。 -.o_about_full_form .o_form_button_edit { +.o_form_view.o_about_full_form .o_form_button_edit, +.o_form_view.o_about_full_form button[data-hotkey="e"] { display: none !important; - } diff --git a/college/views/menus.xml b/college/views/menus.xml index abc27f8..1bf9e7c 100644 --- a/college/views/menus.xml +++ b/college/views/menus.xml @@ -340,6 +340,20 @@ else: current + + + 团队介绍 + yuthon.about.page + form + + current + + + 课程导入 -- 2.34.1