|
@@ -268,7 +268,7 @@
|
|
<el-radio v-show="optZipVisible" label="zip">ZIP</el-radio>
|
|
<el-radio v-show="optZipVisible" label="zip">ZIP</el-radio>
|
|
<el-radio v-show="optPdfVisible" label="pdf">PDF</el-radio>
|
|
<el-radio v-show="optPdfVisible" label="pdf">PDF</el-radio>
|
|
<el-radio v-show="optImageVisible" label="image"
|
|
<el-radio v-show="optImageVisible" label="image"
|
|
- >图片(*.jpg|*.jpeg|*.png)</el-radio
|
|
|
|
|
|
+ >图片(jpg、jpeg、png)</el-radio
|
|
>
|
|
>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -844,10 +844,14 @@ export default {
|
|
this.offlineAnswerFile = "";
|
|
this.offlineAnswerFile = "";
|
|
this.search();
|
|
this.search();
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .catch((e) => {
|
|
|
|
+ let errMsg = "上传失败";
|
|
|
|
+ if (e.response) {
|
|
|
|
+ errMsg = e.response.data.desc;
|
|
|
|
+ }
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "提示",
|
|
title: "提示",
|
|
- message: "上传失败",
|
|
|
|
|
|
+ message: errMsg,
|
|
type: "error",
|
|
type: "error",
|
|
duration: 2000,
|
|
duration: 2000,
|
|
});
|
|
});
|
|
@@ -956,10 +960,14 @@ export default {
|
|
this.offlineAnswerFile = "";
|
|
this.offlineAnswerFile = "";
|
|
this.search();
|
|
this.search();
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .catch((e) => {
|
|
|
|
+ let errMsg = "上传失败";
|
|
|
|
+ if (e.response) {
|
|
|
|
+ errMsg = e.response.data.desc;
|
|
|
|
+ }
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "提示",
|
|
title: "提示",
|
|
- message: "上传失败",
|
|
|
|
|
|
+ message: errMsg,
|
|
type: "error",
|
|
type: "error",
|
|
duration: 2000,
|
|
duration: 2000,
|
|
});
|
|
});
|