Explorar el Código

03/12 11:42

11
261568008@qq.com hace 5 años
padre
commit
fec1f86491

+ 12 - 4
src/views/evaluateManager/evaluateDetail.vue

@@ -150,7 +150,7 @@ export default {
               eight: 8
             };
             this.item = JSON.parse(res.data.item);
-            console.log(this.item);
+            // console.log(this.item);
             this.askList = []
             for (let key in this.item) {
               switch (key) {
@@ -175,17 +175,25 @@ export default {
                   break;
                 }
                 case "six": {
+                  if(this.item['six']){
                       this.askList.push(this.subjectJson[6].title+' : '+this.subjectJson[6][this.item[key]])
+                  }
+                    
                   break;
                 }
                 case "seven":
-                  {
-                        this.askList.push(this.subjectJson[7].title+' : '+this.subjectJson[7][this.item[key]])
+                  {     if(this.item['seven']){
+                    this.askList.push(this.subjectJson[7].title+' : '+this.subjectJson[7][this.item[key]])
+                  }
+                        
                         break;
                   }
                   
                 case "eight": {
-                      this.askList.push(this.subjectJson[8].title+' : '+this.subjectJson[8][this.item[key]])
+                  if(this.item['eight']){
+                     this.askList.push(this.subjectJson[8].title+' : '+this.subjectJson[8][this.item[key]])
+                  }
+                     
                   break;
                 }
               }

+ 1 - 1
src/views/evaluateManager/evaluateList.vue

@@ -178,7 +178,7 @@ export default {
       obj.organId = this.searchForm.organId || null;
       obj.page = this.rules.page;
       obj.rows = this.rules.rows;
-      obj.search = this.rules.search;
+      obj.search = this.searchForm.search|| null
       obj.teacherId = this.searchForm.teacherId || null;
       getReviews(obj).then(res => {
         if (res.code == 200) {