Browse Source

修正下发告警提示

master
dengyinhuan 2 years ago
parent
commit
3ff6663cf0
  1. 11
      web/client/src/sections/patrolManage/actions/yujingguanli.js
  2. 8
      web/client/src/sections/patrolManage/components/xiafagaojin.js

11
web/client/src/sections/patrolManage/actions/yujingguanli.js

@ -11,3 +11,14 @@ export function putxinxi (data) {
msg: { option: '发送信息' },
});
}
export function modifyPatrolRecordIssueHandle(id, params, msg) {
return (dispatch) => basicAction({
type: 'put',
data: params,
dispatch,
actionType: 'MODIFY_PatrolRecordIssueHandle_REPORT',
url: ApiTable.modifyPatrolRecordIssueHandle.replace('{id}', id),
msg: '',
});
}

8
web/client/src/sections/patrolManage/components/xiafagaojin.js

@ -1,7 +1,7 @@
import { Button, Form, Input, Modal, Select, DatePicker,Checkbox } from 'antd';
import { Button, Form, Input, Modal, Select, DatePicker,Checkbox, message } from 'antd';
import React, { useState, useEffect } from 'react';
import { connect } from 'react-redux';
import { createPatrolTemplate, delPatrolTemplate, updatePatrolTemplate, getPatrolTemplate } from '../actions/template';
import {modifyPatrolRecordIssueHandle} from '../actions/yujingguanli'
import {putxinxi} from '../actions/yujingguanli'
import moment from 'moment';
@ -37,10 +37,10 @@ const PlanModal = ({ visible, onCancel, dispatch, type, curRecord, tableRef, che
dispatch(putxinxi({phone:[params.name],email:[usedata[0]?.email],type:params.type})).then(res=>{
console.log(res,'res')
}).then(()=>{
dispatch(issueHandle.modifyPatrolRecordIssueHandle(curRecord?.patrolRecordIssueHandles[0]?.id,{
dispatch(modifyPatrolRecordIssueHandle(curRecord?.patrolRecordIssueHandles[0]?.id,{
isgaojing:true,
yujingshijian:moment().format('YYYY-MM-DD HH:mm:ss')
})),
})).then(()=>message.success('下发告警成功')),
onCancel();
onHandle()
})

Loading…
Cancel
Save