|
@@ -627,6 +627,7 @@ export default {
|
|
"shouldSubmitPaper",
|
|
"shouldSubmitPaper",
|
|
"remainTime",
|
|
"remainTime",
|
|
"questionAnswerFileUrl",
|
|
"questionAnswerFileUrl",
|
|
|
|
+ "uploadModalVisible",
|
|
]),
|
|
]),
|
|
previousQuestionOrder: vm => {
|
|
previousQuestionOrder: vm => {
|
|
if (vm.examQuestion().order > 1) {
|
|
if (vm.examQuestion().order > 1) {
|
|
@@ -658,7 +659,12 @@ export default {
|
|
for (const q of value) {
|
|
for (const q of value) {
|
|
if (!q.saved) {
|
|
if (!q.saved) {
|
|
let acknowledgeStatus = "CONFIRMED";
|
|
let acknowledgeStatus = "CONFIRMED";
|
|
- if (q.order != this.$route.params.order) {
|
|
|
|
|
|
+
|
|
|
|
+ // 目前只针对音频题有丢弃的可能
|
|
|
|
+ if (
|
|
|
|
+ q.transferFileType === "PIC" &&
|
|
|
|
+ (q.order != this.$route.params.order || this.uploadModalVisible)
|
|
|
|
+ ) {
|
|
acknowledgeStatus = "DISCARDED";
|
|
acknowledgeStatus = "DISCARDED";
|
|
}
|
|
}
|
|
this.$http
|
|
this.$http
|
|
@@ -677,15 +683,19 @@ export default {
|
|
order: q.order,
|
|
order: q.order,
|
|
studentAnswer: q.fileUrl,
|
|
studentAnswer: q.fileUrl,
|
|
});
|
|
});
|
|
- } else if (q.transferFileType === "PIC") {
|
|
|
|
|
|
+ } else if (
|
|
|
|
+ acknowledgeStatus === "CONFIRMED" &&
|
|
|
|
+ q.transferFileType === "PIC"
|
|
|
|
+ ) {
|
|
that.updatePicture(q);
|
|
that.updatePicture(q);
|
|
}
|
|
}
|
|
q.saved = true;
|
|
q.saved = true;
|
|
- this.$Message.info({
|
|
|
|
- content: "小程序作答已更新",
|
|
|
|
- duration: 5,
|
|
|
|
- closable: true,
|
|
|
|
- });
|
|
|
|
|
|
+ if (acknowledgeStatus === "CONFIRMED")
|
|
|
|
+ this.$Message.info({
|
|
|
|
+ content: "小程序作答已更新",
|
|
|
|
+ duration: 5,
|
|
|
|
+ closable: true,
|
|
|
|
+ });
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$Message.error({
|
|
this.$Message.error({
|