feat: 1. 完善评查点分组的删除逻辑,会涉及文档类型绑定的一级分组,分组绑定的评查点规则。新增一个评查点分组换绑的。

2. 修复交叉评查的任务中的文档列表的历史文档的查看跳转路径。
3. 修复评查点新增中评查点类型只能显示当前文档类型绑定的这几个一级分组。评查点类型=一级分组。
4. 修复文档列表关于pdf的下载失败的问题。
This commit is contained in:
2025-12-19 00:21:49 +08:00
parent 38f17fb3ed
commit 616f059f1e
14 changed files with 626 additions and 117 deletions
+27 -27
View File
@@ -1,32 +1,32 @@
# 基于 state 参数端口分发的 OAuth2 回调配置
# 1. 端口白名单映射(只允许指定端口)
map $arg_state $target_port {
default "";
~^login(51703)_ 51703;
~^login(51704)_ 51704;
~^login(51705)_ 51705;
~^login(51706)_ 51706;
~^login(51707)_ 51707;
~^login(51708)_ 51708;
}
# # 1. 端口白名单映射(只允许指定端口)
# map $arg_state $target_port {
# default "";
# ~^login(51703)_ 51703;
# ~^login(51704)_ 51704;
# ~^login(51705)_ 51705;
# ~^login(51706)_ 51706;
# ~^login(51707)_ 51707;
# ~^login(51708)_ 51708;
# }
# 2. 统一回调入口,根据 state 分发到对应端口
server {
listen 80;
server_name 10.79.97.17;
# # 2. 统一回调入口,根据 state 分发到对应端口
# server {
# listen 80;
# server_name 10.79.97.17;
location /callback {
# 未匹配到允许端口直接返回 400
if ($target_port = "") {
return 400 "Invalid or unsupported state/port";
}
# location /callback {
# # 未匹配到允许端口直接返回 400
# if ($target_port = "") {
# return 400 "Invalid or unsupported state/port";
# }
# 反向代理到本地对应端口的 /callback
proxy_pass http://10.79.97.17:$target_port/callback$is_args$args;
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;
}
}
# # 反向代理到本地对应端口的 /callback
# proxy_pass http://10.79.97.17:$target_port/callback$is_args$args;
# 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;
# }
# }
+22 -22
View File
@@ -1,28 +1,28 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
# user nginx;
# worker_processes auto;
# error_log /var/log/nginx/error.log notice;
# pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
# events {
# worker_connections 1024;
# }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# http {
# include /etc/nginx/mime.types;
# default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
# log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
# access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# sendfile on;
# tcp_nopush on;
# tcp_nodelay on;
# keepalive_timeout 65;
# types_hash_max_size 2048;
# 包含conf.d目录中的配置文件
include /etc/nginx/conf.d/*.conf;
}
# # 包含conf.d目录中的配置文件
# include /etc/nginx/conf.d/*.conf;
# }