|  |  |  | @ -476,46 +476,52 @@ 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 = [] | 
			
		
	
		
			
				
					|  |  |  |  |     list.push(this.state.choice_main_type) | 
			
		
	
		
			
				
					|  |  |  |  |     newchoice_small_type.map((item, key) => { | 
			
		
	
		
			
				
					|  |  |  |  |       list.push(item) | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     let newshixun_service_configsagin = [] | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     newshixun_service_configs.map((item, key) => { | 
			
		
	
		
			
				
					|  |  |  |  |       list.map((its, index) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (item.mirror_repository_id === its) { | 
			
		
	
		
			
				
					|  |  |  |  |           newshixun_service_configsagin.push(item) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     this.props.data.shixun.small_type.some((items, keys) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (items.id === value) { | 
			
		
	
		
			
				
					|  |  |  |  |           newshixun_service_configsagin.push({ | 
			
		
	
		
			
				
					|  |  |  |  |             mirror_repository_id: value, | 
			
		
	
		
			
				
					|  |  |  |  |             name: items.type_name, | 
			
		
	
		
			
				
					|  |  |  |  |             cpu_limit: 1, | 
			
		
	
		
			
				
					|  |  |  |  |             lower_cpu_limit: 0.1, | 
			
		
	
		
			
				
					|  |  |  |  |             memory_limit: 1024, | 
			
		
	
		
			
				
					|  |  |  |  |             request_limit: 10 | 
			
		
	
		
			
				
					|  |  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |  |           return true | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |      let newshixun_service_configs = this.state.shixun_service_configs; | 
			
		
	
		
			
				
					|  |  |  |  |      let newchoice_small_type = this.state.choice_small_type; | 
			
		
	
		
			
				
					|  |  |  |  |      let list = [] | 
			
		
	
		
			
				
					|  |  |  |  |      list.push(this.state.choice_main_type) | 
			
		
	
		
			
				
					|  |  |  |  |      newchoice_small_type.map((item, key) => { | 
			
		
	
		
			
				
					|  |  |  |  |        list.push(item) | 
			
		
	
		
			
				
					|  |  |  |  |      }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |      let newshixun_service_configsagin = [] | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |      newshixun_service_configs.map((item, key) => { | 
			
		
	
		
			
				
					|  |  |  |  |        list.map((its, index) => { | 
			
		
	
		
			
				
					|  |  |  |  |          if (item.mirror_repository_id === its) { | 
			
		
	
		
			
				
					|  |  |  |  |            newshixun_service_configsagin.push(item) | 
			
		
	
		
			
				
					|  |  |  |  |          } | 
			
		
	
		
			
				
					|  |  |  |  |        }) | 
			
		
	
		
			
				
					|  |  |  |  |      }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |      this.props.data.shixun.small_type.some((items, keys) => { | 
			
		
	
		
			
				
					|  |  |  |  |          if (items.id === value) { | 
			
		
	
		
			
				
					|  |  |  |  |            newshixun_service_configsagin.push({ | 
			
		
	
		
			
				
					|  |  |  |  |              mirror_repository_id: value, | 
			
		
	
		
			
				
					|  |  |  |  |              name: items.type_name, | 
			
		
	
		
			
				
					|  |  |  |  |              cpu_limit: 1, | 
			
		
	
		
			
				
					|  |  |  |  |              lower_cpu_limit: 0.1, | 
			
		
	
		
			
				
					|  |  |  |  |              memory_limit: 1024, | 
			
		
	
		
			
				
					|  |  |  |  |              request_limit: 10 | 
			
		
	
		
			
				
					|  |  |  |  |            }) | 
			
		
	
		
			
				
					|  |  |  |  |            return true | 
			
		
	
		
			
				
					|  |  |  |  |          } | 
			
		
	
		
			
				
					|  |  |  |  |        } | 
			
		
	
		
			
				
					|  |  |  |  |      ) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |      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, | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     ) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     newchoice_small_type.push(value) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |       choice_small_type: newchoice_small_type, | 
			
		
	
		
			
				
					|  |  |  |  |       shixun_service_configs: newshixun_service_configsagin, | 
			
		
	
		
			
				
					|  |  |  |  |       shixun_service_configlist: newshixun_service_configsagin, | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   SelectScput = (value, e) => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -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) => { | 
			
		
	
		
			
				
					|  |  |  |  |                           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> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |