Commit 765b8af5 by end

上传pdf

parent 360a5b28
No preview for this file type
......@@ -53,9 +53,34 @@ class addEdit extends React.Component {
}
componentDidMount() {
const { seeEdit, type, treeData } = this.props;
console.log(this.props.keyValue,type,seeEdit,'查看是否有缓存')
console.log(seeEdit.pdfOssUrl, seeEdit.pdfFileName, "2222222222222");
if (seeEdit && seeEdit.pdfOssUrl && seeEdit.pdfFileName) {
const defaultFile = {
uid: `default-${Date.now()}`,
name: seeEdit.pdfFileName,
status: "done",
url: seeEdit.pdfOssUrl,
response: {
data: seeEdit.pdfOssUrl,
},
};
this.setState({
fileList: [defaultFile],
// 初始化 responseList
responseList: [
{
fileName: seeEdit.pdfFileName,
fileUrl: seeEdit.pdfOssUrl,
size: "", // 若无法获取文件大小,可留空
suffix: ".pdf",
},
],
});
}
console.log(this.props.keyValue, type, seeEdit, "查看是否有缓存");
this.props.getMenu({
code: "topic_type",
});
......
......@@ -769,6 +769,7 @@ class Information extends React.Component {
if (type == "look") {
this.setState({ visible: false });
} else if (type == "edit") {
console.log(pdfOssUrl, pdfFileName, "333333333333");
const jsonEdit = {
id: this.props.seeEdit.id,
logoPath: logoPath ? logoPath : this.props.seeEdit.logoPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment