上财教务系统成绩一键录入

通过上传Excel文件,自动读取并录入平时成绩和期末成绩,并一键保存。

作者
wyih
日安装量
0
总安装量
0
评分
0 0 0
版本
2025-06-24
创建于
2025-06-24
更新于
2025-06-24
大小
10.4 KB
许可证
MIT
适用于

中文说明

这是一个为上海财经大学(SUFE)教务系统设计的辅助脚本,旨在简化教师录入学生成绩的流程。通过本脚本,您可以告别繁琐的手动输入,一键从 Excel 文件导入学生的平时成绩和期末成绩,极大地提高了工作效率并减少了录入错误。

✨ 功能特性

  • 一键导入成绩: 在页面工具栏添加【导入Excel成绩】按钮,支持 .xlsx.xls 格式文件。
  • 智能匹配学生: 自动根据 Excel 表格中的“学号”列,精准匹配页面上的学生名单。
  • 自动填写分数: 自动读取 Excel 中的“平时”和“期末”成绩,并填入对应的输入框。
  • 自动计算总评: 成绩填入后,会自动触发页面的计算逻辑,实时显示总评成绩。
  • 便捷保存: 添加【保存成绩】按钮,一键触发页面的保存功能,无需手动点击。
  • 即时反馈: 导入完成后,会清晰地提示成功导入的学生数量,并在浏览器控制台(F12)中列出未找到的学号,方便核对。

📖 使用方法

  1. 安装插件: 确保您的浏览器(推荐 Chrome, Firefox, Edge)已安装 TampermonkeyViolentmonkey 插件。
  2. 安装脚本: 在 Greasy Fork 页面点击绿色的“安装此脚本”按钮。
  3. 准备 Excel 文件:

    • 必需列: 您的 Excel 文件中必须包含一个表头行
    • 关键字: 表头行中必须包含带有「学号」、「平时」和「期末」关键字的列。列的顺序和完整名称不限(例如,“平时成绩”和“平时”均可识别)。
    • 格式示例:

      序号 学号 姓名 ... 平时 期末 总评
      1 2024110123 张三 ... 96 89 ...
      2 2024110124 李四 ... 99 85 ...
  4. 导入与保存:

    • 访问上财教务系统成绩录入页面
    • 点击页面上方的【导入Excel成绩】按钮,选择您准备好的文件。
    • 脚本将自动填充成绩,请仔细核对
    • 确认无误后,点击【保存成绩】按钮即可完成提交。

⚠️ 注意事项

  • 数据安全: 本脚本完全在您的浏览器本地运行,不会收集或上传您的任何文件和数据,请放心使用。
  • 责任声明: 请务必在点击“保存成绩”前仔细核对自动填入的数据是否准确。对于因使用脚本或数据格式错误导致的任何问题,作者不承担任何责任。
  • 问题反馈: 如果您在使用中遇到任何问题或有改进建议,欢迎通过 Greasy Fork 的反馈功能留言。


English Description

This is a userscript designed for the Shanghai University of Finance and Economics (SUFE) EAMS to streamline the grade entry process for teachers. Instead of tedious manual input, you can import "usual scores" and "final scores" directly from an Excel file with one click, greatly improving efficiency and reducing errors.

✨ Features

  • One-Click Import: Adds an "Import Excel Grades" button to the toolbar, supporting .xlsx and .xls files.
  • Smart Matching: Automatically matches students on the page based on the "Student ID" column in your Excel file.
  • Auto-Fill Scores: Reads "usual" (平时) and "final" (期末) scores from Excel and fills them into the corresponding fields.
  • Auto-Calculate Total: Triggers the page's calculation logic after filling in scores to display the final grade.
  • Convenient Save: Adds a "Save Grades" button to trigger the page's native save function.
  • Instant Feedback: Provides a summary of successfully imported students and lists any unmatched Student IDs in the browser console (F12) for easy verification.

📖 How to Use

  1. Install Userscript Manager: Make sure you have Tampermonkey or Violentmonkey installed in your browser.
  2. Install This Script: Click the green "Install this script" button on this page.
  3. Prepare Excel File:
    • Required Columns: Your Excel sheet must have a header row.
    • Keywords: The header row must contain columns with keywords "学号" (Student ID), "平时" (Usual Score), and "期末" (Final Score). The order and full names of the columns do not matter.
  4. Import & Save:
    • Navigate to the SUFE grade entry page.
    • Click the "导入Excel成绩" (Import Excel Grades) button.
    • The script will auto-fill the grades. Please verify the data carefully.
    • Once confirmed, click the "保存成绩" (Save Grades) button to submit.

⚠️ Disclaimer

  • Data Security: This script runs entirely locally in your browser. It does not collect or upload any of your files or data.
  • Responsibility: You are responsible for verifying the accuracy of the data before saving. The author is not liable for any issues arising from the use of this script or incorrect data formats.
  • Feedback: If you encounter any issues or have suggestions, please leave a message on Greasy Fork.