refactor: 统一教师端UI风格并优化交互细节

- 移除按钮默认type="primary",统一按钮样式管理
- 重构教师端表格样式与操作按钮布局
- 统一主题色为深蓝科技风格,调整卡片、弹窗样式
- 优化侧边栏与页面滚动条样式
- 修复部分页面的布局与交互问题
fix/exam-question-access-material-excel-delete-draft
qinzhenpen 2 months ago
parent 77d5fc373b
commit e377dc7acf

@ -248,6 +248,30 @@
} }
} }
.platform-admin-main {
height: calc(100vh - 50px);
overflow: auto !important;
background:
radial-gradient(circle at 12% 18%, rgba(14, 74, 112, 0.45), transparent 34%),
radial-gradient(circle at 78% 6%, rgba(25, 92, 170, 0.3), transparent 28%),
linear-gradient(135deg, #03070e 0%, #061827 48%, #02060d 100%) !important;
&::-webkit-scrollbar {
width: 5px;
height: 5px;
}
&::-webkit-scrollbar-track {
background: #111a24;
border-radius: 10px;
}
&::-webkit-scrollbar-thumb {
background: #2d8fcf;
border-radius: 10px;
}
}
.studentLayout, .studentLayout,
.teacherLayout { .teacherLayout {
background: background:
@ -767,10 +791,11 @@
} }
/* /*
* 教师端亮色主题覆盖 * 学生端 + 教师端共用亮色主题覆盖
* 取代 #app .studentLayout, #app .teacherLayout 共享的暗色背景 * 取代 #app .studentLayout, #app .teacherLayout 共享的暗色背景(L274-411)
* 仅作用于 .teacherLayout,保留学生端原有暗黑风格 * 超管端 (role 1) 走独立深色路径:#app .platform-admin-main (L250-272)
*/ */
#app .studentLayout,
#app .teacherLayout { #app .teacherLayout {
// 整体浅色背景 + 蓝色点缀,营造明亮的科技感 // 整体浅色背景 + 蓝色点缀,营造明亮的科技感
background: background:
@ -888,18 +913,35 @@
box-shadow: 0 4px 14px rgba(30, 136, 229, 0.3) !important; box-shadow: 0 4px 14px rgba(30, 136, 229, 0.3) !important;
} }
} }
// 折叠按钮:亮色玻璃 + 蓝色描边(覆盖 L274-411 暗黑版本)
.course-sidebar-toggle {
border: 1px solid rgba(30, 136, 229, 0.32) !important;
border-radius: 9px !important;
color: #1e88e5 !important;
background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%) !important;
box-shadow: 0 2px 10px rgba(30, 60, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
&:hover {
border-color: rgba(30, 136, 229, 0.55) !important;
color: #ffffff !important;
background: linear-gradient(135deg, #1e88e5, #42a5f5) !important;
box-shadow: 0 4px 14px rgba(30, 136, 229, 0.3) !important;
}
}
} }
} }
/* /*
* 教师端实训页背景覆盖 * 学生端 + 教师端实训页背景覆盖
* student-training.scss 中 #app .teacherLayout .app-main:has(.student-training-shell) 使用了暗色背景 * student-training.scss 中 .student-training-shell 的暗色背景统一覆盖为亮色
* 此处覆盖为亮色,确保实训页与教师端整体亮色主题一致
*/ */
#app .studentLayout .app-main:has(.student-training-shell),
#app .teacherLayout .app-main:has(.student-training-shell) { #app .teacherLayout .app-main:has(.student-training-shell) {
background: linear-gradient(135deg, #f5f8fc 0%, #eaf2fb 52%, #f3f8ff 100%) !important; background: linear-gradient(135deg, #f5f8fc 0%, #eaf2fb 52%, #f3f8ff 100%) !important;
} }
#app .studentLayout .app-main:has(.student-training-shell) .student-training-shell,
#app .teacherLayout .app-main:has(.student-training-shell) .student-training-shell { #app .teacherLayout .app-main:has(.student-training-shell) .student-training-shell {
background: transparent !important; background: transparent !important;
} }

File diff suppressed because it is too large Load Diff

@ -1,11 +1,11 @@
<!-- <!--
* @Author: qinzhenpen qzp1807@126.com * @Author: qinzhenpen qzp1807@126.com
* @Date: 2024-07-15 15:44:46 * @Date: 2024-07-15 15:44:46
* @LastEditors: qinzhenpen qzp1807@126.com * @LastEditors: qinzhenpen qzp1807@126.com
* @LastEditTime: 2025-05-21 18:07:48 * @LastEditTime: 2025-05-21 18:07:48
* @FilePath: \vue3\src\layout\components\AppMain.vue * @FilePath: \vue3\src\layout\components\AppMain.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<template> <template>
<section :class="mainClass"> <section :class="mainClass">
<div v-if="isDemo" class="student-demo-banner">演示模式:{{ demoClassName }}<button @click="exitDemo">退出演示</button></div> <div v-if="isDemo" class="student-demo-banner">演示模式:{{ demoClassName }}<button @click="exitDemo">退出演示</button></div>
@ -24,18 +24,18 @@
</div> </div>
</div> </div>
<iframe-toggle /> <iframe-toggle />
</section> </section>
</template> </template>
<script setup> <script setup>
import * as indexApi from "@/api/index"; import * as indexApi from "@/api/index";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
import { dynamicRoutes } from "@/router"; import { dynamicRoutes } from "@/router";
import iframeToggle from "./IframeToggle/index"; import iframeToggle from "./IframeToggle/index";
import useTagsViewStore from "@/store/modules/tagsView"; import useTagsViewStore from "@/store/modules/tagsView";
import { getUserInfo } from "@/utils/auth"; import { getUserInfo } from "@/utils/auth";
import useUserStore from "@/store/modules/user"; import useUserStore from "@/store/modules/user";
import { clearStudentDemoSession, getStudentDemoSession, isStudentDemo } from "@/utils/studentDemo"; import { clearStudentDemoSession, getStudentDemoSession, isStudentDemo } from "@/utils/studentDemo";
const userStore = useUserStore(); const userStore = useUserStore();
const tagsViewStore = useTagsViewStore(); const tagsViewStore = useTagsViewStore();
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
@ -55,6 +55,8 @@ function exitDemo() {
const mainClass = computed(() => { const mainClass = computed(() => {
if (Number(role.value) === 4) return "app-main"; if (Number(role.value) === 4) return "app-main";
if (Number(role.value) === 3) return "teacher-main"; if (Number(role.value) === 3) return "teacher-main";
// 超管端单独使用深蓝底色,与深色卡片协调;校管理员端(role 2)仍用 app-main2 浅色底图
if (Number(role.value) === 1) return "app-main2 platform-admin-main";
return "app-main2"; return "app-main2";
}); });
function handleStudentTaskConfigLoading(event) { function handleStudentTaskConfigLoading(event) {
@ -69,51 +71,51 @@ watch(currentStudentTaskKey, (taskKey) => {
}, { immediate: true }); }, { immediate: true });
onMounted(() => window.addEventListener("student-task-config-loading", handleStudentTaskConfigLoading)); onMounted(() => window.addEventListener("student-task-config-loading", handleStudentTaskConfigLoading));
onBeforeUnmount(() => window.removeEventListener("student-task-config-loading", handleStudentTaskConfigLoading)); onBeforeUnmount(() => window.removeEventListener("student-task-config-loading", handleStudentTaskConfigLoading));
const module = ["市场需求挖掘", "产品规划", "产品投放测试", "供应渠道管理", "产品评估与考核"]; const module = ["市场需求挖掘", "产品规划", "产品投放测试", "供应渠道管理", "产品评估与考核"];
// 全局监听路由进入和离开 // 全局监听路由进入和离开
onBeforeRouteUpdate((to, from) => { onBeforeRouteUpdate((to, from) => {
tagsViewStore.addVisitedView(to); tagsViewStore.addVisitedView(to);
tagsViewStore.addCachedView(to); tagsViewStore.addCachedView(to);
}); });
function findParentByTitle(routes, targetTitle) { function findParentByTitle(routes, targetTitle) {
for (const route of routes) { for (const route of routes) {
if (route.children && route.children.length) { if (route.children && route.children.length) {
for (const child of route.children) { for (const child of route.children) {
// 如果 child 还有 children,则递归查找 // 如果 child 还有 children,则递归查找
if (child.children && child.children.length) { if (child.children && child.children.length) {
const found = findParentByTitle([child], targetTitle); const found = findParentByTitle([child], targetTitle);
if (found) return found; if (found) return found;
} else if (child.meta && child.meta.title === targetTitle) { } else if (child.meta && child.meta.title === targetTitle) {
// 找到了目标 title,返回它的父级 route // 找到了目标 title,返回它的父级 route
return route; return route;
} }
} }
} }
} }
return null; return null;
} }
function useTimeRecorder() { function useTimeRecorder() {
const startTime = ref(null); const startTime = ref(null);
const start = () => { const start = () => {
startTime.value = new Date(); startTime.value = new Date();
console.log("计时开始"); console.log("计时开始");
}; };
const end = () => { const end = () => {
if (!startTime.value) { if (!startTime.value) {
console.warn("请先调用 start() 方法!"); console.warn("请先调用 start() 方法!");
return null; return null;
} }
const durationMs = new Date() - startTime.value; // 毫秒差值 const durationMs = new Date() - startTime.value; // 毫秒差值
const durationMinutes = (durationMs / (1000 * 60)).toFixed(2); // 转为分钟,保留2位小数 const durationMinutes = (durationMs / (1000 * 60)).toFixed(2); // 转为分钟,保留2位小数
console.log(`计时结束,耗时: ${durationMinutes} 秒`); console.log(`计时结束,耗时: ${durationMinutes} 秒`);
return parseFloat(durationMinutes); // 返回字符串(如 "3.14") return parseFloat(durationMinutes); // 返回字符串(如 "3.14")
}; };
const reset = () => { const reset = () => {
startTime.value = null; startTime.value = null;
console.log("计时器已重置"); console.log("计时器已重置");
}; };
return { start, end, reset }; return { start, end, reset };
} }
const { start, end, reset } = useTimeRecorder(); const { start, end, reset } = useTimeRecorder();
const getCurrentTeachingClassId = async () => { const getCurrentTeachingClassId = async () => {
if (isDemo.value) return getStudentDemoSession()?.userInfo?.demoTeachingClassId || ""; if (isDemo.value) return getStudentDemoSession()?.userInfo?.demoTeachingClassId || "";
@ -145,40 +147,40 @@ router.beforeEach((to, from, next) => {
if (isDemo.value) { next(); return; } if (isDemo.value) { next(); return; }
const disabledTitles = proxy.$cache.session.getJSON("disabledTitles"); const disabledTitles = proxy.$cache.session.getJSON("disabledTitles");
const routess = Array.isArray(disabledTitles) ? disabledTitles : []; const routess = Array.isArray(disabledTitles) ? disabledTitles : [];
// 获取当前和上一个模块 // 获取当前和上一个模块
const toModule = findParentByTitle(dynamicRoutes, to.meta.title)?.meta?.title; const toModule = findParentByTitle(dynamicRoutes, to.meta.title)?.meta?.title;
const fromModule = findParentByTitle(dynamicRoutes, from.meta.title)?.meta?.title; const fromModule = findParentByTitle(dynamicRoutes, from.meta.title)?.meta?.title;
// 离开模块时结束计时 // 离开模块时结束计时
if (module.includes(fromModule)) { if (module.includes(fromModule)) {
const timeData = end(); const timeData = end();
if (timeData) { if (timeData) {
// 发送学习时间到后端 // 发送学习时间到后端
indexApi indexApi
.updateStudyTime({ .updateStudyTime({
time: Number(timeData), time: Number(timeData),
projectName: fromModule, projectName: fromModule,
userId: userStore.userInfo.userId, userId: userStore.userInfo.userId,
}) })
.then((res) => {}); .then((res) => {});
} }
} }
// 进入新模块时开始计时 // 进入新模块时开始计时
if (module.includes(toModule)) { if (module.includes(toModule)) {
// 判断是否有禁用的模块 // 判断是否有禁用的模块
if (routess.includes(to.meta.title)) { if (routess.includes(to.meta.title)) {
proxy.$modal.msgError("该模块示暂未开放"); proxy.$modal.msgError("该模块示暂未开放");
return; return;
} }
start(toModule); start(toModule);
if (module.includes(fromModule)) { if (module.includes(fromModule)) {
// 访问统计不影响页面跳转,避免等待当前教学班接口。 // 访问统计不影响页面跳转,避免等待当前教学班接口。
updateVisitCountInBackground(fromModule); updateVisitCountInBackground(fromModule);
} }
} }
next(); next();
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { .app-main {
/* 50= navbar 50 */ /* 50= navbar 50 */
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
@ -191,14 +193,18 @@ router.beforeEach((to, from, next) => {
} }
.student-demo-banner{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;padding:8px 18px;color:#fff;background:#b45309}.student-demo-banner button{border:0;border-radius:4px;padding:3px 10px;cursor:pointer} .student-demo-banner{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;padding:8px 18px;color:#fff;background:#b45309}.student-demo-banner button{border:0;border-radius:4px;padding:3px 10px;cursor:pointer}
.student-task-loading{position:fixed;inset:50px 0 0;z-index:90;display:grid;place-items:start center;padding-top:96px;background:linear-gradient(135deg,rgba(2,15,26,.985),rgba(4,31,47,.985));}.student-task-loading__panel{display:grid;gap:18px;width:min(820px,calc(100vw - 72px));padding:32px;border:1px solid rgba(66,201,250,.34);border-radius:18px;background:rgba(4,27,42,.8);box-shadow:0 22px 52px rgba(0,0,0,.32)}.student-task-loading__label{color:#bdefff;font-weight:700;letter-spacing:.04em}.student-task-loading__line{display:block;height:18px;border-radius:99px;background:linear-gradient(90deg,rgba(26,107,143,.32),rgba(88,208,255,.58),rgba(26,107,143,.32));background-size:200% 100%;animation:student-task-loading-shimmer 1.2s linear infinite}.student-task-loading__line--title{width:42%;height:30px}.student-task-loading__line--short{width:68%}@keyframes student-task-loading-shimmer{to{background-position:-200% 0}} .student-task-loading{position:fixed;inset:50px 0 0;z-index:90;display:grid;place-items:start center;padding-top:96px;background:linear-gradient(135deg,rgba(2,15,26,.985),rgba(4,31,47,.985));}.student-task-loading__panel{display:grid;gap:18px;width:min(820px,calc(100vw - 72px));padding:32px;border:1px solid rgba(66,201,250,.34);border-radius:18px;background:rgba(4,27,42,.8);box-shadow:0 22px 52px rgba(0,0,0,.32)}.student-task-loading__label{color:#bdefff;font-weight:700;letter-spacing:.04em}.student-task-loading__line{display:block;height:18px;border-radius:99px;background:linear-gradient(90deg,rgba(26,107,143,.32),rgba(88,208,255,.58),rgba(26,107,143,.32));background-size:200% 100%;animation:student-task-loading-shimmer 1.2s linear infinite}.student-task-loading__line--title{width:42%;height:30px}.student-task-loading__line--short{width:68%}@keyframes student-task-loading-shimmer{to{background-position:-200% 0}}
.app-main2 { .app-main2 {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background: url("@/assets/images/背景f6.png") no-repeat; background: url("@/assets/images/背景f6.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
// platform-admin-main 的 height/overflow/background 统一由 src/assets/styles/sidebar.scss 中
// #app .platform-admin-main 全局规则兜底(ID 优先级高于 scoped 0,3,0,且有 !important),
// 此处 scoped 仅保留类名绑定,不重复声明 body styles 避免双写来源冲突。
.platform-admin-main {}
.teacher-main { .teacher-main {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
width: 100%; width: 100%;
@ -211,35 +217,35 @@ router.beforeEach((to, from, next) => {
linear-gradient(135deg, #03070e 0%, #061827 48%, #02060d 100%); linear-gradient(135deg, #03070e 0%, #061827 48%, #02060d 100%);
} }
.fixed-header + .app-main { .fixed-header + .app-main {
padding-top: 50px; padding-top: 50px;
} }
.hasTagsView { .hasTagsView {
.app-main { .app-main {
/* 84 = navbar + tags-view = 50 + 34 */ /* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
} }
.fixed-header + .app-main { .fixed-header + .app-main {
padding-top: 84px; padding-top: 84px;
} }
} }
</style> </style>
<style lang="scss"> <style lang="scss">
// fix css style bug in open el-dialog // fix css style bug in open el-dialog
.el-popup-parent--hidden { .el-popup-parent--hidden {
.fixed-header { .fixed-header {
padding-right: 6px; padding-right: 6px;
} }
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background-color: #f1f1f1; background-color: #f1f1f1;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: #c0c0c0; background-color: #c0c0c0;
border-radius: 3px; border-radius: 3px;

@ -43,7 +43,7 @@
</el-icon> </el-icon>
查询 查询
</el-button> </el-button>
<el-button type="primary" @click="refresh"> <el-button @click="refresh">
<el-icon> <el-icon>
<Refresh /> <Refresh />
</el-icon> </el-icon>
@ -206,7 +206,7 @@
</el-icon> </el-icon>
查询 查询
</el-button> </el-button>
<el-button type="primary" @click="refreshMemberList"> <el-button @click="refreshMemberList">
<el-icon> <el-icon>
<Refresh /> <Refresh />
</el-icon> </el-icon>

@ -15,7 +15,7 @@
<p>为本校教学班尚未单独配置任务时提供默认任务。教学班已配置的任务不受这里改动影响。</p> <p>为本校教学班尚未单独配置任务时提供默认任务。教学班已配置的任务不受这里改动影响。</p>
</div> </div>
<div class="toolbar-actions"> <div class="toolbar-actions">
<el-button type="primary" :loading="loading" @click="loadTasks">刷新</el-button> <el-button :loading="loading" @click="loadTasks">刷新</el-button>
<el-button v-if="!isReady" type="warning" :loading="retrying" @click="retryInitialization">立即重试</el-button> <el-button v-if="!isReady" type="warning" :loading="retrying" @click="retryInitialization">立即重试</el-button>
<el-button type="primary" :disabled="!isReady" :loading="saving" @click="saveTasks">保存配置</el-button> <el-button type="primary" :disabled="!isReady" :loading="saving" @click="saveTasks">保存配置</el-button>
</div> </div>

@ -13,11 +13,11 @@
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-input v-model="questionQuery.keyword" placeholder="搜索题干" clearable :prefix-icon="Search" @keyup.enter="loadQuestions" /> <el-input v-model="questionQuery.keyword" placeholder="搜索题干" clearable :prefix-icon="Search" @keyup.enter="loadQuestions" />
<el-button type="primary" :icon="Search" @click="loadQuestions">查询</el-button> <el-button :icon="Search" @click="loadQuestions">查询</el-button>
<div class="toolbar-spacer" /> <div class="toolbar-spacer" />
<el-button type="primary" :icon="Download" @click="downloadTemplate">下载导入模板</el-button> <el-button :icon="Download" @click="downloadTemplate">下载导入模板</el-button>
<el-upload :show-file-list="false" accept=".docx" :http-request="doImport"> <el-upload :show-file-list="false" accept=".docx" :http-request="doImport">
<el-button type="primary" :icon="Upload">Word 批量导入</el-button> <el-button :icon="Upload">Word 批量导入</el-button>
</el-upload> </el-upload>
</section> </section>
<el-table v-loading="loading" :data="questions" class="data-table"> <el-table v-loading="loading" :data="questions" class="data-table">
@ -36,7 +36,7 @@
<el-tab-pane label="考评管理" name="exams"> <el-tab-pane label="考评管理" name="exams">
<section class="toolbar" aria-label="考试筛选"> <section class="toolbar" aria-label="考试筛选">
<el-input v-model="examKeyword" placeholder="搜索考试名称" clearable :prefix-icon="Search" @keyup.enter="loadExams" /> <el-input v-model="examKeyword" placeholder="搜索考试名称" clearable :prefix-icon="Search" @keyup.enter="loadExams" />
<el-button type="primary" :icon="Search" @click="loadExams">查询</el-button> <el-button :icon="Search" @click="loadExams">查询</el-button>
</section> </section>
<el-table v-loading="loading" :data="exams" class="data-table"> <el-table v-loading="loading" :data="exams" class="data-table">
<el-table-column prop="name" label="考试名称" min-width="210" /> <el-table-column prop="name" label="考试名称" min-width="210" />

@ -225,12 +225,12 @@ const getTrendData = async () => {
backgroundColor: "transparent", backgroundColor: "transparent",
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
backgroundColor: "rgba(255, 255, 255, 0.98)", backgroundColor: "rgba(15, 25, 45, 0.95)",
borderColor: "rgba(30, 136, 229, 0.3)", borderColor: "rgba(0, 212, 255, 0.4)",
borderWidth: 1, borderWidth: 1,
padding: [12, 16], padding: [12, 16],
textStyle: { textStyle: {
color: "#1e3a5f", color: "#e8f7ff",
fontSize: 13, fontSize: 13,
}, },
axisPointer: { axisPointer: {
@ -366,12 +366,12 @@ const getStatisticsData = async () => {
backgroundColor: "transparent", backgroundColor: "transparent",
tooltip: { tooltip: {
trigger: "item", trigger: "item",
backgroundColor: "rgba(255, 255, 255, 0.98)", backgroundColor: "rgba(15, 25, 45, 0.95)",
borderColor: "rgba(30, 136, 229, 0.3)", borderColor: "rgba(0, 212, 255, 0.4)",
borderWidth: 1, borderWidth: 1,
padding: [12, 16], padding: [12, 16],
textStyle: { textStyle: {
color: "#1e3a5f", color: "#e8f7ff",
fontSize: 13, fontSize: 13,
}, },
formatter: "{a} <br/>{b} : {c}人 ({d}%)", formatter: "{a} <br/>{b} : {c}人 ({d}%)",
@ -539,12 +539,11 @@ onBeforeUnmount(() => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 20px 28px; padding: 20px 28px;
background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%); background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 255, 157, 0.04));
border: 1px solid rgba(30, 136, 229, 0.18); border: 1px solid rgba(0, 212, 255, 0.15);
border-radius: 16px; border-radius: 16px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
box-shadow: 0 6px 20px rgba(30, 60, 100, 0.08);
&::before { &::before {
content: ""; content: "";
@ -553,7 +552,7 @@ onBeforeUnmount(() => {
left: 0; left: 0;
right: 0; right: 0;
height: 1px; height: 1px;
background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.45), transparent); background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
} }
.header-content { .header-content {
@ -570,14 +569,14 @@ onBeforeUnmount(() => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: linear-gradient(135deg, rgba(30, 136, 229, 0.14), rgba(66, 165, 245, 0.06)); background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 157, 0.1));
border-radius: 14px; border-radius: 14px;
border: 1px solid rgba(30, 136, 229, 0.3); border: 1px solid rgba(0, 212, 255, 0.3);
.header-icon-svg { .header-icon-svg {
width: 28px; width: 28px;
height: 28px; height: 28px;
color: #1e88e5; color: #00d4ff;
} }
} }
@ -585,15 +584,15 @@ onBeforeUnmount(() => {
.header-title { .header-title {
font-size: 22px; font-size: 22px;
font-weight: 700; font-weight: 700;
color: #1e3a5f; color: #ffffff;
margin: 0; margin: 0;
letter-spacing: 1px; letter-spacing: 1px;
text-shadow: none; text-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
} }
.header-subtitle { .header-subtitle {
font-size: 13px; font-size: 13px;
color: #5a7896; color: rgba(120, 180, 220, 0.8);
margin: 4px 0 0; margin: 4px 0 0;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
@ -609,23 +608,23 @@ onBeforeUnmount(() => {
width: 8px; width: 8px;
height: 8px; height: 8px;
border-radius: 50%; border-radius: 50%;
background: rgba(30, 136, 229, 0.45); background: rgba(0, 212, 255, 0.4);
&:nth-child(2) { &:nth-child(2) {
background: rgba(43, 164, 113, 0.45); background: rgba(0, 255, 157, 0.4);
animation: pulse 2s ease-in-out infinite; animation: pulse 2s ease-in-out infinite;
} }
&:nth-child(3) { &:nth-child(3) {
background: rgba(126, 87, 194, 0.45); background: rgba(167, 139, 250, 0.4);
} }
} }
} }
} }
@keyframes pulse { @keyframes pulse {
0%, 100% { transform: scale(1); opacity: 0.45; } 0%, 100% { transform: scale(1); opacity: 0.4; }
50% { transform: scale(1.5); opacity: 0.85; } 50% { transform: scale(1.5); opacity: 0.8; }
} }
// 卡片容器 // 卡片容器
@ -638,17 +637,17 @@ onBeforeUnmount(() => {
.card { .card {
position: relative; position: relative;
background: #ffffff; background: rgba(8, 20, 40, 0.7);
border: 1px solid rgba(30, 136, 229, 0.15); border: 1px solid rgba(0, 212, 255, 0.15);
border-radius: 20px; border-radius: 20px;
overflow: hidden; overflow: hidden;
backdrop-filter: blur(20px);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 6px 20px rgba(30, 60, 100, 0.06);
&:hover { &:hover {
border-color: rgba(30, 136, 229, 0.3); border-color: rgba(0, 212, 255, 0.35);
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 20px 60px rgba(30, 136, 229, 0.1); box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
} }
.card-glow { .card-glow {
@ -657,7 +656,7 @@ onBeforeUnmount(() => {
left: -50%; left: -50%;
width: 200%; width: 200%;
height: 200%; height: 200%;
background: radial-gradient(circle at 30% 30%, rgba(30, 136, 229, 0.05), transparent 50%); background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.05), transparent 50%);
pointer-events: none; pointer-events: none;
} }
@ -700,15 +699,15 @@ onBeforeUnmount(() => {
} }
&.trend-icon { &.trend-icon {
background: linear-gradient(135deg, rgba(30, 136, 229, 0.18), rgba(30, 136, 229, 0.06)); background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
border: 1px solid rgba(30, 136, 229, 0.3); border: 1px solid rgba(0, 212, 255, 0.3);
color: #1e88e5; color: #00d4ff;
} }
&.stats-icon { &.stats-icon {
background: linear-gradient(135deg, rgba(43, 164, 113, 0.18), rgba(43, 164, 113, 0.06)); background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 255, 157, 0.05));
border: 1px solid rgba(43, 164, 113, 0.3); border: 1px solid rgba(0, 255, 157, 0.3);
color: #2ba471; color: #00ff9d;
} }
} }
@ -716,7 +715,7 @@ onBeforeUnmount(() => {
.card-title { .card-title {
font-size: 17px; font-size: 17px;
font-weight: 600; font-weight: 600;
color: #1e3a5f; color: #ffffff;
margin: 0; margin: 0;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
@ -726,15 +725,15 @@ onBeforeUnmount(() => {
margin-top: 4px; margin-top: 4px;
padding: 2px 10px; padding: 2px 10px;
font-size: 11px; font-size: 11px;
color: #1565c0; color: #00d4ff;
background: rgba(30, 136, 229, 0.1); background: rgba(0, 212, 255, 0.1);
border: 1px solid rgba(30, 136, 229, 0.25); border: 1px solid rgba(0, 212, 255, 0.2);
border-radius: 20px; border-radius: 20px;
&.success { &.success {
color: #1e7a4f; color: #00ff9d;
background: rgba(43, 164, 113, 0.1); background: rgba(0, 255, 157, 0.1);
border-color: rgba(43, 164, 113, 0.25); border-color: rgba(0, 255, 157, 0.2);
} }
} }
} }
@ -751,7 +750,7 @@ onBeforeUnmount(() => {
align-items: center; align-items: center;
gap: 6px; gap: 6px;
font-size: 12px; font-size: 12px;
color: #5a7896; color: rgba(150, 200, 230, 0.9);
.legend-dot { .legend-dot {
width: 10px; width: 10px;
@ -782,7 +781,7 @@ onBeforeUnmount(() => {
.card-footer { .card-footer {
margin-top: 16px; margin-top: 16px;
padding-top: 16px; padding-top: 16px;
border-top: 1px solid rgba(30, 136, 229, 0.12); border-top: 1px solid rgba(0, 212, 255, 0.1);
flex-shrink: 0; flex-shrink: 0;
.trend-insight { .trend-insight {
@ -797,7 +796,7 @@ onBeforeUnmount(() => {
.insight-text { .insight-text {
font-size: 13px; font-size: 13px;
color: #5a7896; color: rgba(120, 180, 220, 0.8);
letter-spacing: 2px; letter-spacing: 2px;
} }
} }
@ -836,8 +835,8 @@ onBeforeUnmount(() => {
.filter-section { .filter-section {
margin-bottom: 20px; margin-bottom: 20px;
padding: 16px 18px; padding: 16px 18px;
background: #f8fbff; background: rgba(0, 212, 255, 0.03);
border: 1px solid rgba(30, 136, 229, 0.12); border: 1px solid rgba(0, 212, 255, 0.1);
border-radius: 14px; border-radius: 14px;
flex-shrink: 0; flex-shrink: 0;
@ -862,7 +861,7 @@ onBeforeUnmount(() => {
align-items: center; align-items: center;
gap: 6px; gap: 6px;
font-size: 12px; font-size: 12px;
color: #2c4a6a; color: rgba(150, 200, 230, 0.9);
font-weight: 500; font-weight: 500;
.label-icon { .label-icon {
@ -873,8 +872,8 @@ onBeforeUnmount(() => {
// 输入框样式 // 输入框样式
:deep(.el-input__wrapper) { :deep(.el-input__wrapper) {
background: #ffffff !important; background: rgba(0, 20, 40, 0.8) !important;
border: 1px solid rgba(30, 136, 229, 0.2) !important; border: 1px solid rgba(0, 212, 255, 0.25) !important;
box-shadow: none !important; box-shadow: none !important;
border-radius: 10px !important; border-radius: 10px !important;
padding: 4px 12px !important; padding: 4px 12px !important;
@ -882,22 +881,22 @@ onBeforeUnmount(() => {
&:hover, &:hover,
&:focus { &:focus {
border-color: rgba(30, 136, 229, 0.5) !important; border-color: rgba(0, 212, 255, 0.5) !important;
box-shadow: 0 0 12px rgba(30, 136, 229, 0.12) !important; box-shadow: 0 0 12px rgba(0, 212, 255, 0.15) !important;
} }
} }
:deep(.el-input__inner) { :deep(.el-input__inner) {
color: #2c4a6a !important; color: #e8f7ff !important;
font-size: 13px; font-size: 13px;
&::placeholder { &::placeholder {
color: #8aa8c4 !important; color: rgba(120, 180, 220, 0.5) !important;
} }
} }
:deep(.el-input__prefix) { :deep(.el-input__prefix) {
color: rgba(30, 136, 229, 0.7); color: rgba(0, 212, 255, 0.7);
} }
// 日期选择器样式 // 日期选择器样式
@ -911,23 +910,23 @@ onBeforeUnmount(() => {
} }
:deep(.el-select__caret) { :deep(.el-select__caret) {
color: rgba(30, 136, 229, 0.7) !important; color: rgba(0, 212, 255, 0.7) !important;
} }
:deep(.el-select-dropdown) { :deep(.el-select-dropdown) {
background: #ffffff !important; background: rgba(8, 20, 40, 0.95) !important;
border: 1px solid rgba(30, 136, 229, 0.2) !important; border: 1px solid rgba(0, 212, 255, 0.2) !important;
.el-select-dropdown__item { .el-select-dropdown__item {
color: #2c4a6a; color: #e8f7ff;
&:hover, &:hover,
&.hover { &.hover {
background: rgba(30, 136, 229, 0.08) !important; background: rgba(0, 212, 255, 0.1) !important;
} }
&.selected { &.selected {
color: #1e88e5; color: #00d4ff;
font-weight: 600; font-weight: 600;
} }
} }
@ -938,9 +937,9 @@ onBeforeUnmount(() => {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
background: #1e88e5 !important; background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 157, 0.1)) !important;
border: 1px solid #1e88e5 !important; border: 1px solid rgba(0, 212, 255, 0.4) !important;
color: #ffffff !important; color: #00d4ff !important;
padding: 10px 20px !important; padding: 10px 20px !important;
border-radius: 10px !important; border-radius: 10px !important;
font-size: 14px; font-size: 14px;
@ -961,10 +960,10 @@ onBeforeUnmount(() => {
} }
&:hover { &:hover {
background: #42a5f5 !important; background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 157, 0.2)) !important;
border-color: #42a5f5 !important; border-color: rgba(0, 212, 255, 0.6) !important;
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(30, 136, 229, 0.25); box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
} }
&:active { &:active {
@ -984,15 +983,15 @@ onBeforeUnmount(() => {
.score-card { .score-card {
position: relative; position: relative;
padding: 16px; padding: 16px;
background: #f8fbff; background: rgba(0, 20, 40, 0.6);
border: 1px solid rgba(30, 136, 229, 0.15); border: 1px solid rgba(0, 212, 255, 0.15);
border-radius: 14px; border-radius: 14px;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
transform: translateY(-4px); transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(30, 60, 100, 0.12); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
} }
.score-card-inner { .score-card-inner {
@ -1010,48 +1009,48 @@ onBeforeUnmount(() => {
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: 50%; border-radius: 50%;
opacity: 0.12; opacity: 0.1;
} }
&.card-max { &.card-max {
border-color: rgba(236, 107, 143, 0.3); border-color: rgba(255, 107, 157, 0.25);
background: linear-gradient(135deg, rgba(236, 107, 143, 0.08), #f8fbff); background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(0, 20, 40, 0.6));
.score-decoration { .score-decoration {
background: linear-gradient(135deg, #ec6b8f, #e0557d); background: linear-gradient(135deg, #ff6b9d, #ff4777);
} }
&:hover { &:hover {
border-color: rgba(236, 107, 143, 0.45); border-color: rgba(255, 107, 157, 0.4);
box-shadow: 0 12px 32px rgba(236, 107, 143, 0.15); box-shadow: 0 12px 32px rgba(255, 107, 157, 0.15);
} }
} }
&.card-min { &.card-min {
border-color: rgba(30, 136, 229, 0.3); border-color: rgba(75, 207, 250, 0.25);
background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), #f8fbff); background: linear-gradient(135deg, rgba(75, 207, 250, 0.08), rgba(0, 20, 40, 0.6));
.score-decoration { .score-decoration {
background: linear-gradient(135deg, #1e88e5, #1976d2); background: linear-gradient(135deg, #4bcffa, #2db8e8);
} }
&:hover { &:hover {
border-color: rgba(30, 136, 229, 0.45); border-color: rgba(75, 207, 250, 0.4);
box-shadow: 0 12px 32px rgba(30, 136, 229, 0.15); box-shadow: 0 12px 32px rgba(75, 207, 250, 0.15);
} }
} }
&.card-avg { &.card-avg {
border-color: rgba(240, 168, 48, 0.3); border-color: rgba(255, 217, 61, 0.25);
background: linear-gradient(135deg, rgba(240, 168, 48, 0.08), #f8fbff); background: linear-gradient(135deg, rgba(255, 217, 61, 0.08), rgba(0, 20, 40, 0.6));
.score-decoration { .score-decoration {
background: linear-gradient(135deg, #f0a830, #d68f1a); background: linear-gradient(135deg, #ffd93d, #f5c800);
} }
&:hover { &:hover {
border-color: rgba(240, 168, 48, 0.45); border-color: rgba(255, 217, 61, 0.4);
box-shadow: 0 12px 32px rgba(240, 168, 48, 0.15); box-shadow: 0 12px 32px rgba(255, 217, 61, 0.15);
} }
} }
@ -1070,18 +1069,18 @@ onBeforeUnmount(() => {
} }
&.ind-max { &.ind-max {
background: linear-gradient(135deg, #ec6b8f, #e0557d); background: linear-gradient(135deg, #ff6b9d, #ff4777);
box-shadow: 0 4px 16px rgba(236, 107, 143, 0.35); box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
} }
&.ind-min { &.ind-min {
background: linear-gradient(135deg, #1e88e5, #1976d2); background: linear-gradient(135deg, #4bcffa, #2db8e8);
box-shadow: 0 4px 16px rgba(30, 136, 229, 0.35); box-shadow: 0 4px 16px rgba(75, 207, 250, 0.4);
} }
&.ind-avg { &.ind-avg {
background: linear-gradient(135deg, #f0a830, #d68f1a); background: linear-gradient(135deg, #ffd93d, #f5c800);
box-shadow: 0 4px 16px rgba(240, 168, 48, 0.35); box-shadow: 0 4px 16px rgba(255, 217, 61, 0.4);
} }
} }
@ -1092,7 +1091,7 @@ onBeforeUnmount(() => {
.score-name { .score-name {
font-size: 12px; font-size: 12px;
color: #5a7896; color: rgba(150, 200, 230, 0.8);
font-weight: 500; font-weight: 500;
} }
@ -1100,7 +1099,7 @@ onBeforeUnmount(() => {
font-size: 28px; font-size: 28px;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
background: linear-gradient(135deg, #1e3a5f, #2c4a6a); background: linear-gradient(135deg, #fff, #e8f7ff);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
@ -1108,7 +1107,7 @@ onBeforeUnmount(() => {
.score-unit { .score-unit {
font-size: 11px; font-size: 11px;
color: #6b85a3; color: rgba(150, 200, 230, 0.6);
margin-left: 2px; margin-left: 2px;
} }
} }

@ -287,32 +287,32 @@ onBeforeUnmount(() => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.task-review { display: grid; grid-template-columns: minmax(360px, 400px) minmax(0, 1fr); min-height: calc(100vh - 142px); border: 1px solid rgba(30, 136, 229, 0.12); border-radius: 14px; overflow: hidden; background: #ffffff; box-shadow: 0 8px 28px rgba(30, 60, 100, 0.08); } .task-review { display: grid; grid-template-columns: minmax(360px, 400px) minmax(0, 1fr); min-height: calc(100vh - 142px); border: 1px solid rgba(39, 172, 238, 0.28); border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, rgba(6, 23, 36, 0.84), rgba(4, 12, 23, 0.78)); box-shadow: 0 18px 48px rgba(0, 5, 16, 0.34), inset 0 1px 0 rgba(153, 220, 255, 0.08); }
.task-review__sidebar { min-width: 0; padding: 16px; border-right: 1px solid rgba(30, 136, 229, 0.1); overflow: auto; background: #f8fbff; } .task-review__sidebar { min-width: 0; padding: 16px; border-right: 1px solid rgba(54, 159, 212, 0.25); overflow: auto; background: rgba(2, 18, 31, 0.48); }
.task-review__filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid rgba(30, 136, 229, 0.15); border-radius: 10px; background: #f0f7ff; } .task-review__filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid rgba(44, 169, 226, 0.28); border-radius: 10px; background: rgba(2, 18, 31, 0.64); }
.task-review__filters :deep(.el-form-item) { margin-bottom: 0; } .task-review__filters :deep(.el-form-item) { margin-bottom: 0; }
.task-review__filters :deep(.el-select) { width: 100%; } .task-review__filters :deep(.el-select) { width: 100%; }
.task-review__list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; color: #1e3a5f; font-size: 16px; font-weight: 700; } .task-review__list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; color: #dff6ff; font-size: 16px; font-weight: 700; }
.task-review__score-input { width: 70px; } .task-review__score-input { width: 70px; }
.task-review__student-table { width: 100%; } .task-review__student-table { width: 100%; }
.task-review__student-table :deep(.cell) { padding: 0 6px; } .task-review__student-table :deep(.cell) { padding: 0 6px; }
.task-review__student-table :deep(th .cell) { white-space: nowrap; } .task-review__student-table :deep(th .cell) { white-space: nowrap; }
.task-review__readonly-tip { margin: 12px 0 0; color: #6b85a3; font-size: 12px; } .task-review__readonly-tip { margin: 12px 0 0; color: #9abed8; font-size: 12px; }
.task-review__content { min-width: 0; padding: 28px 34px; background: #ffffff; } .task-review__content { min-width: 0; padding: 28px 34px; background: linear-gradient(135deg, rgba(5, 25, 40, 0.58), rgba(3, 13, 24, 0.38)); }
.task-review__student-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 0 0 20px; border-bottom: 1px solid rgba(30, 136, 229, 0.12); } .task-review__student-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 0 0 20px; border-bottom: 1px solid rgba(54, 159, 212, 0.26); }
.task-review__student-head h2 { margin: 0; color: #1e3a5f; font-size: 24px; line-height: 1.25; } .task-review__student-head h2 { margin: 0; color: #eef9ff; font-size: 24px; line-height: 1.25; }
.task-review__student-head p { margin: 8px 0 0; color: #6b85a3; } .task-review__student-head p { margin: 8px 0 0; color: #9abed8; }
.task-review__scores { display: flex; gap: 10px; color: #6b85a3; font-size: 13px; white-space: nowrap; } .task-review__scores { display: flex; gap: 10px; color: #b9d9eb; font-size: 13px; white-space: nowrap; }
.task-review__scores span { padding: 7px 10px; border: 1px solid rgba(30, 136, 229, 0.2); border-radius: 999px; background: #e8f3fe; } .task-review__scores span { padding: 7px 10px; border: 1px solid rgba(50, 166, 223, 0.28); border-radius: 999px; background: rgba(2, 26, 43, 0.68); }
.task-review__scores strong { margin-left: 5px; color: #1565c0; font-size: 17px; } .task-review__scores strong { margin-left: 5px; color: #77d9ff; font-size: 17px; }
.task-review__student-preview-scroll { height: calc(100vh - 260px); min-height: 580px; margin-top: 22px; overflow: scroll; scrollbar-gutter: stable; scrollbar-color: #c9d8e8 #f0f7ff; border: 1px solid rgba(30, 136, 229, 0.15); border-radius: 10px; } .task-review__student-preview-scroll { height: calc(100vh - 260px); min-height: 580px; margin-top: 22px; overflow: scroll; scrollbar-gutter: stable; scrollbar-color: #238db8 #061724; border: 1px solid rgba(54, 159, 212, 0.32); border-radius: 10px; }
.task-review__student-preview-scroll::-webkit-scrollbar { width: 12px; height: 12px; } .task-review__student-preview-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.task-review__student-preview-scroll::-webkit-scrollbar-track { background: #f0f7ff; } .task-review__student-preview-scroll::-webkit-scrollbar-track { background: #061724; }
.task-review__student-preview-scroll::-webkit-scrollbar-thumb { border: 2px solid #f0f7ff; border-radius: 8px; background: #c9d8e8; } .task-review__student-preview-scroll::-webkit-scrollbar-thumb { border: 2px solid #061724; border-radius: 8px; background: #238db8; }
.task-review__student-preview { display: block; width: 100%; min-width: 1280px; min-height: 580px; border: 0; } .task-review__student-preview { display: block; width: 100%; min-width: 1280px; min-height: 580px; border: 0; }
.task-review__batch-copy { margin: 0 0 18px; color: #1e3a5f; } .task-review__batch-copy { margin: 0 0 18px; color: #dff6ff; }
.task-review__batch-input { width: 100%; } .task-review__batch-input { width: 100%; }
:deep(.task-review__selected-row > td) { background: rgba(30, 136, 229, 0.1) !important; } :deep(.task-review__selected-row > td) { background: rgba(0, 111, 177, 0.26) !important; }
@media (max-width: 1180px) { .task-review { grid-template-columns: 1fr; } .task-review__sidebar { border-right: 0; border-bottom: 1px solid rgba(30, 136, 229, 0.1); } } @media (max-width: 1180px) { .task-review { grid-template-columns: 1fr; } .task-review__sidebar { border-right: 0; border-bottom: 1px solid rgba(54, 159, 212, 0.25); } }
@media (max-width: 720px) { .task-review__filters { grid-template-columns: 1fr; } .task-review__content { padding: 22px 18px; } .task-review__student-head { flex-direction: column; } .task-review__scores { flex-wrap: wrap; white-space: normal; } } @media (max-width: 720px) { .task-review__filters { grid-template-columns: 1fr; } .task-review__content { padding: 22px 18px; } .task-review__student-head { flex-direction: column; } .task-review__scores { flex-wrap: wrap; white-space: normal; } }
</style> </style>

@ -97,25 +97,25 @@
<el-table-column label="操作" align="center" width="500"> <el-table-column label="操作" align="center" width="500">
<template #default="{ row }"> <template #default="{ row }">
<div class="action-group"> <div class="action-group">
<el-button type="primary" text @click="editSchool(row)"> <el-button type="primary" @click="editSchool(row)">
<el-icon> <el-icon>
<Edit /> <Edit />
</el-icon> </el-icon>
编辑 编辑
</el-button> </el-button>
<el-button type="danger" text @click="delSchool(row)"> <el-button type="danger" @click="delSchool(row)">
<el-icon> <el-icon>
<Delete /> <Delete />
</el-icon> </el-icon>
删除 删除
</el-button> </el-button>
<el-button type="success" text @click="initPassword(row, 0)"> <el-button type="success" @click="initPassword(row, 0)">
<el-icon> <el-icon>
<Lock /> <Lock />
</el-icon> </el-icon>
密码初始化 密码初始化
</el-button> </el-button>
<el-button type="warning" text @click="initPassword(row, 1)"> <el-button type="warning" @click="initPassword(row, 1)">
<el-icon> <el-icon>
<Refresh /> <Refresh />
</el-icon> </el-icon>

@ -38,9 +38,9 @@
v-loading="loading" v-loading="loading"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
:header-cell-style="{ :header-cell-style="{
color: '#1e3a5f', color: '#fff',
fontSize: '13px', fontSize: '14px',
backgroundColor: '#e3effb', backgroundColor: '#6A7DE9!important',
}" }"
> >
<el-table-column label="教师姓名" prop="name" align="center"></el-table-column> <el-table-column label="教师姓名" prop="name" align="center"></el-table-column>
@ -66,9 +66,11 @@
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template #default="{ row }"> <template #default="{ row }">
<template v-if="isManagerTeacher"> <template v-if="isManagerTeacher">
<el-button type="primary" text :disabled="row.hasCreatedClass" @click="editSchool(row)">编辑</el-button> <div class="action-btn-group">
<el-button type="danger" text :disabled="row.hasCreatedClass" @click="delSchool(row)">删除</el-button> <el-button type="primary" text :disabled="row.hasCreatedClass" @click="editSchool(row)">编辑</el-button>
<el-button type="warning" text @click="initializeTeacherPassword(row)">密码初始化</el-button> <el-button type="danger" text :disabled="row.hasCreatedClass" @click="delSchool(row)">删除</el-button>
<el-button type="warning" text @click="initializeTeacherPassword(row)">密码初始化</el-button>
</div>
<el-tag v-if="row.hasCreatedClass" type="warning" size="small">该教师已创建班级,不允许编辑或删除</el-tag> <el-tag v-if="row.hasCreatedClass" type="warning" size="small">该教师已创建班级,不允许编辑或删除</el-tag>
</template> </template>
<el-tag v-else type="info">仅查看</el-tag> <el-tag v-else type="info">仅查看</el-tag>
@ -352,22 +354,22 @@ onMounted(() => {
align-items: center; align-items: center;
min-height: 26px; min-height: 26px;
padding: 2px 10px; padding: 2px 10px;
color: #1565c0; color: #79dcff;
font-size: 12px; font-size: 12px;
line-height: 20px; line-height: 20px;
border: 1px solid rgba(30, 136, 229, 0.3); border: 1px solid rgba(55, 194, 255, 0.38);
border-radius: 999px; border-radius: 999px;
background: rgba(30, 136, 229, 0.1); background: rgba(15, 111, 164, 0.18);
} }
.empty-summary { .empty-summary {
color: #6b85a3; color: rgba(184, 218, 235, 0.58);
} }
.student-count { .student-count {
color: #1e3a5f; color: #63dcff;
font-size: 18px; font-size: 18px;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
small { small {
color: #6b85a3; color: rgba(210, 238, 248, 0.72);
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
} }

Loading…
Cancel
Save