forked from Gitlink/forgeplus-react
educoder 组织增加成员-传login
This commit is contained in:
parent
eff1b706c2
commit
bd35ea0301
|
|
@ -32,7 +32,7 @@ export function initAxiosInterceptors(props) {
|
||||||
// 判断网络是否连接
|
// 判断网络是否连接
|
||||||
initOnlineOfflineListener();
|
initOnlineOfflineListener();
|
||||||
|
|
||||||
var proxy = "https://testforgeplus.educoder.net/";
|
var proxy = "https://testforgeplus.trustie.net/";
|
||||||
//响应前的设置
|
//响应前的设置
|
||||||
axios.interceptors.request.use(
|
axios.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ import debounce from 'lodash/debounce';
|
||||||
import { Select, Spin , Button , Icon } from 'antd';
|
import { Select, Spin , Button , Icon } from 'antd';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { getImageUrl } from 'educoder';
|
import { getImageUrl } from 'educoder';
|
||||||
function DebounceSelect({ fetchOptions, debounceTimeout = 600, ...props }) {
|
function DebounceSelect({ fetchOptions, debounceTimeout = 600,login, ...props }) {
|
||||||
const [fetching, setFetching] = useState(false);
|
const [fetching, setFetching] = useState(false);
|
||||||
const [options, setOptions] = useState([]);
|
const [options, setOptions] = useState([]);
|
||||||
const fetchRef = useRef(0);
|
const fetchRef = useRef(0);
|
||||||
|
|
@ -182,7 +182,7 @@ function DebounceSelect({ fetchOptions, debounceTimeout = 600, ...props }) {
|
||||||
options && options.length >0 &&
|
options && options.length >0 &&
|
||||||
options.map((i)=>{
|
options.map((i)=>{
|
||||||
return(
|
return(
|
||||||
<Select.Option value={i.value}>
|
<Select.Option value={login ? i.value : i.login}>
|
||||||
{/* <img
|
{/* <img
|
||||||
className="user_img radius"
|
className="user_img radius"
|
||||||
width="28"
|
width="28"
|
||||||
|
|
@ -243,6 +243,7 @@ const App = ({getID,login,showNotification}) => {
|
||||||
<DebounceSelect
|
<DebounceSelect
|
||||||
value={value}
|
value={value}
|
||||||
style={{width:300}}
|
style={{width:300}}
|
||||||
|
login={login}
|
||||||
placeholder="搜索需要添加的用户..."
|
placeholder="搜索需要添加的用户..."
|
||||||
fetchOptions={fetchUserList}
|
fetchOptions={fetchUserList}
|
||||||
onChange={(newValue) => {
|
onChange={(newValue) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue