|
|
|
@ -72,7 +72,8 @@ class RequirementVsObjective extends Component {
|
|
|
|
|
this.graduationRequirementsIdIndexMap[item.id] = index
|
|
|
|
|
})
|
|
|
|
|
this.state.training_subitems.forEach((item, index) => {
|
|
|
|
|
this.trainingSubitemsIdIndexMap[item.id] = index
|
|
|
|
|
// 对应table的列数
|
|
|
|
|
this.trainingSubitemsIdIndexMap[item.id] = index + 1
|
|
|
|
|
})
|
|
|
|
|
const tableData = []
|
|
|
|
|
this.state.graduation_requirements.forEach((item, index) => {
|
|
|
|
@ -87,7 +88,7 @@ class RequirementVsObjective extends Component {
|
|
|
|
|
onCellClick = (rowIndex, colIndex, select) => {
|
|
|
|
|
console.log( rowIndex, colIndex, select )
|
|
|
|
|
const ec_graduation_requirement_id = this.state.graduation_requirements[rowIndex].id
|
|
|
|
|
const ec_training_subitem_id = this.state.training_subitems[colIndex].id
|
|
|
|
|
const ec_training_subitem_id = this.state.training_subitems[colIndex - 1].id
|
|
|
|
|
const yearId = this.props.match.params.yearId
|
|
|
|
|
const url = `/ec_years/${yearId}/requirement_support_objectives.json`
|
|
|
|
|
const method = select ? axios.delete : axios.post
|
|
|
|
@ -129,7 +130,17 @@ class RequirementVsObjective extends Component {
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
<div className="educontent requirementVsObjective">
|
|
|
|
|
requirementVsObjective
|
|
|
|
|
<ul className="clearfix padding20-30 bor-bottom-greyE backgroundFFF"
|
|
|
|
|
style={{ 'marginBottom': '0px' }} >
|
|
|
|
|
<li className="fl">
|
|
|
|
|
<p className="font-18 courseSystem"> 毕业要求对培养目标的支撑 </p>
|
|
|
|
|
<p>
|
|
|
|
|
<span class="color-grey-9 mr10">用矩阵图的形式说明本专业毕业要求对培养目标的支撑关系,鼠标左键单击单元格即可</span>
|
|
|
|
|
<a href="javascript:void(0)" onClick={() => window.elasticLayer(3531)} class="color-blue">查看详情</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<SelectTable
|
|
|
|
|
columns={columns}
|
|
|
|
|
tableData={tableData}
|
|
|
|
|