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

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

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