提交 cb389d9c authored 作者: yujiejie's avatar yujiejie

管理员端下发任务已完善,后续修改学生端导师端页面细节

上级 e8ccb60c
...@@ -426,7 +426,7 @@ function initRadarChart() { ...@@ -426,7 +426,7 @@ function initRadarChart() {
<script src="pages-enterprise.js"></script> <script src="pages-enterprise.js"></script>
<script src="pages-school.js"></script> <script src="pages-school.js"></script>
<script> <script>
const ROLES = {student:{name:'学生端',pages:[{id:'student-dashboard',label:'学习首页'},{id:'student-resume',label:'上传简历'},{id:'student-bridge-preview',label:'衔接预习'},{id:'student-bridge-quiz',label:'衔接测验'},{id:'student-deploy-preview',label:'部署知识点'},{id:'student-deploy-quiz',label:'部署小测'},{id:'student-autodl',label:'AutoDL'},{id:'student-deploy-submit',label:'提交部署产物'},{id:'student-deploy-result',label:'部署作业详情'},{id:'student-projects',label:'AI推荐项目'},{id:'student-preview',label:'知识点预习'},{id:'student-quiz',label:'预习小测'},{id:'student-practice',label:'实操工作台'},{id:'student-report',label:'实操报告'},{id:'student-defense',label:'答辩申请'},{id:'student-entry',label:'入项申请'},{id:'student-archive',label:'成长档案'}]},mentor:{name:'导师端',pages:[{id:'mentor-dashboard',label:'导师首页'},{id:'mentor-students',label:'学员管理'},{id:'mentor-practice-review',label:'实操评审'},{id:'mentor-deploy-review',label:'部署验收'},{id:'mentor-autodl',label:'AutoDL 配置'},{id:'mentor-defense-review',label:'答辩评审'},{id:'mentor-entry-review',label:'入项审核'}]},admin:{name:'管理员端',pages:[{id:'admin-dashboard',label:'管理首页'},{id:'admin-projects',label:'项目库管理'},{id:'admin-difficulty',label:'难度校准'},{id:'admin-system-generator',label:'体系生成器'},{id:'admin-users',label:'用户列表'},{id:'admin-roles',label:'角色管理'},{id:'admin-permissions',label:'权限配置'},{id:'admin-departments',label:'部门管理'},{id:'admin-logs',label:'登录日志'},{id:'admin-monitoring',label:'系统监控'}]},enterprise:{name:'企业端',pages:[{id:'enterprise-dashboard',label:'总览首页'},{id:'enterprise-review',label:'学员审核台'},{id:'enterprise-records',label:'入项记录'},{id:'enterprise-stats',label:'统计报表'}]},school:{name:'院校教务端',pages:[{id:'school-dashboard',label:'工作台'},{id:'school-systems',label:'培训体系'},{id:'school-teaching',label:'教学管理'},{id:'school-students',label:'学生档案'},{id:'school-accounts',label:'账号管理'},{id:'school-business',label:'商业服务'}]}}; const ROLES = {student:{name:'学生端',pages:[{id:'student-dashboard',label:'学习首页'},{id:'student-resume',label:'上传简历'},{id:'student-bridge-preview',label:'衔接预习'},{id:'student-bridge-quiz',label:'衔接测验'},{id:'student-deploy-preview',label:'部署知识点'},{id:'student-deploy-quiz',label:'部署小测'},{id:'student-autodl',label:'AutoDL'},{id:'student-deploy-submit',label:'提交部署产物'},{id:'student-deploy-result',label:'部署作业详情'},{id:'student-projects',label:'AI推荐项目'},{id:'student-preview',label:'知识点预习'},{id:'student-quiz',label:'预习小测'},{id:'student-practice',label:'实操工作台'},{id:'student-report',label:'实操报告'},{id:'student-defense',label:'答辩申请'},{id:'student-entry',label:'入项申请'},{id:'student-archive',label:'成长档案'}]},mentor:{name:'导师端',pages:[{id:'mentor-dashboard',label:'导师首页'},{id:'mentor-students',label:'学员管理'},{id:'mentor-practice-review',label:'实操评审'},{id:'mentor-deploy-review',label:'部署验收'},{id:'mentor-autodl',label:'AutoDL 配置'},{id:'mentor-defense-review',label:'答辩评审'},{id:'mentor-entry-review',label:'入项审核'}]},admin:{name:'管理员端',pages:[{id:'admin-dashboard',label:'管理首页'},{id:'admin-projects',label:'项目库管理'},{id:'admin-difficulty',label:'难度校准'},{id:'admin-system-generator',label:'体系生成器'},{id:'admin-deploy-task',label:'阶段二任务下发'},{id:'admin-users',label:'用户列表'},{id:'admin-roles',label:'角色管理'},{id:'admin-permissions',label:'权限配置'},{id:'admin-departments',label:'部门管理'},{id:'admin-logs',label:'登录日志'},{id:'admin-monitoring',label:'系统监控'}]},enterprise:{name:'企业端',pages:[{id:'enterprise-dashboard',label:'总览首页'},{id:'enterprise-review',label:'学员审核台'},{id:'enterprise-records',label:'入项记录'},{id:'enterprise-stats',label:'统计报表'}]},school:{name:'院校教务端',pages:[{id:'school-dashboard',label:'工作台'},{id:'school-systems',label:'培训体系'},{id:'school-teaching',label:'教学管理'},{id:'school-students',label:'学生档案'},{id:'school-accounts',label:'账号管理'},{id:'school-business',label:'商业服务'}]}};
// Student state management // Student state management
var studentState = { var studentState = {
selectedProject: null, selectedProject: null,
......
差异被折叠。
...@@ -2405,6 +2405,9 @@ var autodlLeaseDraft = null; ...@@ -2405,6 +2405,9 @@ var autodlLeaseDraft = null;
var autodlLeaseEditId = null; var autodlLeaseEditId = null;
function getDeployTaskInfo() { function getDeployTaskInfo() {
if (typeof adminDeployTask !== 'undefined' && adminDeployTask && adminDeployTask.status === 'downloaded' && adminDeployTask.tasks) {
return adminDeployTask.tasks[studentState.deployTaskType] || adminDeployTask.tasks['text-model'] || DEPLOY_TASK_INFO[studentState.deployTaskType] || DEPLOY_TASK_INFO['text-model'];
}
return DEPLOY_TASK_INFO[studentState.deployTaskType] || DEPLOY_TASK_INFO['text-model']; return DEPLOY_TASK_INFO[studentState.deployTaskType] || DEPLOY_TASK_INFO['text-model'];
} }
...@@ -2661,8 +2664,8 @@ function clearAutodlLeaseData() { ...@@ -2661,8 +2664,8 @@ function clearAutodlLeaseData() {
renderContent(); renderContent();
} }
function buildDeployTaskSection() { function buildDeployTaskSection(taskOverride) {
var t = getDeployTaskInfo(); var t = taskOverride || getDeployTaskInfo();
var inst = t.instance; var inst = t.instance;
var apiRows = (t.apiChecks || []).map(function(c) { var apiRows = (t.apiChecks || []).map(function(c) {
var methodCls = c.method === 'GET' var methodCls = c.method === 'GET'
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论