fix(权限完善):1.权限优化以下模块按钮查看权限全部归属超级管理员,只有职称角色未超级管理员用户才可以查看进入操作
deploy-hxtesting / build-and-deploy (push) Successful in 1m17s
deploy-hxtesting / build-and-deploy (push) Successful in 1m17s
1)如图一所示点击左下角个人信息弹出框中的“空间设置”、“成员管理“、”模型管理“、”全部设置“、”系统管理“ 2)点击进入”设置“页面中”空间“、”模型“、”发布集成“、”数据与扩展“、”系统管理“这几个大模块相关内容入口 2.成员管理页面增加一个字段”状态“:1-5 在职状态(试用/试用延期/正式/临时/实习)、6离职/7退休(顺便对数据进行清洗,工号首位带字母的都标记为离职其他都标记为正式) 3.检查各业务需求里所有选择员工相关都只能拉取选择正式员工!
This commit is contained in:
1 parent
b762deaf15
commit
7034d93256
49 files changed
+809
-130
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -415,12 +416,19 @@ func (t *XlsxTranslateTool) ingestOne(ctx context.Context, tenantID uint64, name
|
||||
if err := writer.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
reader := multipart.NewReader(&body, writer.FormDataContentType())
|
||||
form, err := reader.ReadForm(int64(len(data)) + 1<<20)
|
||||
// Parse through http.Request.ParseMultipartForm — the same battle-tested
|
||||
// path as the chat upload handler. multipart.NewReader().ReadForm()
|
||||
// fails on large binary parts with "bufio: buffer full" (a 62 MB
|
||||
// workbook overflows its fixed-size line buffer during boundary scan).
|
||||
req, err := http.NewRequest(http.MethodPost, "/", &body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
files := form.File["file"]
|
||||
req.Header.Set("Content-Type", writer.FormDataContentType())
|
||||
if err := req.ParseMultipartForm(32 << 20); err != nil {
|
||||
return fmt.Errorf("parse multipart form: %w", err)
|
||||
}
|
||||
files := req.MultipartForm.File["file"]
|
||||
if len(files) == 0 {
|
||||
return fmt.Errorf("multipart form has no file part")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user