Open
Conversation
140534d to
bb56f56
Compare
Anna-shine
reviewed
Jan 26, 2026
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
Anna-shine
reviewed
Jan 26, 2026
bb56f56 to
61e0d55
Compare
Anna-shine
reviewed
Jan 26, 2026
61e0d55 to
1ced507
Compare
e34605c to
7167ea2
Compare
Anna-shine
reviewed
Mar 9, 2026
a30d5ac to
d6dbb00
Compare
Anna-shine
reviewed
Mar 12, 2026
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
| } | ||
| if err = t.GetExcel().AddValidation(t.GetObjID(), | ||
| &excel.ValidationParam{Type: excel.Bool, Sqref: sqref, Option: property.Name}); err != nil { | ||
| &excel.ValidationParam{Type: excel.Bool, Sqref: sqref, Option: HandleDDE(property.Name)}); err != nil { |
Collaborator
There was a problem hiding this comment.
bool类型的Option没看到有使用的地方,可以去掉
Contributor
Author
There was a problem hiding this comment.
此处是对property.Name进行处理
创建字段名时 并没有限制不以特殊字符(如=)开头
此时导出xlsx文件仍会有DDE问题
Collaborator
There was a problem hiding this comment.
你自己看一下这个参数的逻辑,这个参数根本就没有用,直接删掉,不要做多余的改动
src/web_server/service/excel/operator/inst/exporter/inst_func.go
Outdated
Show resolved
Hide resolved
src/web_server/service/excel/operator/inst/exporter/tmpl_operator.go
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复的问题:
###方案
1.xlsx 根据字段类型指定单元格格式
2.特殊字符 '=', '+', '-', '@' 前添加 '