|
|
|
@ -50,9 +50,43 @@ class Contentpart extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
chakanjiexibool = (index) => {
|
|
|
|
|
this.props.chakanjiexibool(index);
|
|
|
|
|
chakanjiexibool=(index)=>{
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.props.chakanjiexibool(index);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showmodels=(e)=>{
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.props.showmodels(e)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showmodelsInaudit=(e)=>{
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.props.showmodelsInaudit(e)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showmodelysl=(e)=>{
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.props.showmodelysl(e)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
|
if(prevProps.current_user !== this.props.current_user) {
|
|
|
|
|
|
|
|
|
@ -248,7 +282,7 @@ class Contentpart extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
isysladmins===true||(is_teacher===true&&professional_certification===true)?
|
|
|
|
|
isysladmins===true||is_teacher===true?
|
|
|
|
|
<Tabs activeKey={defaultActiveKeys} onChange={(e)=>this.props.callback(e)}>
|
|
|
|
|
<TabPane tab="公共" key="1">
|
|
|
|
|
</TabPane>
|
|
|
|
@ -293,69 +327,69 @@ class Contentpart extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="xaxisreverseorder">
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey === 0 || defaultActiveKey === "0" ?
|
|
|
|
|
isysladmins === true || (is_teacher === true && professional_certification === true) ?
|
|
|
|
|
this.props.Isitapopup && this.props.Isitapopup === "true" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a onClick={(e) => this.xinzenw(e)}>
|
|
|
|
|
<div className="newbutoon">
|
|
|
|
|
<p className="newbutoontes" >新增</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
: ""
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{item_type === "PROGRAM" ?
|
|
|
|
|
defaultActiveKey === 0 || defaultActiveKey === "0" ?
|
|
|
|
|
<Popover getPopupContainer={trigger => trigger.parentNode} placement="bottom" trigger="hover" content={contents} onVisibleChange={() => this.props.handleVisibleChange(true)}>
|
|
|
|
|
<div className=" sortinxdirection mr30">
|
|
|
|
|
|
|
|
|
|
<div className="subjecttit">
|
|
|
|
|
全部
|
|
|
|
|
</div>
|
|
|
|
|
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
|
|
|
|
|
<div className="xaxisreverseorder">
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
isysladmins===true||is_teacher===true?
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a onClick={(e)=>this.xinzenw(e)}>
|
|
|
|
|
<div className="newbutoon">
|
|
|
|
|
<p className="newbutoontes" >新增</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
:""
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{item_type==="PROGRAM"?
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
<Popover getPopupContainer={trigger => trigger.parentNode} placement="bottom" trigger="hover" content={contents} onVisibleChange={()=>this.props.handleVisibleChange(true)}>
|
|
|
|
|
<div className=" sortinxdirection mr30">
|
|
|
|
|
|
|
|
|
|
<div className="subjecttit">
|
|
|
|
|
全部
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
:
|
|
|
|
|
"" : ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey === 0 || defaultActiveKey === "0" ?
|
|
|
|
|
this.props.Isitapopup && this.props.Isitapopup === "true" ?
|
|
|
|
|
<Search
|
|
|
|
|
style={isysladmins === true || (is_teacher === true && professional_certification) ? { marginRight: "0px" } : { marginRight: "0px" }}
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e) => this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={(value) => this.props.setdatafuns(value)} />
|
|
|
|
|
:
|
|
|
|
|
<Search
|
|
|
|
|
style={{ marginRight: "30px" }}
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e) => this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={(value) => this.props.setdatafuns(value)} />
|
|
|
|
|
:
|
|
|
|
|
<Search
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e) => this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={(value) => this.props.setdatafuns(value)} />
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
:
|
|
|
|
|
"":""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
<Search
|
|
|
|
|
style={isysladmins===true||is_teacher===true?{ marginRight:"0px"}:{marginRight:"0px"}}
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e)=>this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
|
|
|
|
:
|
|
|
|
|
<Search
|
|
|
|
|
style={isysladmins===true||is_teacher===true?{ marginRight:"30px"}:{marginRight:"0px"}}
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e)=>this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
|
|
|
|
:
|
|
|
|
|
<Search
|
|
|
|
|
className={"xaxisreverseorder searchwidth"}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e)=>this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -402,9 +436,9 @@ class Contentpart extends Component {
|
|
|
|
|
pages={this.props.pages}
|
|
|
|
|
getitem_basketss={(id)=>this.props.getitem_basketss(id)}
|
|
|
|
|
getitem_baskets={(e)=>this.props.getitem_baskets(e)}
|
|
|
|
|
showmodels={(e)=>this.props.showmodels(e)}
|
|
|
|
|
showmodelysl={(e)=>this.props.showmodelysl(e)}
|
|
|
|
|
showmodelsInaudit={(e)=>this.props.showmodelsInaudit(e)}
|
|
|
|
|
showmodels={(e)=>this.showmodels(e)}
|
|
|
|
|
showmodelysl={(e)=>this.showmodelysl(e)}
|
|
|
|
|
showmodelsInaudit={(e)=>this.showmodelsInaudit(e)}
|
|
|
|
|
handleShowUploadImage={(e)=>this.handleShowUploadImage(e)}
|
|
|
|
|
handleClose={()=>this.handleClose()}
|
|
|
|
|
|
|
|
|
|