|
|
|
@ -808,15 +808,14 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCollect=()=>{
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
let {shixunsDetails} = this.props;
|
|
|
|
|
let url ="/collections.json";
|
|
|
|
|
axios.post(url,{
|
|
|
|
|
container_id:id,
|
|
|
|
|
container_id:shixunsDetails.id,
|
|
|
|
|
container_type:"Shixun"
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
const status = result.data.status
|
|
|
|
|
if(status===0){
|
|
|
|
|
debugger
|
|
|
|
|
this.props.getcomponentdidmount()
|
|
|
|
|
this.props.showNotification(result.data.message);
|
|
|
|
|
}
|
|
|
|
@ -826,15 +825,14 @@ class TPMBanner extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cancelCollect=()=>{
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
let {shixunsDetails} = this.props;
|
|
|
|
|
let url=`/collections/cancel.json`;
|
|
|
|
|
axios.delete(url,{ data:{
|
|
|
|
|
container_id:id,
|
|
|
|
|
container_id:shixunsDetails.id,
|
|
|
|
|
container_type:"Shixun"
|
|
|
|
|
}}).then((response) => {
|
|
|
|
|
const status = response.data.status
|
|
|
|
|
if(status===0){
|
|
|
|
|
debugger
|
|
|
|
|
this.props.getcomponentdidmount()
|
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
|
}
|
|
|
|
@ -945,6 +943,7 @@ class TPMBanner extends Component {
|
|
|
|
|
.ant-popover{
|
|
|
|
|
z-index:1000 !important;
|
|
|
|
|
}
|
|
|
|
|
body{ width: calc(100%) !important; }
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
@ -1373,7 +1372,7 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.identity < 8 && shixunsDetails.shixun_status != -1 && shixunsDetails.shixun_status != 0?
|
|
|
|
|
<div className="fr kaike kkbth mr20"
|
|
|
|
|
<div className="fr kaike kkbth mr20 width155"
|
|
|
|
|
style={{display: shixunsDetails.can_copy === false || shixunsDetails.can_copy === null ? "none" : "flex"}}>
|
|
|
|
|
<Tooltip placement="bottom" title={"基于这个实训修改形成新的实训"}>
|
|
|
|
|
<span className="flex1 edu-txt-center fl font-18"
|
|
|
|
@ -1424,7 +1423,7 @@ class TPMBanner extends Component {
|
|
|
|
|
</Spin> :
|
|
|
|
|
<div>
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<div className={"forkfactors"}>请根据实际情况,填写fork本实训的原因</div>
|
|
|
|
|
<div className={"forkfactors"}>请根据实际情况,填写复制本实训的原因</div>
|
|
|
|
|
<Radio.Group onChange={this.onChangeRadiovalue} value={this.state.Radiovalue} className={"ml20 mt20 mb20"} style={{ width: "100%" }}>
|
|
|
|
|
<Radio style={radioStyle} value={1}>
|
|
|
|
|
实训内容升级
|
|
|
|
|