数据核对、数据管理表格添加新显示字段,打印card添加新的信息显示

This commit is contained in:
Vectorune
2025-11-09 15:13:30 +08:00
parent 8f526240f9
commit 2984cb5c7a
7 changed files with 146 additions and 9 deletions

88
nginx配置文件.txt Normal file
View File

@ -0,0 +1,88 @@
server
{
listen 80;
server_name www.workload.hrbnu.club;
merge_slashes on; # 合并连续斜杠(默认开启,但显式声明更稳妥)
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/EFC/dist/build;
#CERT-APPLY-CHECK--START
# 用于SSL证书申请时的文件验证相关配置 -- 请勿删除
include /www/server/panel/vhost/nginx/well-known/www.workload.hrbnu.club.conf;
#CERT-APPLY-CHECK--END
#SSL-START SSL相关配置请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
#SSL-END
#ERROR-PAGE-START 错误页配置,可以注释、删除或修改
error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#PHP-INFO-START PHP引用配置可以注释或修改
include enable-php-80.conf;
#PHP-INFO-END
#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
include /www/server/panel/vhost/rewrite/www.workload.hrbnu.club.conf;
#REWRITE-END
#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
# 处理 history 模式路由:所有请求 fallback 到 index.html
location / {
try_files $uri /index.html;
index index.html;
}
#一键申请SSL证书验证目录相关设置
location ~ \.well-known{
allow all;
}
#禁止在证书验证目录放入敏感文件
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
# 代理后端API请求
# 所有以/api/开头的请求都会被代理到后端服务
location /api/ {
# 后端服务地址
proxy_pass http://43.138.83.20:10001;
# 代理相关设置
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 超时设置
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
# 允许客户端请求体大小
client_max_body_size 10M;
}
access_log /www/wwwlogs/www.workload.hrbnu.club.log;
error_log /www/wwwlogs/www.workload.hrbnu.club.error.log;
}

View File

@ -54,7 +54,7 @@ const DashboardMenuItems = [
{
key: `/generate-certificate`,
icon: <NotificationOutlined/>,
label: <NavLink to={'/generate-certificate'}>生成</NavLink>
label: <NavLink to={'/generate-certificate'}>生成</NavLink>
},
{
key: `settings`,

View File

@ -2,10 +2,17 @@ import {Space} from "antd";
import CourseTypeTag from "../../../../component/Workload/CourseTypeTag";
const CheckTableColumn = [
//{
// title: 'ID',
// dataIndex: 'id',
// key: 'id',
// responsive: ['lg'],
// render: (text) => <span key={text}>{text}</span>
//},
{
title: 'ID',
dataIndex: 'id',
key: 'id',
title: '学期',
dataIndex: 'semesterInfo',
key: 'semesterInfo',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
@ -36,6 +43,20 @@ const CheckTableColumn = [
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '学生数',
dataIndex: 'actualClassSize',
key: 'actualClassSize',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '授课对象',
dataIndex: 'teachingGrade',
key: 'teachingGrade',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '总学时',
dataIndex: 'totalClassHours',

View File

@ -121,6 +121,7 @@ const ImportDataDrawer = props => {
<Button icon={<UploadOutlined/>}>点击此处上传</Button>
</Upload>
</Form.Item>
<div style={{
textAlign: 'center',

View File

@ -2,10 +2,17 @@ import {Button, Space} from "antd";
import CourseTypeTag from "../../../component/Workload/CourseTypeTag";
const ManageTableColumn = (commonAxios, messageApi, fetchWorkload) => [
//{
// title: 'ID',
// dataIndex: 'id',
// key: 'id',
// responsive: ['lg'],
// render: (text) => <span key={text}>{text}</span>
//},
{
title: 'ID',
dataIndex: 'id',
key: 'id',
title: '学期',
dataIndex: 'semesterInfo',
key: 'semesterInfo',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
@ -36,6 +43,20 @@ const ManageTableColumn = (commonAxios, messageApi, fetchWorkload) => [
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '学生数',
dataIndex: 'actualClassSize',
key: 'actualClassSize',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '授课对象',
dataIndex: 'teachingGrade',
key: 'teachingGrade',
responsive: ['lg'],
render: (text) => <span key={text}>{text}</span>
},
{
title: '工作量',
dataIndex: 'totalClassHours',

View File

@ -56,6 +56,12 @@ function PrintRecordCard(props) {
<div>
<Text strong>教师工号: </Text><Text>{record.stuffNumber}</Text>
</div>
<div>
<Text strong>教师姓名: </Text><Text>{record.teacherName}</Text>
</div>
<div>
<Text strong>学院: </Text><Text>{record.college}</Text>
</div>
<div><Text strong>请求时间: </Text><Text>{DateFormater(record.requestTime)}</Text></div>
<div><Text
strong>生成时间: </Text><Text>{record.status === '02' ? DateFormater(record.madeTime) : 'N/A'}</Text>

View File

@ -97,8 +97,8 @@ const ParameterConfig = props => {
}
}}
options={[
{label: '本科课堂时证明', value: '01'},
{label: '任现职后工作情况证明', value: '02'}
{label: '哈尔滨师范大学本科课堂教学课时证明', value: '01'},
{label: '任现职、近五年完成教育教学工作情况(本科)', value: '02'}
]}
/>
</Form.Item>