xiatian 5 år sedan
förälder
incheckning
d5b930ecfa
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/modules/questions/views/EditPaper.vue

+ 3 - 3
src/modules/questions/views/EditPaper.vue

@@ -775,7 +775,7 @@
             name="answerFiles"
             type="file"
             value="上传答案文件"
-            accept="application/msexcel"
+            accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
             webkitdirectory
           />
           <el-button
@@ -788,7 +788,7 @@
             <span v-show="uploadAnswerLoading">正在上传中...</span>
           </el-button>
         </form>
-        <div style="margin-top: 20px;">
+        <div style="margin-top: 10px;">
           <span style="color: #ff4949;" v-show="answerMessage != ''">{{
             answerMessage
           }}</span>
@@ -924,6 +924,7 @@ export default {
     },
 
     closeAnswerDialog() {
+      this.answerMessage = "";
       this.dialogAnswerFile = this.uploadAnswerLoading;
     },
     uploadAnswerFile() {
@@ -1726,7 +1727,6 @@ export default {
     },
     //关闭音频弹框
     closeAudioDialog() {
-      this.answerMessage = "";
       this.dialogRadioFile = this.uploadAudioLoading;
     },
     //返回