新建组织

This commit is contained in:
caishi 2021-01-25 10:49:39 +08:00
parent 029bb89b11
commit 586d9e0c05
3 changed files with 9 additions and 5 deletions

View File

@ -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));

View File

@ -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>
)
})
)

View File

@ -95,7 +95,7 @@ body>.-task-title {
}
.newContainer {
background: #EAEBEC !important;
background: #f5f5f5;
}
.ant-modal-title {