Commit f1660f92 by zhangleyuan

feat:处理关联培训任务

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