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

bug修改

上级 736e5c00
...@@ -31,6 +31,9 @@ export default class BatchAudit extends Component { ...@@ -31,6 +31,9 @@ export default class BatchAudit extends Component {
render() { render() {
return <AuditPage {...this.props} hasBatchAudit={true} noNeedForm={true}/>; return <AuditPage {...this.props}
hasBatchAudit={true}
noNeedForm={true} // 不需要填写审核表单
/>;
} }
} }
...@@ -39,11 +39,13 @@ export default class PdfMenu extends BtnMenu { ...@@ -39,11 +39,13 @@ export default class PdfMenu extends BtnMenu {
const file = dom.files[0]; const file = dom.files[0];
console.log(file); console.log(file);
const fileName = file.name; const fileName = file.name;
uploadFile(file).then((res) => { uploadFile(file)
if (res && res.length > 10) { .then((res) => {
let url = queryApiActionPath() + res; setTimeout(() => {
window.message.success('上传文件成功'); if (res && res.length > 10) {
this.editor.txt.append(` let url = queryApiActionPath() + res;
window.message.success('上传文件成功');
this.editor.txt.append(`
<p class='wangEditor-pdfReader'> <p class='wangEditor-pdfReader'>
<embed width='100%' <embed width='100%'
height='768px' height='768px'
...@@ -55,8 +57,10 @@ export default class PdfMenu extends BtnMenu { ...@@ -55,8 +57,10 @@ export default class PdfMenu extends BtnMenu {
title='${fileName}'/> title='${fileName}'/>
</p> </p>
<p class='wangEditor-aHref'><a href='${url}' target='_blank' download='${fileName}'>${fileName}</a></p>`); <p class='wangEditor-aHref'><a href='${url}' target='_blank' download='${fileName}'>${fileName}</a></p>`);
} }
}); }, 300);
});
} }
}; };
dom.click(); dom.click();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论