|
|
|
@ -418,12 +418,21 @@ class Shixuninformation extends Component {
|
|
|
|
|
selectscripts:response.data[0].id
|
|
|
|
|
})
|
|
|
|
|
this.get_mirror_script(response.data[0].id)
|
|
|
|
|
|
|
|
|
|
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) => {
|
|
|
|
@ -476,6 +485,7 @@ class Shixuninformation extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
littleClass = (value,e) => {
|
|
|
|
|
|
|
|
|
|
let newshixun_service_configs = this.state.shixun_service_configs;
|
|
|
|
|
let newchoice_small_type = this.state.choice_small_type;
|
|
|
|
|
let list = []
|
|
|
|
@ -510,13 +520,18 @@ class Shixuninformation extends Component {
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
newchoice_small_type.push(value)
|
|
|
|
|
|
|
|
|
|
if(e.props.mirror_name===null){
|
|
|
|
|
this.setState({
|
|
|
|
|
choice_small_type: newchoice_small_type,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
choice_small_type: newchoice_small_type,
|
|
|
|
|
shixun_service_configs: newshixun_service_configsagin,
|
|
|
|
|
shixun_service_configlist: newshixun_service_configsagin,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SelectScput = (value, e) => {
|
|
|
|
|
this.setState({
|
|
|
|
@ -845,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>
|
|
|
|
@ -899,7 +914,7 @@ class Shixuninformation extends Component {
|
|
|
|
|
{
|
|
|
|
|
this.props.data === undefined ? "" : this.props.data.shixun&&this.props.data.shixun.small_type.map((item, key) => {
|
|
|
|
|
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>
|
|
|
|
|