From 802b8efa3940551d5cffae216f4efc2f3283dc96 Mon Sep 17 00:00:00 2001 From: qitangbo Date: Fri, 9 Oct 2026 19:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=95=99=E8=82=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- college/static/src/scss/hide_about_edit.scss | 6 +++--- college/views/about_page_views.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/college/static/src/scss/hide_about_edit.scss b/college/static/src/scss/hide_about_edit.scss index 178860f..c98be3f 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_form_view.o_about_full_form .o_form_button_edit, -.o_form_view.o_about_full_form button[data-hotkey="e"] { +// 这里用 js_class + CSS 精准隐藏该视图控制面板里的编辑按钮,不影响其他表单。 +.o_view_controller.yuthon_about_form .o_control_panel .o_form_button_edit, +.o_view_controller.yuthon_about_form .o_control_panel button[data-hotkey="e"] { display: none !important; } diff --git a/college/views/about_page_views.xml b/college/views/about_page_views.xml index 56f2d1e..e170676 100644 --- a/college/views/about_page_views.xml +++ b/college/views/about_page_views.xml @@ -8,7 +8,7 @@ yuthon.about.page -
+
-- 2.34.1