Commit 56903cdf authored by 刘怀志's avatar 刘怀志

71867 【管理端】目录-上传视频点击保存后,点击关闭,页面变为空,关闭按钮无反应

parent f6eceb11
......@@ -188,7 +188,7 @@
</div>
<edu-file v-if="fileShow&&!pdfShow&&!pptShow&&!videoShow" :chp-id="curChapterId" :file-name="fileName" />
<span slot="footer" class="dialog-footer">
<el-button @click="previewClear">关 闭</el-button>
<el-button @click="resForm.preview=false">关 闭</el-button>
</span>
</el-dialog>
<div class="cur-line" />
......
......@@ -325,7 +325,7 @@
<div slot="tip" class="el-upload__tip" style="color:red">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
</el-upload>
<div slot="footer" class="dialog-footer">
<el-button class="cancelBtn" @click="upload.open = false">取 消</el-button>
<el-button class="cancelBtn" @click="uploadCancel">取 消</el-button>
<el-button class="submitBtn" :loading="importLoading" type="primary" @click="submitFileForm">确 定</el-button>
</div>
</el-dialog>
......@@ -906,6 +906,10 @@ export default {
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true })
this.getList()
},
uploadCancel() {
this.$refs.upload.clearFiles()
this.upload.open = false
},
// 提交上传文件
submitFileForm() {
var courseId = this.courseId
......
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