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