提交 eb5b7caf authored 作者: 钟是志's avatar 钟是志

25640 签约审核/另行签约审核--学生提交的材料被驳回更新新材料后,,就业处收到的还是以前的老图

上级 f5db4e63
...@@ -80,13 +80,27 @@ export default function PictureSignature({ ...@@ -80,13 +80,27 @@ export default function PictureSignature({
...others ...others
}) { }) {
let imageRef = useRef(); let imageRef = useRef();
const [fileInfo, setFileInfo] = useState({ ...others?.fileInfo }); const [fileInfo, setFileInfo] = useState({ });
// const [fileInfo, setFileInfo] = useState(fakeFileInfo); // const [fileInfo, setFileInfo] = useState(fakeFileInfo);
const [openEdit, setOpenEdit] = useState(false); const [openEdit, setOpenEdit] = useState(false);
const [originSignConfig, setOriginConfig] = useState([]); const [originSignConfig, setOriginConfig] = useState([]);
const [showModal, setShowModal] = useState(false); const [showModal, setShowModal] = useState(false);
const [otherProps, setOtherProps] = useState({}); const [otherProps, setOtherProps] = useState({});
const [imageInfo, setImageInfo] = useState(null); const [imageInfo, setImageInfo] = useState(null);
useEffect(() => {
let fileInfo = {};
if(others?.fileInfo?.originPath){
setFileInfo({
...others?.fileInfo,
path: others?.fileInfo?.originPath,
})
}else{
setFileInfo({...others?.fileInfo});
}
}, []);
const changeShowModal = () => { const changeShowModal = () => {
if (!showModal) { if (!showModal) {
if (!imageInfo && !disabled) { if (!imageInfo && !disabled) {
...@@ -273,7 +287,7 @@ export default function PictureSignature({ ...@@ -273,7 +287,7 @@ export default function PictureSignature({
if (!fileInfo) { if (!fileInfo) {
return null; return null;
} }
console.log(imageInfo, fileInfo); // console.log(imageInfo, fileInfo);
return ( return (
<div className={styles.outSideDiv}> <div className={styles.outSideDiv}>
{fileInfo && fileInfo?.path && ( {fileInfo && fileInfo?.path && (
...@@ -284,7 +298,8 @@ export default function PictureSignature({ ...@@ -284,7 +298,8 @@ export default function PictureSignature({
onClick={changeShowModal} onClick={changeShowModal}
/> />
)} )}
{showModal && ( {showModal &&
(
<Modal <Modal
visible={true} visible={true}
destroyOnClose={true} destroyOnClose={true}
......
...@@ -3340,6 +3340,7 @@ export default class tableCom extends Component { ...@@ -3340,6 +3340,7 @@ export default class tableCom extends Component {
if (initValue != null && !isEmpty(initValue.files)) { if (initValue != null && !isEmpty(initValue.files)) {
filesPictureSignature = initValue.files; filesPictureSignature = initValue.files;
} }
console.log(filesPictureSignature);
cm = getFieldDecorator(dataColumn.base52, { cm = getFieldDecorator(dataColumn.base52, {
initialValue: { files: filesPictureSignature }, initialValue: { files: filesPictureSignature },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论