Compare commits

..

2 Commits

Author SHA1 Message Date
qinzhenpen c3b1e99267 Merge branch 'dev-QQq' of http://118.31.7.2:3000/chenyuan1/dianshang-qianduan into dev-QQq 2 days ago
qinzhenpen 4b20ea3d99 refactor: 统一项目名称为互联网产品开发实训系统并优化代码格式
- 替换所有文件中的项目名称“电商互联网产品开发实训系统”为“互联网产品开发实训系统”
- 优化多个文件的代码换行格式,提升可读
- 停用教师端和班级管理中院系/专业相关的旧逻辑
- 设计登录页ui
2 days ago

@ -7,7 +7,7 @@
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
###
# 页面标题
VITE_APP_TITLE = 电商互联网产品开发实训系统
VITE_APP_TITLE = 互联网产品开发实训系统
# 开发环境配置
VITE_APP_ENV = 'development'

@ -7,14 +7,14 @@
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
###
# 页面标题
VITE_APP_TITLE = 电商互联网产品开发实训系统
VITE_APP_TITLE = 互联网产品开发实训系统
# 生产环境配置
VITE_APP_ENV = 'production'
# 若依管理系统/生产环境
VITE_APP_BASE_API = '/'
VITE_APP_AI_API = 'https://whmnjy.sztzjy.com:8764/'
VITE_APP_BI_URL = 'https://dshlw.sztzjy.com:196'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
VITE_APP_BASE_API = '/'
VITE_APP_AI_API = 'https://whmnjy.sztzjy.com:8764/'
VITE_APP_BI_URL = 'https://dshlw.sztzjy.com:196'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip

@ -1,5 +1,5 @@
# 页面标题
VITE_APP_TITLE = 电商互联网产品开发实训系统
VITE_APP_TITLE = 互联网产品开发实训系统
# 生产环境配置
VITE_APP_ENV = 'staging'
@ -8,4 +8,4 @@ VITE_APP_ENV = 'staging'
VITE_APP_BASE_API = '/stage-api'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
VITE_BUILD_COMPRESS = gzip

1
.gitignore vendored

@ -12,6 +12,7 @@ selenium-debug.log
# Editor directories and files
.idea
.workbuddy
.cursor/
.vscode
*.suo

@ -1,4 +1,4 @@
# 电商互联网产品开发实训系统 - 项目认知
# 互联网产品开发实训系统 - 项目认知
> 本文件为 AI 助手提供项目上下文,每次新对话开始时会读取此文件。
@ -6,7 +6,7 @@
## 1. 项目基本信息
- **项目名称**:电商互联网产品开发实训系统
- **项目名称**:互联网产品开发实训系统
- **技术栈**:Vue 3 (Composition API) + Vite 3 + Element Plus 2.2.x + Pinia + Vue Router 4 + ECharts 5.4 + SCSS
- **基础框架**:RuoYi-Vue 3.8.6(若依前后端分离系统增强版)
- **项目路径**:`D:\TZ\dianshang-qianduan` 或 `d:\TZ\dianshang-qianduan`

@ -1,352 +1,363 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="icon" href="/favicon.ico" />
<title>互联网产品开发实训系统</title>
<!--[if lt IE 11]>
<script>
window.location.href = "/html/ie.html";
</script>
<![endif]-->
<style>
:root {
--ink: #06101f;
--panel: rgba(8, 30, 52, 0.82);
--line: rgba(80, 177, 214, 0.28);
--cyan: #53d6ff;
--mint: #8ff7d1;
--gold: #ffd978;
--text: #f3fbff;
--muted: #9fc1d8;
}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="/favicon.ico">
<title>电商互联网产品开发实训系统</title>
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
<style>
:root {
--ink: #06101f;
--panel: rgba(8, 30, 52, 0.82);
--line: rgba(80, 177, 214, 0.28);
--cyan: #53d6ff;
--mint: #8ff7d1;
--gold: #ffd978;
--text: #f3fbff;
--muted: #9fc1d8;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
#loading-wrapper {
position: relative;
display: grid;
place-items: center;
width: 100vw;
height: 100vh;
color: var(--text);
font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", sans-serif;
background:
linear-gradient(rgba(92, 192, 255, 0.08) 1px, transparent 1px),
linear-gradient(90deg, rgba(92, 192, 255, 0.08) 1px, transparent 1px),
radial-gradient(circle at 18% 18%, rgba(83, 214, 255, 0.14), transparent 28%),
radial-gradient(circle at 82% 72%, rgba(143, 247, 209, 0.1), transparent 30%),
linear-gradient(135deg, #071426 0%, #06101f 50%, #091827 100%);
background-size: 52px 52px, 52px 52px, auto, auto, auto;
}
#loading-wrapper::before,
#loading-wrapper::after {
position: absolute;
inset: 0;
content: "";
pointer-events: none;
}
#loading-wrapper::before {
background:
linear-gradient(120deg, transparent 0 22%, rgba(83, 214, 255, 0.14) 22.3%, transparent 22.8% 62%, rgba(255, 217, 120, 0.12) 62.3%, transparent 62.8%),
linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 36%, rgba(0, 0, 0, 0.2));
opacity: 0.75;
}
#loading-wrapper::after {
border: 1px solid rgba(83, 214, 255, 0.16);
box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}
.loading-shell {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 154px minmax(320px, 520px);
gap: 30px;
align-items: center;
max-width: min(820px, calc(100vw - 40px));
padding: 34px 38px;
border: 1px solid var(--line);
border-radius: 8px;
background:
linear-gradient(145deg, rgba(14, 42, 68, 0.92), rgba(6, 20, 38, 0.9)),
var(--panel);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
animation: shell-in 0.7s ease both;
}
.loading-mark {
position: relative;
width: 154px;
height: 154px;
overflow: hidden;
border: 1px solid rgba(83, 214, 255, 0.28);
border-radius: 8px;
background:
linear-gradient(90deg, transparent 23px, rgba(83, 214, 255, 0.11) 24px, transparent 25px),
linear-gradient(0deg, transparent 23px, rgba(83, 214, 255, 0.1) 24px, transparent 25px),
rgba(5, 22, 39, 0.9);
background-size: 25px 25px;
}
.learning-card {
position: absolute;
left: 27px;
top: 34px;
width: 100px;
height: 72px;
border: 1px solid rgba(143, 247, 209, 0.36);
border-radius: 6px;
background: linear-gradient(180deg, rgba(143, 247, 209, 0.18), rgba(83, 214, 255, 0.08));
box-shadow: 0 10px 28px rgba(83, 214, 255, 0.12);
animation: card-float 2.8s ease-in-out infinite;
}
.learning-card::before,
.learning-card::after {
position: absolute;
content: "";
}
.learning-card::before {
left: 15px;
top: 18px;
width: 70px;
height: 5px;
border-radius: 99px;
background: var(--mint);
box-shadow: 0 15px 0 rgba(211, 239, 255, 0.7), 0 30px 0 rgba(211, 239, 255, 0.42);
}
.learning-card::after {
right: -18px;
bottom: -18px;
width: 48px;
height: 48px;
border: 2px solid var(--gold);
border-left-color: transparent;
border-radius: 50%;
animation: spin 1.4s linear infinite;
}
.pulse-node {
position: absolute;
left: 22px;
bottom: 22px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--cyan);
box-shadow: 28px -8px 0 var(--gold), 58px 4px 0 var(--mint), 86px -18px 0 rgba(83, 214, 255, 0.72);
}
.pulse-node::before {
position: absolute;
left: -2px;
top: -2px;
width: 112px;
height: 36px;
content: "";
border-top: 1px solid rgba(83, 214, 255, 0.34);
border-right: 1px solid rgba(143, 247, 209, 0.26);
transform: skewX(-24deg);
}
.loading-copy {
min-width: 0;
}
.loading-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 10px;
border: 1px solid rgba(83, 214, 255, 0.32);
border-radius: 999px;
color: var(--mint);
font-size: 12px;
font-weight: 700;
background: rgba(83, 214, 255, 0.08);
}
.loading-eyebrow::before {
width: 7px;
height: 7px;
content: "";
border-radius: 50%;
background: var(--mint);
box-shadow: 0 0 14px var(--mint);
}
.loading-title {
margin: 16px 0 8px;
color: var(--text);
font-size: 30px;
font-weight: 800;
line-height: 1.2;
}
.loading-subtitle {
margin: 0;
color: var(--muted);
font-size: 14px;
line-height: 1.8;
}
.progress-track {
position: relative;
height: 8px;
margin: 26px 0 18px;
overflow: hidden;
border-radius: 999px;
background: rgba(143, 190, 214, 0.16);
}
.progress-track::before {
position: absolute;
inset: 0;
width: 44%;
content: "";
border-radius: inherit;
background: linear-gradient(90deg, var(--cyan), var(--mint), var(--gold));
animation: progress 1.8s ease-in-out infinite;
}
.loading-steps {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.loading-step {
padding: 10px 12px;
border: 1px solid rgba(83, 214, 255, 0.18);
border-radius: 8px;
color: #c8e5f5;
font-size: 13px;
background: rgba(3, 19, 34, 0.52);
}
.loading-step span {
display: block;
margin-bottom: 4px;
color: var(--mint);
font-size: 12px;
font-weight: 700;
}
@keyframes shell-in {
from {
opacity: 0;
transform: translateY(14px);
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
to {
opacity: 1;
transform: translateY(0);
#loading-wrapper {
position: relative;
display: grid;
place-items: center;
width: 100vw;
height: 100vh;
color: var(--text);
font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", sans-serif;
background: linear-gradient(rgba(92, 192, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 192, 255, 0.08) 1px, transparent 1px), radial-gradient(circle at 18% 18%, rgba(83, 214, 255, 0.14), transparent 28%), radial-gradient(circle at 82% 72%, rgba(143, 247, 209, 0.1), transparent 30%), linear-gradient(135deg, #071426 0%, #06101f 50%, #091827 100%);
background-size:
52px 52px,
52px 52px,
auto,
auto,
auto;
}
}
@keyframes card-float {
0%,
100% {
transform: translateY(0);
#loading-wrapper::before,
#loading-wrapper::after {
position: absolute;
inset: 0;
content: "";
pointer-events: none;
}
50% {
transform: translateY(-8px);
#loading-wrapper::before {
background: linear-gradient(120deg, transparent 0 22%, rgba(83, 214, 255, 0.14) 22.3%, transparent 22.8% 62%, rgba(255, 217, 120, 0.12) 62.3%, transparent 62.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 36%, rgba(0, 0, 0, 0.2));
opacity: 0.75;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
#loading-wrapper::after {
border: 1px solid rgba(83, 214, 255, 0.16);
box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}
}
@keyframes progress {
0% {
transform: translateX(-110%);
.loading-shell {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 154px minmax(320px, 520px);
gap: 30px;
align-items: center;
max-width: min(820px, calc(100vw - 40px));
padding: 34px 38px;
border: 1px solid var(--line);
border-radius: 8px;
background: linear-gradient(145deg, rgba(14, 42, 68, 0.92), rgba(6, 20, 38, 0.9)), var(--panel);
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.34),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
animation: shell-in 0.7s ease both;
}
55% {
transform: translateX(82%);
.loading-mark {
position: relative;
width: 154px;
height: 154px;
overflow: hidden;
border: 1px solid rgba(83, 214, 255, 0.28);
border-radius: 8px;
background: linear-gradient(90deg, transparent 23px, rgba(83, 214, 255, 0.11) 24px, transparent 25px), linear-gradient(0deg, transparent 23px, rgba(83, 214, 255, 0.1) 24px, transparent 25px), rgba(5, 22, 39, 0.9);
background-size: 25px 25px;
}
100% {
transform: translateX(240%);
.learning-card {
position: absolute;
left: 27px;
top: 34px;
width: 100px;
height: 72px;
border: 1px solid rgba(143, 247, 209, 0.36);
border-radius: 6px;
background: linear-gradient(180deg, rgba(143, 247, 209, 0.18), rgba(83, 214, 255, 0.08));
box-shadow: 0 10px 28px rgba(83, 214, 255, 0.12);
animation: card-float 2.8s ease-in-out infinite;
}
}
@media (max-width: 720px) {
.loading-shell {
grid-template-columns: 1fr;
gap: 22px;
padding: 26px;
.learning-card::before,
.learning-card::after {
position: absolute;
content: "";
}
.loading-mark {
width: 132px;
height: 132px;
.learning-card::before {
left: 15px;
top: 18px;
width: 70px;
height: 5px;
border-radius: 99px;
background: var(--mint);
box-shadow:
0 15px 0 rgba(211, 239, 255, 0.7),
0 30px 0 rgba(211, 239, 255, 0.42);
}
.learning-card {
left: 16px;
top: 26px;
.learning-card::after {
right: -18px;
bottom: -18px;
width: 48px;
height: 48px;
border: 2px solid var(--gold);
border-left-color: transparent;
border-radius: 50%;
animation: spin 1.4s linear infinite;
}
.pulse-node {
position: absolute;
left: 22px;
bottom: 22px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--cyan);
box-shadow:
28px -8px 0 var(--gold),
58px 4px 0 var(--mint),
86px -18px 0 rgba(83, 214, 255, 0.72);
}
.pulse-node::before {
position: absolute;
left: -2px;
top: -2px;
width: 112px;
height: 36px;
content: "";
border-top: 1px solid rgba(83, 214, 255, 0.34);
border-right: 1px solid rgba(143, 247, 209, 0.26);
transform: skewX(-24deg);
}
.loading-copy {
min-width: 0;
}
.loading-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 10px;
border: 1px solid rgba(83, 214, 255, 0.32);
border-radius: 999px;
color: var(--mint);
font-size: 12px;
font-weight: 700;
background: rgba(83, 214, 255, 0.08);
}
.loading-eyebrow::before {
width: 7px;
height: 7px;
content: "";
border-radius: 50%;
background: var(--mint);
box-shadow: 0 0 14px var(--mint);
}
.loading-title {
font-size: 24px;
margin: 16px 0 8px;
color: var(--text);
font-size: 30px;
font-weight: 800;
line-height: 1.2;
}
.loading-subtitle {
margin: 0;
color: var(--muted);
font-size: 14px;
line-height: 1.8;
}
.progress-track {
position: relative;
height: 8px;
margin: 26px 0 18px;
overflow: hidden;
border-radius: 999px;
background: rgba(143, 190, 214, 0.16);
}
.progress-track::before {
position: absolute;
inset: 0;
width: 44%;
content: "";
border-radius: inherit;
background: linear-gradient(90deg, var(--cyan), var(--mint), var(--gold));
animation: progress 1.8s ease-in-out infinite;
}
.loading-steps {
grid-template-columns: 1fr;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
.loading-step {
padding: 10px 12px;
border: 1px solid rgba(83, 214, 255, 0.18);
border-radius: 8px;
color: #c8e5f5;
font-size: 13px;
background: rgba(3, 19, 34, 0.52);
}
}
</style>
</head>
<body>
<div id="app">
<div id="loading-wrapper">
<div class="loading-shell" role="status" aria-live="polite">
<div class="loading-mark" aria-hidden="true">
<div class="learning-card"></div>
<div class="pulse-node"></div>
</div>
<div class="loading-copy">
<div class="loading-eyebrow">Teaching Lab System</div>
<h1 class="loading-title">正在初始化教学环境</h1>
<p class="loading-subtitle">正在同步课程资源、实训数据与学习进度,请稍候。</p>
<div class="progress-track" aria-hidden="true"></div>
<div class="loading-steps" aria-hidden="true">
<div class="loading-step"><span>01</span>课程资源</div>
<div class="loading-step"><span>02</span>实训任务</div>
<div class="loading-step"><span>03</span>学习数据</div>
.loading-step span {
display: block;
margin-bottom: 4px;
color: var(--mint);
font-size: 12px;
font-weight: 700;
}
@keyframes shell-in {
from {
opacity: 0;
transform: translateY(14px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes card-float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes progress {
0% {
transform: translateX(-110%);
}
55% {
transform: translateX(82%);
}
100% {
transform: translateX(240%);
}
}
@media (max-width: 720px) {
.loading-shell {
grid-template-columns: 1fr;
gap: 22px;
padding: 26px;
}
.loading-mark {
width: 132px;
height: 132px;
}
.learning-card {
left: 16px;
top: 26px;
}
.loading-title {
font-size: 24px;
}
.loading-steps {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
}
}
</style>
</head>
<body>
<div id="app">
<div id="loading-wrapper">
<div class="loading-shell" role="status" aria-live="polite">
<div class="loading-mark" aria-hidden="true">
<div class="learning-card"></div>
<div class="pulse-node"></div>
</div>
<div class="loading-copy">
<div class="loading-eyebrow">Teaching Lab System</div>
<h1 class="loading-title">正在初始化教学环境</h1>
<p class="loading-subtitle">正在同步课程资源、实训数据与学习进度,请稍候。</p>
<div class="progress-track" aria-hidden="true"></div>
<div class="loading-steps" aria-hidden="true">
<div class="loading-step">
<span>01</span>
课程资源
</div>
<div class="loading-step">
<span>02</span>
实训任务
</div>
<div class="loading-step">
<span>03</span>
学习数据
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
<script type="module" src="/src/main.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -36,7 +36,7 @@
<template v-if="item.title == stopActive">
<div :class="['stop-item', { 'info-title-completedSteps': childs.isTemplateBased }, { 'info-title-completedSteps-disdabled': !isTaskEnabled(item.child, idx) }]"
v-for="(childs, idx) in item.child" :key="childs" @click="onClick(childs, idx)">{{
childs.name }}</div>
childs.name }}</div>
</template>
</template>
</div>
@ -753,7 +753,7 @@ const onClick = (type, idx) => {
if (!type?.isTemplateBased) {
let arr = ["课程知识点", "核心知识点", "最难的部分", "实务知识概述", "学习建议", "业务现状", "理论研究", "发展趋势"]
if (arr.includes(type.name)) {
inputMessage.value = type.com.replace("xxx", "电商互联网产品开发实训系统")
inputMessage.value = type.com.replace("xxx", "互联网产品开发实训系统")
} else {
inputMessage.value = type.com
}
@ -908,7 +908,7 @@ onUnmounted(() => {
if (resizeObserver) {
resizeObserver.disconnect()
}
});
})
</script>
<style lang="scss">
.index {

@ -7,13 +7,13 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="content">电商互联网产品开发实训系统</div>
<div class="content">互联网产品开发实训系统</div>
</template>
<script setup></script>
<style lang="scss" scoped>
.content{
.content {
color: #fff;
}
</style>

File diff suppressed because it is too large Load Diff

@ -157,6 +157,10 @@
<el-form-item label="班级名称" prop="className">
<el-input v-model="formInline.className" placeholder="请输入班级名称" class="form-control" />
</el-form-item>
<!-- 2026-10-12 停用:新增班级弹窗的「名单创建」(导入名单创建 + 模板下载)。
教学班改为通过「来源行政班」+ 班级名称直接创建。恢复时打开下面注释即可,
并同步启用 importCreateUploadData / beforeImportCreate / uploadImportCreate /
handleImportCreateSuccess / downloadTeachingClassImportTemplate。
<el-form-item v-if="activeClassType === 'TEACHING' && isCreate" label="名单创建">
<div class="import-create-actions">
<el-upload action="/api/user/uploadTeachingClassByStudentMembers" :data="importCreateUploadData"
@ -177,6 +181,7 @@
</el-button>
</div>
</el-form-item>
-->
</el-form>
<template #footer>
<span class="dialog-footers">
@ -362,6 +367,7 @@ const adminClassOptions = computed(() => {
})
})
/* 2026-10-12 停用:名单创建上传参数(配合弹窗「名单创建」一起下线)
const importCreateUploadData = computed(() => ({
schoolId: currentSchoolId.value,
schoolFacultyId: formInline.value.schoolFacultyId,
@ -370,6 +376,7 @@ const importCreateUploadData = computed(() => ({
operatorId: currentUserId.value,
sourceClassIds: sourceAdminClassIds.value.join(","),
}))
*/
const memberUploadData = computed(() => ({
teachingClassId: selectedTeachingClass.value?.schoolClassId || "",
@ -545,6 +552,7 @@ function submitForm() {
})
}
/* 2026-10-12 停用:名单创建导入(导入名单创建按钮的配套逻辑,仅该按钮使用)
async function beforeImportCreate(file) {
if (activeClassType.value !== "TEACHING") {
proxy.$message.warning("请切换到教学班")
@ -611,6 +619,7 @@ function handleImportCreateSuccess(res) {
getList()
refreshAllClassList()
}
*/
function openMemberDialog(schoolClass) {
selectedTeachingClass.value = schoolClass
@ -767,6 +776,7 @@ async function downloadMemberImportTemplate() {
XLSX.writeFile(workbook, "教学班成员导入模板.xlsx")
}
/* 2026-10-12 停用:名单创建模板下载(仅新增班级弹窗「模板下载」按钮使用)
async function downloadTeachingClassImportTemplate() {
const XLSX = await import("xlsx")
const templateSheet = XLSX.utils.aoa_to_sheet([
@ -781,6 +791,7 @@ async function downloadTeachingClassImportTemplate() {
XLSX.utils.book_append_sheet(workbook, guideSheet, "填写说明")
XLSX.writeFile(workbook, "教学班名单创建模板.xlsx")
}
*/
function deleteClass(id) {
ElMessageBox.confirm("确定删除该班级吗?", "提示", {

@ -143,6 +143,8 @@
@close="onClose">
<el-form :model="formInline" class="demo-form-inline" ref="formInlineref" label-width="100px"
style="width: 80%" :rules="rules">
<!-- 2026-10-12 停用:所属院系 / 所属专业的下拉选择(新增教师不再选择院系与专业)。
原始代码保留备用;恢复时打开下面这段注释,并删掉其后两个只读 el-form-item。
<el-form-item v-if="status || isOrganizationManagementEnabled" label="所属院系:" prop="schoolFacultyId">
<el-select v-model="formInline.schoolFacultyId" placeholder="" clearable @change="getMajorList"
style="width: 20rem" v-if="status">
@ -160,6 +162,14 @@
<el-input v-else v-model="classInfo.value" placeholder="请输入所属专业:" style="width: 20rem"
disabled></el-input>
</el-form-item>
-->
<!-- 新增教师(status=true)不再展示院系/专业;编辑教师(status=false)仍保留只读展示 -->
<el-form-item v-if="!status && isOrganizationManagementEnabled" label="所属院系:" prop="schoolFacultyId">
<el-input v-model="classInfo.name" style="width: 20rem" disabled></el-input>
</el-form-item>
<el-form-item v-if="!status && isOrganizationManagementEnabled" label="所属专业:" prop="schoolMajorId">
<el-input v-model="classInfo.value" style="width: 20rem" disabled></el-input>
</el-form-item>
<el-form-item label="教师姓名:" prop="name">
<el-input v-model="formInline.name" style="width: 20rem" placeholder=""></el-input>
</el-form-item>
@ -285,7 +295,9 @@ const editSchool = (row) => {
})
}
const add = () => {
formInline.value.schoolMajorName = majorList.value?.filter((item) => item.schoolMajorId == formInline.value.schoolMajorId)[0].schoolMajorName
// 院系/专业下拉停用后 schoolMajorId 可能为空,取不到专业名时不能抛错
const matchedMajor = (majorList.value || []).find((item) => item.schoolMajorId == formInline.value.schoolMajorId)
if (matchedMajor) formInline.value.schoolMajorName = matchedMajor.schoolMajorName
formInline.value.operatorId = currentUserId.value
indexApi.addTeacher(formInline.value).then((res) => {
proxy.$message.success("添加成功")

Loading…
Cancel
Save