diff --git a/web/client/src/sections/service/components/pushModal.jsx b/web/client/src/sections/service/components/pushModal.jsx index d271001..823a436 100644 --- a/web/client/src/sections/service/components/pushModal.jsx +++ b/web/client/src/sections/service/components/pushModal.jsx @@ -123,6 +123,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ pushId: editObj.id, ...obj, msg: '编辑推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else { Notification.error({ content: '即时推送时间不能大于1440分钟', @@ -153,6 +158,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ pushId: editObj.id, ...obj, msg: '编辑推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else { Notification.error({ content: '持续时长推送时间不能大于1440分钟', @@ -183,6 +193,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ pushId: editObj.id, ...obj, msg: '编辑推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else if (obj.interval3 <= 720 && obj.deviceProportion > 100) { Notification.error({ content: '异常率推送异常率不能超过100%', @@ -224,11 +239,6 @@ function pushModal (props) { }) } } - dispatch(service.postPush({ pushId: editObj.id, ...obj, msg: '编辑推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 - if (res.success) { - close(); - } - }) } else { let obj = JSON.parse(JSON.stringify(values)) @@ -247,6 +257,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ ...obj, msg: '新增推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else { Notification.error({ content: '即时推送时间不能大于1440分钟', @@ -277,6 +292,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ ...obj, msg: '新增推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else { Notification.error({ content: '持续时长推送时间不能大于1440分钟', @@ -307,6 +327,11 @@ function pushModal (props) { delete obj.interval2 delete obj.interval3 delete obj.deviceProportion + dispatch(service.postPush({ ...obj, msg: '新增推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 + if (res.success) { + close(); + } + }) } else if (obj.interval3 <= 720 && obj.deviceProportion > 100) { Notification.error({ content: '异常率推送异常率不能超过100%', @@ -348,11 +373,6 @@ function pushModal (props) { }) } } - dispatch(service.postPush({ ...obj, msg: '新增推送配置' })).then((res) => {//获取项企(PEP)全部部门及其下用户 - if (res.success) { - close(); - } - }) } }) } @@ -414,6 +434,8 @@ function pushModal (props) { { ] function expandRowRender (record, index) { return ( -
+
结构物: { record.structure?.map((item, index) => { return ( -
+ {item.name} -
+ ) }) } @@ -558,20 +561,17 @@ const EmPush = (props) => { placeholder="请输入或选择关键词" /> - 数据中断 - 数据异常 - 策略命中 - 视频异常 - 应用异常 - 设备异常 + 即时推送机制 + 持续时长推送机制 + 异常率推送机制