|
|
|
@ -51,12 +51,12 @@ class TPMBanner extends Component {
|
|
|
|
|
isSpin: false,
|
|
|
|
|
Senttothevcaluetype: false,
|
|
|
|
|
jupyterbool: false,
|
|
|
|
|
openknow:false,
|
|
|
|
|
openshowpublictype:false,
|
|
|
|
|
Radiovalue:1,
|
|
|
|
|
TextAreaintshow:false,
|
|
|
|
|
cancelText:undefined,
|
|
|
|
|
okText:undefined,
|
|
|
|
|
openknow: false,
|
|
|
|
|
openshowpublictype: false,
|
|
|
|
|
Radiovalue: 1,
|
|
|
|
|
TextAreaintshow: false,
|
|
|
|
|
cancelText: undefined,
|
|
|
|
|
okText: undefined,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -410,12 +410,12 @@ class TPMBanner extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype: false,
|
|
|
|
|
Modalstopval: "",
|
|
|
|
|
modalsMidval:undefined,
|
|
|
|
|
ModalsBottomval:"",
|
|
|
|
|
modalstyles:"",
|
|
|
|
|
cancelText:undefined,
|
|
|
|
|
okText:undefined,
|
|
|
|
|
Loadtype:false,
|
|
|
|
|
modalsMidval: undefined,
|
|
|
|
|
ModalsBottomval: "",
|
|
|
|
|
modalstyles: "",
|
|
|
|
|
cancelText: undefined,
|
|
|
|
|
okText: undefined,
|
|
|
|
|
Loadtype: false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
ModalSave = () => {
|
|
|
|
@ -446,18 +446,18 @@ class TPMBanner extends Component {
|
|
|
|
|
ModalSaveopenpublic = () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype: true,
|
|
|
|
|
Modalstopval:"公开实训需经过平台标准化审核,审核周期为1-2天,",
|
|
|
|
|
modalsMidval:"公开的实训将对平台所有人可见。若仅本人教学使用",
|
|
|
|
|
ModalsBottomval:"则无需申请公开, 直接发送到课堂即可。",
|
|
|
|
|
cancelText:"取消申请",
|
|
|
|
|
okText:"确定申请",
|
|
|
|
|
Modalstopval: "公开实训需经过平台标准化审核,审核周期为1-2天,",
|
|
|
|
|
modalsMidval: "公开的实训将对平台所有人可见。若仅本人教学使用",
|
|
|
|
|
ModalsBottomval: "则无需申请公开, 直接发送到课堂即可。",
|
|
|
|
|
cancelText: "取消申请",
|
|
|
|
|
okText: "确定申请",
|
|
|
|
|
ModalCancel: this.ModalCancel,
|
|
|
|
|
ModalSave: this.eopenpublicupdatadata,
|
|
|
|
|
// Loadtype:true,
|
|
|
|
|
// modalstyles:"848282"
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
eopenpublicupdatadata=()=>{
|
|
|
|
|
eopenpublicupdatadata = () => {
|
|
|
|
|
// window.location.reload()
|
|
|
|
|
this.ModalCancel()
|
|
|
|
|
this.props.getcomponentdidmount()
|
|
|
|
@ -479,8 +479,8 @@ class TPMBanner extends Component {
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
let url = `/shixuns/${id}/cancel_apply_public.json`;
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if(response.data.status===0){
|
|
|
|
|
// window.location.reload()
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
// window.location.reload()
|
|
|
|
|
this.ModalCancel()
|
|
|
|
|
this.props.getcomponentdidmount()
|
|
|
|
|
}
|
|
|
|
@ -513,12 +513,12 @@ class TPMBanner extends Component {
|
|
|
|
|
} else {
|
|
|
|
|
evaluation_set_position = response.data.evaluation_set_position
|
|
|
|
|
}
|
|
|
|
|
if(response.data.status===0){
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
// window.location.reload()
|
|
|
|
|
this.applyreleaseopen()
|
|
|
|
|
// this.ModalCancel()
|
|
|
|
|
this.props.getcomponentdidmount()
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
Issuevisible: true,
|
|
|
|
|
tag_position: response.data.tag_position,
|
|
|
|
@ -535,7 +535,7 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype: true,
|
|
|
|
|
Loadtype:true,
|
|
|
|
|
Loadtype: true,
|
|
|
|
|
Modalstopval: "实训发布后即可发送课堂使用",
|
|
|
|
|
ModalSave: this.ModalCancel,
|
|
|
|
|
})
|
|
|
|
@ -785,7 +785,7 @@ class TPMBanner extends Component {
|
|
|
|
|
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
|
|
|
|
const MyRate = ({ defaultValue, ...rest }) => {
|
|
|
|
|
let myValue = defaultValue;
|
|
|
|
|
return <Rate {...rest} value={myValue} />;
|
|
|
|
|
return <Rate {...rest} value={myValue} style={{ fontSize: 14 }} />;
|
|
|
|
|
};
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
@ -878,35 +878,35 @@ class TPMBanner extends Component {
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
<MyRate allowHalf defaultValue={5} disabled />
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[1]} showInfo={false}></Progress>
|
|
|
|
|
<Progress percent={star_infos[1]} size='small' showInfo={false}></Progress>
|
|
|
|
|
<span className="fr ml10 color-grey-6 font-12 mt4">{star_infos[1]}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
<MyRate allowHalf defaultValue={4} disabled />
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[2]} showInfo={false}></Progress>
|
|
|
|
|
<Progress percent={star_infos[2]} size='small' showInfo={false}></Progress>
|
|
|
|
|
<span className="fr ml10 color-grey-6 font-12 mt4">{star_infos[2]}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
<MyRate allowHalf defaultValue={3} disabled />
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[3]} showInfo={false}></Progress>
|
|
|
|
|
<Progress percent={star_infos[3]} size='small' showInfo={false}></Progress>
|
|
|
|
|
<span className="fr ml10 color-grey-6 font-12 mt4">{star_infos[3]}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
<MyRate allowHalf defaultValue={2} disabled />
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[4]} showInfo={false}></Progress>
|
|
|
|
|
<Progress percent={star_infos[4]} size='small' showInfo={false}></Progress>
|
|
|
|
|
<span className="fr ml10 color-grey-6 font-12 mt4">{star_infos[4]}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
<MyRate allowHalf defaultValue={1} disabled />
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[5]} showInfo={false}></Progress>
|
|
|
|
|
<Progress percent={star_infos[5]} size='small' showInfo={false}></Progress>
|
|
|
|
|
<span className="fr ml10 color-grey-6 font-12 mt4">{star_infos[5]}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|