Commit f1660f92 by zhangleyuan

feat:处理关联培训任务

parent e9a6e1e4
......@@ -15,7 +15,7 @@ import DownloadLiveModal from '@/components/DownloadLiveModal';
import ManageCoursewareModal from '../modal/ManageCoursewareModal';
import ShareLiveModal from '../modal/ShareLiveModal';
import RelatedPlanModal from '../modal/RelatedPlanModal';
import './LiveCourseList.less';
import { QuestionCircleOutlined } from '@ant-design/icons';
......@@ -661,14 +661,24 @@ class LiveCourseList extends React.Component {
}
window.open(htmlUrl);
}
handleRelatedModalShow = (item)
handleRelatedModalShow = (item)=>{
this.setState({
RelatedPlanModalVisible:true
})
}
closeRelatedPlanModalVisible = ()=>{
this.setState({
RelatedPlanModalVisible:false
})
}
render() {
const { total, query, courseList, loading} = this.props;
const { current, size } = query;
const { openDownloadModal,
downloadUrl, url, columns,
openCoursewareModal,
editData
editData,
RelatedPlanModalVisible
} = this.state;
const { match } = this.props;
......@@ -720,10 +730,11 @@ class LiveCourseList extends React.Component {
/>
)}
{ RelatedPlanModalVisible &&
<RelatedPlanModal/>
<RelatedPlanModal
onClose={this.closeRelatedPlanModalVisible}
visible={RelatedPlanModalVisible}
/>
}
<iframe src={url} style={{ display: "none" }} />
<Route path={`${match.url}/live-course-data`} component={DataList} />
</div>
......
......@@ -3,7 +3,7 @@ import {Table, Modal,Input} from 'antd';
import { PageControl } from "@/components";
import PlanService from '@/domains/plan-domain/planService'
import User from '@/common/js/user'
import './SelectOperatorModal.less';
import './RelatedPlanModal.less';
import _ from "underscore";
const { Search } = Input;
class RelatedPlanModal extends React.Component {
......@@ -34,8 +34,8 @@ class RelatedPlanModal extends React.Component {
const { result = {} } = res ;
const { records = [], total = 0 } = result;
this.setState({
dataSource: records,
totalCount: Number(total)
dataSource: result,
// totalCount: Number(total)
});
});
}
......
.related-plan-modal{
}
\ No newline at end of file
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