|
@@ -78,10 +78,12 @@ class JobModal extends React.PureComponent {
|
|
|
<Select.Option value={2}>变量增加</Select.Option>
|
|
|
</Select>
|
|
|
<Checkbox checked={fieldsJson[index].cacheDay === 1} onChange={(e) => {
|
|
|
+ console.log("==day")
|
|
|
fieldsJson[index].cacheDay = e.target.checked
|
|
|
this.onParamsChange('fieldsJson', fieldsJson)
|
|
|
}} style={{ width: 120, marginRight: 10 }}>按天缓存</Checkbox>
|
|
|
<Checkbox checked={fieldsJson[index].cacheHour === 1} onChange={(e) => {
|
|
|
+ console.log("==hour")
|
|
|
fieldsJson[index].cacheHour = e.target.checked
|
|
|
this.onParamsChange('fieldsJson', fieldsJson)
|
|
|
}} style={{ width: 120, marginRight: 10 }}>按小时缓存</Checkbox>
|
|
@@ -98,7 +100,7 @@ class JobModal extends React.PureComponent {
|
|
|
clickSaveJob = (index) => () => {
|
|
|
const { params } = this.state
|
|
|
const { fieldsJson } = params
|
|
|
- const type = 'template/_editSubJobItem'
|
|
|
+ const type = 'subscribetpl/_editSubJobItem'
|
|
|
console.log(params)
|
|
|
fieldsJson[index].sid = params.id
|
|
|
this.props.dispatch({
|
|
@@ -119,7 +121,6 @@ class JobModal extends React.PureComponent {
|
|
|
fieldsJson
|
|
|
}
|
|
|
})
|
|
|
- this.refresh()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -128,7 +129,7 @@ class JobModal extends React.PureComponent {
|
|
|
clickDeleteJob = (index) => () => {
|
|
|
const { params } = this.state
|
|
|
const { fieldsJson } = params
|
|
|
- const type = 'template/_deleteSubJobItem'
|
|
|
+ const type = 'subscribetpl/_deleteSubJobItem'
|
|
|
console.log(index)
|
|
|
this.props.dispatch({
|
|
|
type,
|
|
@@ -145,7 +146,6 @@ class JobModal extends React.PureComponent {
|
|
|
fieldsJson
|
|
|
}
|
|
|
})
|
|
|
- this.refresh()
|
|
|
}
|
|
|
}
|
|
|
})
|