切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郑周
2 years ago
提交
5e61dfec4cdbd3bb60cb3dc5d91e6ff19fa2d1a5
1 个父辈
82f81c50
1. 更新模板文件 增加一列指标类型
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
pkg/domain/performance_application_form.go
pkg/domain/performance_application_form.go
查看文件 @
5e61dfe
...
...
@@ -39,7 +39,7 @@ type PerformanceTarget struct {
func
LoadPerformanceDimensions
(
rows
[][]
string
)
([]
*
PerformanceDimension
,
error
)
{
formRows
:=
make
([]
*
PerformanceApplicationForm
,
0
)
var
dimensionName
,
moduleName
,
taskName
,
weightName
,
standardName
,
evaluator
string
var
dimensionName
,
moduleName
,
taskName
,
weightName
,
standardName
,
evaluator
,
indicatorType
string
required
:=
"是"
for
key
,
item
:=
range
rows
{
if
key
<
3
{
...
...
@@ -99,6 +99,12 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error)
}
form
.
Evaluator
=
evaluator
// 指标类型
if
len
(
item
)
>
11
&&
item
[
11
]
!=
""
{
indicatorType
=
strings
.
TrimSpace
(
item
[
11
])
}
form
.
IndicatorType
=
indicatorType
formRows
=
append
(
formRows
,
form
)
}
dimensions
:=
make
([]
*
PerformanceDimension
,
0
)
...
...
请
注册
或
登录
后发表评论