|
@@ -54,6 +54,10 @@ class Index extends React.PureComponent {
|
|
|
title: '创建人',
|
|
|
dataIndex: 'description.createName'
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '最大执行时长',
|
|
|
+ dataIndex: 'options.maximumRunSeconds'
|
|
|
+ },
|
|
|
{
|
|
|
title: '创建时间',
|
|
|
dataIndex: 'createTime'
|
|
@@ -181,6 +185,7 @@ class Index extends React.PureComponent {
|
|
|
disableAutoCreate: record.options.disableAutoCreate,
|
|
|
disableAutoTrigger: record.options.disableAutoTrigger,
|
|
|
isExclusive: record.options.isExclusive,
|
|
|
+ maximumRunSeconds: get(record,"options.maximumRunSeconds"),
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -222,7 +227,7 @@ class Index extends React.PureComponent {
|
|
|
// 点击新建、编辑对话框的确定按钮的事件处理函数
|
|
|
onModalOk = (params) => {
|
|
|
|
|
|
- const { ruleName, targetName, value, description,projectName, disableAutoCreate, disableAutoTrigger, isExclusive,createTime,createName } = params;
|
|
|
+ const { ruleName, targetName, value, description,projectName, disableAutoCreate, disableAutoTrigger, isExclusive,createTime,createName ,maximumRunSeconds} = params;
|
|
|
if (!params.targetName && !params.ruleName) {
|
|
|
message.warning('名称必填')
|
|
|
return
|
|
@@ -243,8 +248,12 @@ class Index extends React.PureComponent {
|
|
|
message.warning('排他必填')
|
|
|
return
|
|
|
}
|
|
|
+ if (!params.maximumRunSeconds) {
|
|
|
+ message.warning('最大执行时长必填')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
- const payload = { targetName, ruleName, value, description,projectName, disableAutoCreate, disableAutoTrigger, isExclusive,createTime,createName }
|
|
|
+ const payload = { targetName, ruleName, value, description,projectName, disableAutoCreate, disableAutoTrigger, isExclusive , createTime , createName , maximumRunSeconds }
|
|
|
const type = !params.targetName ? 'tctemplate/_addItem' : 'tctemplate/_editItem'
|
|
|
this.props.dispatch({
|
|
|
type,
|