切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
3cf493446787387f002d1007f7b65ef156400c72
2 个父辈
26eae9e5
c2efd87f
master
...
dev-pushdata
dev-tangxvhui
dev-zhengzhou
test
v1.3.2-fix
v1.4.0
v2.2.0-fix
20230410
20230403
20230331
20230324
20230315
20230203
20230112
20221208
20221205
v2.2.0
v2.0.0
v1.3.2
v1.3.2-fix
v1.3.1
v1.3.0
v1.2.4
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
显示空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
7 行增加
和
2 行删除
pkg/application/evaluation_project/project_service.go
pkg/domain/evaluation_template.go
pkg/port/beego/controllers/import_controller.go
pkg/application/evaluation_project/project_service.go
查看文件 @
3cf4934
...
...
@@ -396,12 +396,15 @@ func (rs *EvaluationProjectService) List(in *command.QueryProjectCommand) (inter
pmpUserIds
=
append
(
pmpUserIds
,
userId
)
}
// 当前时间超过截至时间显示【已结束】
// 如果是已启用状态时,当前时间超过截至时间显示【已结束】
if
project
.
State
==
domain
.
ProjectStateEnable
{
if
now
>
project
.
EndTime
.
Unix
()
{
project
.
State
=
domain
.
ProjectStateDisable
}
}
}
if
len
(
pmpUserIds
)
>
0
{
userRepository
:=
factory
.
CreateUserRepository
(
map
[
string
]
interface
{}{
"transactionContext"
:
transactionContext
})
_
,
users
,
_
:=
userRepository
.
Find
(
map
[
string
]
interface
{}{
"ids"
:
pmpUserIds
,
"limit"
:
len
(
pmpUserIds
)})
...
...
pkg/domain/evaluation_template.go
查看文件 @
3cf4934
...
...
@@ -27,6 +27,7 @@ const (
type
EntryItem
struct
{
Title
string
`json:"title" comment:"填写标题"`
HintText
string
`json:"hintText" comment:"文本内容提示"`
Definition
string
`json:"definition" comment:"定义"`
}
// NodeContent 评估内容
...
...
pkg/port/beego/controllers/import_controller.go
查看文件 @
3cf4934
...
...
@@ -107,7 +107,8 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf
target
:=
module
.
Target
[
i3
]
nc
.
EntryItems
=
append
(
nc
.
EntryItems
,
&
domain
.
EntryItem
{
Title
:
target
.
Task
,
// 输入型标题
HintText
:
target
.
Definition
,
// 输入项提示文本
HintText
:
""
,
// 输入项提示文本
Definition
:
target
.
Definition
,
//定义
})
}
// 没有任何输入项时,默认1个
...
...
请
注册
或
登录
后发表评论