|
|
@ -8,7 +8,7 @@ import './videoPlay.less'; |
|
|
|
|
|
|
|
const timeFormat = 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
|
|
const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name, showTime, histroyTime,content }) => { |
|
|
|
const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name, showTime, histroyTime,content,roll }) => { |
|
|
|
const time = useRef(moment(showTime || undefined)) |
|
|
|
const upTimeInterval = useRef(null) |
|
|
|
const [showTime_, setShowTime] = useState(' ') |
|
|
@ -54,35 +54,38 @@ const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name, |
|
|
|
}, [showTime]) |
|
|
|
|
|
|
|
return ( |
|
|
|
<div style={{ |
|
|
|
height: 42, lineHeight: '42px', background: '#00000026', |
|
|
|
position: 'absolute', width: '100%', zIndex: 99, |
|
|
|
color: '#fff' |
|
|
|
}}> |
|
|
|
<Row> |
|
|
|
<Col span={9} style={{ |
|
|
|
backgroundImage: 'url(/assets/images/background/videoPlayBg.png)', |
|
|
|
backgroundSize: '100% 100%', |
|
|
|
backgroundRepeat: 'no-repeat', |
|
|
|
padding: '0 12px' |
|
|
|
}}> |
|
|
|
{ |
|
|
|
operationState && operationState.histroy.select ? |
|
|
|
<> |
|
|
|
<IconReply style={{ marginRight: 12, cursor: 'pointer' }} onClick={() => { |
|
|
|
changeSelectState('histroy') |
|
|
|
}} /> |
|
|
|
</> : '' |
|
|
|
} |
|
|
|
{showTime_} {name} |
|
|
|
</Col> |
|
|
|
<Col span={15} style={{}}> |
|
|
|
<div style={{ paddingRight: 12 }}> |
|
|
|
<TextScroll content={[]} duration={6} /> |
|
|
|
</div> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
{roll? |
|
|
|
<div style={{ |
|
|
|
height: 42, lineHeight: '42px', background: '#00000026', |
|
|
|
position: 'absolute', width: '100%', zIndex: 99, |
|
|
|
color: '#fff' |
|
|
|
}}> |
|
|
|
<Row> |
|
|
|
<Col span={9} style={{ |
|
|
|
backgroundImage: 'url(/assets/images/background/videoPlayBg.png)', |
|
|
|
backgroundSize: '100% 100%', |
|
|
|
backgroundRepeat: 'no-repeat', |
|
|
|
padding: '0 12px' |
|
|
|
}}> |
|
|
|
{ |
|
|
|
operationState && operationState.histroy.select ? |
|
|
|
<> |
|
|
|
<IconReply style={{ marginRight: 12, cursor: 'pointer' }} onClick={() => { |
|
|
|
changeSelectState('histroy') |
|
|
|
}} /> |
|
|
|
</> : '' |
|
|
|
} |
|
|
|
{showTime_} {name} |
|
|
|
</Col> |
|
|
|
<Col span={15} style={{}}> |
|
|
|
<div style={{ paddingRight: 12 }}> |
|
|
|
<TextScroll content={content||[]} duration={6} /> |
|
|
|
</div> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</div>:''} |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|