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

27119 在线课堂--新增内容提交成功,实际未生效

上级 0583d342
...@@ -15,6 +15,9 @@ const encryptApiList = [ ...@@ -15,6 +15,9 @@ const encryptApiList = [
{ {
api: 'DataColumnApi/add', api: 'DataColumnApi/add',
}, },
{
api: '/CmsApi/',
},
{ {
api: 'DataColumnApi/getLabels', api: 'DataColumnApi/getLabels',
key: ['allValues'], key: ['allValues'],
......
...@@ -58,7 +58,7 @@ export default class PdfMenu extends BtnMenu { ...@@ -58,7 +58,7 @@ export default class PdfMenu extends BtnMenu {
</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); }, 2000);
}); });
} }
......
...@@ -32,27 +32,28 @@ export default class VideoMenu extends BtnMenu { ...@@ -32,27 +32,28 @@ export default class VideoMenu extends BtnMenu {
dom.accept = '.MP4,.Ogg,.WebM,.WAV'; dom.accept = '.MP4,.Ogg,.WebM,.WAV';
dom.type = 'file'; dom.type = 'file';
dom.onchange = (v) => { dom.onchange = (v) => {
console.log(v);
if (dom.files && dom.files.length) { if (dom.files && dom.files.length) {
window.message.info('正在上传文件, 请耐心等待'); window.message.info('正在上传文件, 请耐心等待');
const file = dom.files[0]; const file = dom.files[0];
console.log(file);
const fileName = file.name; const fileName = file.name;
uploadFile(file).then((res) => { uploadFile(file).then((res) => {
if (res && res.length > 10) { if (res && res.length > 10) {
let url = queryApiActionPath() + res; let url = queryApiActionPath() + res;
window.message.success('上传文件成功'); setTimeout(()=>{
this.editor.txt.append(` window.message.success('上传成功');
this.editor.txt.append(`
<p class='wangEditor-videoReader' style='text-align: center;'> <p class='wangEditor-videoReader' style='text-align: center;'>
<video <video
src='${url}' src='${url}'
style='max-height: 500px; max-width:100%;' style='max-height: 500px; max-width:100%; text-align: center;'
controls='true' controls='true'
controlsList="nodownload noplaybackrate" controlsList="nodownload noplaybackrate"
disablePictureInPicture='true' disablePictureInPicture='true'
/> />
</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>`);
}, 2000);
} }
}); });
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论