Commit 138753c2 authored by 李纪文's avatar 李纪文

feat: 视频修改

parent 24179700
......@@ -20,6 +20,7 @@ const RecVideo = (props, ref) => {
const [playTimestamp, setPlayTimestamp] = useState(null); //当前正在播放时间段
const [minTimestamp, setMinTimestamp] = useState(null); //时间轴最小时间
const [maxTimestamp, setMaxTimestamp] = useState(null); //时间轴最大时间
const [loading, setLoading] = useState(true);
useEffect(() => {
changeReplayCfg();
......@@ -70,7 +71,9 @@ const RecVideo = (props, ref) => {
};
const getVideoPlBack = (param) => {
setLoading(true);
videoPlayback(param).then((res) => {
setLoading(false);
if (res.code === 200) {
setPeridos(
res.data.peridos.map((times, i) => {
......@@ -94,7 +97,9 @@ const RecVideo = (props, ref) => {
};
const rePaly = (params) => {
setLoading(true);
newPlayback(params).then((res) => {
setLoading(false);
if (res.code === 200) {
setShowId(res.data);
} else {
......@@ -147,7 +152,7 @@ const RecVideo = (props, ref) => {
</>
) : (
<div className={classNames(`${prefixCls}-empty`)}>
{/* <Empty theme={'dark'} description={''} /> */}
{!loading && <Empty theme={'dark'} description={''} />}
</div>
)}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment