|
|
@ -70,7 +70,7 @@ function ManagementTime(props) { |
|
|
|
title: `提示`, |
|
|
|
content: `是否确认删除选中的数据项?`, |
|
|
|
onOk: () => { |
|
|
|
ajax.getDelRuleLink({ids:[record.id]}).then((res) => { |
|
|
|
ajax.getDelRuleLink({ids:[record.id],rule_id:id}).then((res) => { |
|
|
|
if (res.status === 20000) { |
|
|
|
message.success('删除成功') |
|
|
|
tableRef.current.fetch(1,{}) |
|
|
@ -167,7 +167,7 @@ function ManagementTime(props) { |
|
|
|
title: `提示`, |
|
|
|
content: `是否确认删除选中的数据项?`, |
|
|
|
onOk: () => { |
|
|
|
ajax.getDelRuleLink({ids:tableSelectCheck}).then((res) => { |
|
|
|
ajax.getDelRuleLink({ids:tableSelectCheck,rule_id:id}).then((res) => { |
|
|
|
if (res.status === 20000) { |
|
|
|
message.success('删除成功') |
|
|
|
tableRef.current.fetch(1,{}) |
|
|
@ -191,7 +191,9 @@ function ManagementTime(props) { |
|
|
|
message.warning(`时间规则不可为空`); |
|
|
|
return |
|
|
|
} |
|
|
|
ajax.getRuleLinkAdd(rowData).then((res) => { |
|
|
|
let data = rowData |
|
|
|
data.rule_id=id |
|
|
|
ajax.getRuleLinkAdd(data).then((res) => { |
|
|
|
if (res.status === 20000) { |
|
|
|
setVisible(false); |
|
|
|
message.success("新增成功") |
|
|
|