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