|
|
|
@ -418,12 +418,21 @@ class Shixuninformation extends Component {
|
|
|
|
|
selectscripts:response.data[0].id
|
|
|
|
|
})
|
|
|
|
|
this.get_mirror_script(response.data[0].id)
|
|
|
|
|
this.setState({
|
|
|
|
|
choice_main_type: value,
|
|
|
|
|
standard_scripts: response.data,
|
|
|
|
|
shixun_service_configs: newshixun_service_configsagin,
|
|
|
|
|
shixun_service_configlist: newshixun_service_configsagin,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if(e.props.mirror_name===null){
|
|
|
|
|
this.setState({
|
|
|
|
|
choice_main_type: value,
|
|
|
|
|
standard_scripts: response.data,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
choice_main_type: value,
|
|
|
|
|
standard_scripts: response.data,
|
|
|
|
|
shixun_service_configs: newshixun_service_configsagin,
|
|
|
|
|
shixun_service_configlist: newshixun_service_configsagin,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -851,7 +860,7 @@ class Shixuninformation extends Component {
|
|
|
|
|
let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase())
|
|
|
|
|
if(itemtype>-1) {
|
|
|
|
|
return (
|
|
|
|
|
<Option value={item.id} key={key} name={item.description}>
|
|
|
|
|
<Option value={item.id} key={key} name={item.description} mirror_name={item.mirror_name}>
|
|
|
|
|
<Tooltip placement="right" title={item.description === "" ? "无描述" : item.description}>
|
|
|
|
|
{item.type_name}
|
|
|
|
|
</Tooltip>
|
|
|
|
|