|
|
@ -8,7 +8,7 @@ import { Form, Button, Skeleton, Table, Pagination, SideSheet } from '@douyinfe/ |
|
|
|
import '../style.less' |
|
|
|
|
|
|
|
function DataQueryCkeck (props) { |
|
|
|
const { clientWidth, visible, onCancel, checkData, actions, dispatch } = props |
|
|
|
const { clientWidth, visible, onCancel, checkData, actions, dispatch, dataContinuityType } = props |
|
|
|
const { data: sectionData } = actions |
|
|
|
const [loading, setLoading] = useState(false); |
|
|
|
const [htmlCode, setHtmlCode] = useState(''); |
|
|
@ -28,7 +28,7 @@ function DataQueryCkeck (props) { |
|
|
|
|
|
|
|
return ( |
|
|
|
<SideSheet |
|
|
|
title={`${checkData?.alarmDataContinuityType?.name} ${moment(checkData.createTime).format('YYYY-MM-DD HH:mm:ss')}`} |
|
|
|
title={`${checkData?.alarmDataContinuityType?.name || dataContinuityType?.find(d => d.typeNumber == checkData.type)?.name} ${moment(checkData.createTime).format('YYYY-MM-DD HH:mm:ss')}`} |
|
|
|
visible={visible} |
|
|
|
onCancel={() => { |
|
|
|
onCancel() |
|
|
@ -50,11 +50,12 @@ function DataQueryCkeck (props) { |
|
|
|
} |
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
|
const { auth, global } = state; |
|
|
|
const { auth, global, dataContinuityType } = state; |
|
|
|
return { |
|
|
|
user: auth.user, |
|
|
|
actions: global.actions, |
|
|
|
clientWidth: global.clientWidth, |
|
|
|
dataContinuityType: dataContinuityType.data || [], |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|