|
@@ -48,6 +48,7 @@ class JobModal extends React.PureComponent {
|
|
|
<span style = {{ width:131}}>* 订阅类型</span>
|
|
|
<span style = {{ width:120}}>* 缓存类型-天</span>
|
|
|
<span style = {{ width:122}}>* 缓存类型-小时</span>
|
|
|
+ <span style = {{ width:122}}>* 缓存过期天数</span>
|
|
|
<span style = {{ width:120}}>* 操作</span>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -84,6 +85,10 @@ class JobModal extends React.PureComponent {
|
|
|
fieldsJson[index].cacheHour = e.target.checked
|
|
|
this.onParamsChange('fieldsJson', fieldsJson)
|
|
|
}} style={{ width: 120, marginRight: 10 }}>按小时缓存</Checkbox>
|
|
|
+ <Input value={f.expireDay} onChange={(e) => {
|
|
|
+ fieldsJson[index].expireDay = e.target.value
|
|
|
+ this.onParamsChange('fieldsJson', fieldsJson)
|
|
|
+ }} style={{ width: 100, marginRight: 10 }}/>
|
|
|
<Popconfirm title="确定要保存吗?" onConfirm={()=>this.clickSaveJob(index)}><Button type="primary" size="small" style={{ marginRight: 5 }} >保存</Button></Popconfirm>
|
|
|
<Popconfirm title="确定要删除吗?" onConfirm={()=>this.clickDeleteJob(index)}><Button type="danger" size="small">删除</Button></Popconfirm>
|
|
|
</div>)}
|
|
@@ -119,6 +124,7 @@ class JobModal extends React.PureComponent {
|
|
|
<span style = {{ width:195}}>* 查询名</span>
|
|
|
<span style = {{ width:195}}>* 唯一标识</span>
|
|
|
<span style = {{ width:195}}>* 定制规则名</span>
|
|
|
+ <span style = {{ width:195}}>* 缓存天数</span>
|
|
|
<span style = {{ width:195}}>* 操作</span>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -140,6 +146,10 @@ class JobModal extends React.PureComponent {
|
|
|
customJson[index].customRule = e.target.value
|
|
|
this.onParamsChange('customJson', customJson)
|
|
|
}} style={{ width: 188, marginRight: 10 }}/>
|
|
|
+ <Input value={f.expireDay} onChange={(e) => {
|
|
|
+ customJson[index].expireDay = e.target.value
|
|
|
+ this.onParamsChange('customJson', customJson)
|
|
|
+ }} style={{ width: 188, marginRight: 10 }}/>
|
|
|
<Popconfirm title="确定保存吗?"
|
|
|
onConfirm={() => this.clickSaveCustomJob(index)}><Button type="primary" size="small" style={{ marginRight: 5 }}>保存</Button>
|
|
|
</Popconfirm>
|