feat(优化):年培训计划:已确认行的删除按钮、勾选框、批量删除均仅超级管理员可见/可用;提示文案随角色变化
deploy-hxtesting / build-and-deploy (push) Successful in 1m14s

课程管理:canDeleteCourse 超管不限状态/部门(已审核/已发布行可删,确认弹窗文案区分);批量删除按钮超管可见
月培训计划:已发布行的「删除」仅超管可见(普通维护角色仍只能删未发布计划),行内确认弹窗替代原 window.confirm,失败时透出后端文案
Training.vue:canManageTabs 加入 super_admin,纯超管(未兼其他角色)也能进入这三个页面执行删除
This commit is contained in:
runny committed 2026-11-26 17:06:37 +08:00
1 parent a448598df5
commit 2f1cda34da
19 files changed
+589 -278

No files matched your search

+39
View File
@@ -124,6 +124,45 @@
}
}
// 列表页满屏布局(年培训计划/月培训计划/课程管理):页头(标题)固定不动,
// 面板占满页身剩余高度,内部「面板标题/筛选区/分页」固定,仅表格数据区滚动。
// 约定:panel-box 收为 flex 列,表格外包一层 .table-scroll(flex:1 撑满剩余
// 高度),表格传 height="100%" 启用 TDesign 固定表头(thead sticky + 数据行滚动)。
.training-fill-panel() {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
> .panel-box {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
> .panel-box > .panel-box__header,
> .panel-box > .panel-box__sub {
flex-shrink: 0;
}
> .panel-box > .table-scroll {
flex: 1;
min-height: 0;
// 满屏关键:TDesign 的 height="100%" 落在内部 .t-table__content 上,而其父级
// .t-table 根默认 auto 高,百分比会退化为内容高(表头固定不生效);给根也撑满
// 100% 形成确定高度链,数据区才会真正滚动
> .t-table {
height: 100%;
}
}
> .panel-box > .training-pagination {
flex-shrink: 0;
}
}
// 内容卡片:对齐知识库 resource-card 规范(描边 + 8px 圆角 + 容器底色)
.training-panel-box() {
background: var(--td-bg-color-container);