Преглед на файлове

提交题库页面修改bug

weiwenhai преди 6 години
родител
ревизия
61b07e6035
променени са 2 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 2 0
      src/modules/questions/views/EditOtherQuestion.vue
  2. 3 3
      src/modules/questions/views/EditPaper.vue

+ 2 - 0
src/modules/questions/views/EditOtherQuestion.vue

@@ -393,6 +393,7 @@ export default {
         firstProperty: {},
         secondProperty: {}
       };
+      console.log("this.quesModel:", this.quesModel);
       if (
         this.quesModel.quesProperties === undefined ||
         this.quesModel.quesProperties.length == 0
@@ -422,6 +423,7 @@ export default {
         }
       }
       //判断是否有二级属性
+      console.log("this.secondPropertyList:", this.secondPropertyList);
       if (
         this.secondPropertyList != undefined &&
         this.secondPropertyList.length > 0

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

@@ -1500,8 +1500,8 @@ export default {
     openDialog() {
       this.checkResult = false;
       this.isUpload = true;
-      if(document.getElementById("radioFile")){
-        document.getElementById("radioFile").value = '';
+      if (document.getElementById("radioFile")) {
+        document.getElementById("radioFile").value = "";
       }
       this.dialogRadioFile = true;
       this.fileList = [];
@@ -1598,7 +1598,7 @@ export default {
           this.uploadAudioLoading = false;
           this.checkResult = false;
           this.isUpload = true;
-          document.getElementById("radioFile").value = '';
+          document.getElementById("radioFile").value = "";
           this.initPaper();
         })
         .catch(error => {