|
|
@ -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() |
|
|
|
}) |
|
|
|