|
|
|
@ -46,9 +46,10 @@ |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:action="this.api.fileupload" |
|
|
|
|
:file-list="uploadList" |
|
|
|
|
> |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" class="ml20">上传视频/音频</el-button> |
|
|
|
|
</el-upload> |
|
|
|
|
<span v-if="topicForm.videoAudio">已上传</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="题干" prop="questionStem"> |
|
|
|
|
<quill :border="true" :readonly="isDetail" :key="isDetail" v-model="topicForm.questionStem" :minHeight="150" :height="150" /> |
|
|
|
@ -396,12 +397,14 @@ export default { |
|
|
|
|
) |
|
|
|
|
}, |
|
|
|
|
uploadSuccess(res, file, fileList) { |
|
|
|
|
this.uploading = false |
|
|
|
|
this.topicForm.videoAudio = res.data.filesResult.fileId |
|
|
|
|
}, |
|
|
|
|
showFaild(){ |
|
|
|
|
location.href = `${this.api.export_failure}?token=${this.token}` |
|
|
|
|
}, |
|
|
|
|
uploadError(err, file, fileList) { |
|
|
|
|
this.uploading = false |
|
|
|
|
this.$message({ |
|
|
|
|
message: "上传出错,请重试!", |
|
|
|
|
type: "error", |
|
|
|
|