From 3ff6663cf0dc018bb768836b18e55706372fd03a Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Tue, 14 Mar 2023 13:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=8B=E5=8F=91=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/patrolManage/actions/yujingguanli.js | 11 +++++++++++ .../sections/patrolManage/components/xiafagaojin.js | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/web/client/src/sections/patrolManage/actions/yujingguanli.js b/web/client/src/sections/patrolManage/actions/yujingguanli.js index 2ed6a3f..e24fbb0 100644 --- a/web/client/src/sections/patrolManage/actions/yujingguanli.js +++ b/web/client/src/sections/patrolManage/actions/yujingguanli.js @@ -10,4 +10,15 @@ export function putxinxi (data) { url: ApiTable.yujingguanli, 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: '', + }); } \ No newline at end of file diff --git a/web/client/src/sections/patrolManage/components/xiafagaojin.js b/web/client/src/sections/patrolManage/components/xiafagaojin.js index bdcf527..516570a 100644 --- a/web/client/src/sections/patrolManage/components/xiafagaojin.js +++ b/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() })