chromesetting
杨树明 5 years ago
parent 4e0a46be8d
commit f8d306e4a9

@ -52,7 +52,7 @@ export function initAxiosInterceptors(props) {
//proxy="http://47.96.87.25:48080" //proxy="http://47.96.87.25:48080"
proxy="https://pre-newweb.educoder.net" proxy="https://pre-newweb.educoder.net"
proxy="https://test-newweb.educoder.net" proxy="https://test-newweb.educoder.net"
proxy="https://test-jupyterweb.educoder.net" //proxy="https://test-jupyterweb.educoder.net"
//proxy="http://192.168.2.63:3001" //proxy="http://192.168.2.63:3001"
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求 // 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求

@ -476,6 +476,7 @@ class Shixuninformation extends Component {
}) })
} }
littleClass = (value,e) => { littleClass = (value,e) => {
let newshixun_service_configs = this.state.shixun_service_configs; let newshixun_service_configs = this.state.shixun_service_configs;
let newchoice_small_type = this.state.choice_small_type; let newchoice_small_type = this.state.choice_small_type;
let list = [] let list = []
@ -510,13 +511,18 @@ class Shixuninformation extends Component {
) )
newchoice_small_type.push(value) newchoice_small_type.push(value)
if(e.props.mirror_name===null){
this.setState({
choice_small_type: newchoice_small_type,
})
}else{
this.setState({ this.setState({
choice_small_type: newchoice_small_type, choice_small_type: newchoice_small_type,
shixun_service_configs: newshixun_service_configsagin, shixun_service_configs: newshixun_service_configsagin,
shixun_service_configlist: newshixun_service_configsagin, shixun_service_configlist: newshixun_service_configsagin,
}) })
} }
}
SelectScput = (value, e) => { SelectScput = (value, e) => {
this.setState({ this.setState({
@ -899,7 +905,7 @@ class Shixuninformation extends Component {
{ {
this.props.data === undefined ? "" : this.props.data.shixun&&this.props.data.shixun.small_type.map((item, key) => { this.props.data === undefined ? "" : this.props.data.shixun&&this.props.data.shixun.small_type.map((item, key) => {
return ( 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}> <Tooltip placement="right" title={item.description === "" ? "无描述" : item.description}>
{item.type_name} {item.type_name}
</Tooltip> </Tooltip>

Loading…
Cancel
Save