|
|
|
@ -13,7 +13,7 @@ import UpdateForm from './components/UpdateForm';
|
|
|
|
|
import { queryTagList, saveCourse, removeCourse, queryCourseList } from './service';
|
|
|
|
|
import type { TableListItem, TableListPagination } from './data';
|
|
|
|
|
import Tags from './components/Tags';
|
|
|
|
|
import { DataItem } from '@antv/data-set/lib/transform/tag-cloud';
|
|
|
|
|
import type { DataItem } from '@antv/data-set/lib/transform/tag-cloud';
|
|
|
|
|
import { VideoJS } from './components/VideoJS';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -157,7 +157,7 @@ const CourseList: React.FC = () => {
|
|
|
|
|
sorter: false,
|
|
|
|
|
hideInForm: false,
|
|
|
|
|
hideInSearch: true,
|
|
|
|
|
renderFormItem:() => (
|
|
|
|
|
renderFormItem: () => (
|
|
|
|
|
<Upload >
|
|
|
|
|
<Button icon={<UploadOutlined />}>上传视频</Button>
|
|
|
|
|
</Upload>),
|
|
|
|
@ -206,7 +206,7 @@ const CourseList: React.FC = () => {
|
|
|
|
|
>
|
|
|
|
|
编辑
|
|
|
|
|
</a>,
|
|
|
|
|
<a key="remove" onClick={()=>{}}>
|
|
|
|
|
<a key="remove" onClick={() => { }}>
|
|
|
|
|
删除
|
|
|
|
|
</a>,
|
|
|
|
|
],
|
|
|
|
@ -311,8 +311,8 @@ const CourseList: React.FC = () => {
|
|
|
|
|
footer={null}
|
|
|
|
|
centered
|
|
|
|
|
>
|
|
|
|
|
{ console.log('currentRow', currentRow)}
|
|
|
|
|
{ console.log('columns', columns.slice(0, columns.length - 1))}
|
|
|
|
|
{console.log('currentRow', currentRow)}
|
|
|
|
|
{console.log('columns', columns.slice(0, columns.length - 1))}
|
|
|
|
|
{currentRow?.course_id && (
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={14}>
|
|
|
|
@ -343,24 +343,24 @@ const CourseList: React.FC = () => {
|
|
|
|
|
fullscreenToggle: true // 全屏按钮
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
onReady={(play: any)=>{
|
|
|
|
|
onReady={(play: any) => {
|
|
|
|
|
console.log('play====', play);
|
|
|
|
|
playerRef.current = play
|
|
|
|
|
play.play();
|
|
|
|
|
play.on("timeupdate", function(event) {
|
|
|
|
|
play.on("timeupdate", function (event) {
|
|
|
|
|
//const _timeCurrent = Date.parse(new Date().toString()) / 1000; // 当前时间
|
|
|
|
|
//setTimeUpdateState(_timeCurrent); //timeUpdateState
|
|
|
|
|
console.log('play--',play.currentTime())
|
|
|
|
|
console.log('play-%-', parseInt(play.currentTime()) % 15 )
|
|
|
|
|
if( parseInt(play.currentTime()) % 15 === 0){ // 每15秒更新进度
|
|
|
|
|
console.log('play--', play.currentTime())
|
|
|
|
|
console.log('play-%-', parseInt(play.currentTime()) % 15)
|
|
|
|
|
if (parseInt(play.currentTime()) % 15 === 0) { // 每15秒更新进度
|
|
|
|
|
console.log()
|
|
|
|
|
}
|
|
|
|
|
//var currentTime = parseInt(this.currentTime()); //当前时间
|
|
|
|
|
//var duration = this.duration(); //视频时常
|
|
|
|
|
//var percent = (currentTime / duration * 100).toFixed(0) + "%";
|
|
|
|
|
//console.log('event',event);
|
|
|
|
|
//$("#current").text(this.currentTime());
|
|
|
|
|
//$("#duration").text(duration);
|
|
|
|
|
//console.log('event',event);
|
|
|
|
|
//$("#current").text(this.currentTime());
|
|
|
|
|
//$("#duration").text(duration);
|
|
|
|
|
})
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
@ -380,7 +380,7 @@ const CourseList: React.FC = () => {
|
|
|
|
|
columns={
|
|
|
|
|
columns.slice(0, columns.length - 1) as ProDescriptionsItemProps<TableListItem>[]
|
|
|
|
|
}
|
|
|
|
|
style={{padding:'0 24px'}}
|
|
|
|
|
style={{ padding: '0 24px' }}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
@ -389,9 +389,9 @@ const CourseList: React.FC = () => {
|
|
|
|
|
<ModalForm
|
|
|
|
|
title="标签管理"
|
|
|
|
|
visible={tagsModalVisible}
|
|
|
|
|
// onVisibleChange={handleModalVisible}
|
|
|
|
|
onVisibleChange={handleTagsModalVisible}
|
|
|
|
|
>
|
|
|
|
|
<Tags/>
|
|
|
|
|
<Tags />
|
|
|
|
|
</ModalForm>
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
|