forked from Gitlink/forgeplus-react
新建组织
This commit is contained in:
parent
029bb89b11
commit
586d9e0c05
|
@ -1,10 +1,16 @@
|
|||
import React, { useState } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Upload , Icon , message } from "antd";
|
||||
import { getUploadActionUrl } from 'educoder';
|
||||
|
||||
function UploadImage({ getImage }){
|
||||
function UploadImage({ getImage , url }){
|
||||
const [ imageUrl , setImageUrl ] = useState(undefined);
|
||||
|
||||
useEffect(()=>{
|
||||
if(url){
|
||||
setImageUrl(url);
|
||||
}
|
||||
},[url])
|
||||
|
||||
function getBase64(img, callback) {
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener('load', () => callback(reader.result));
|
||||
|
|
|
@ -49,7 +49,6 @@ export default Form.create()(
|
|||
}
|
||||
|
||||
return(
|
||||
<div className="newMain">
|
||||
<div className="main">
|
||||
<div className="teamBox">
|
||||
<p className="teamBox-title">新建组织</p>
|
||||
|
@ -112,7 +111,6 @@ export default Form.create()(
|
|||
<Button className="grey">取消</Button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
)
|
|
@ -95,7 +95,7 @@ body>.-task-title {
|
|||
}
|
||||
|
||||
.newContainer {
|
||||
background: #EAEBEC !important;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.ant-modal-title {
|
||||
|
|
Loading…
Reference in New Issue