Browse Source

%号提交错误,分数报错空白

yuanyiming 1 year ago
parent
commit
ad006d3d8a

+ 6 - 6
src/components/pages/kindStudentEva/test/component/popbox.vue

@@ -267,9 +267,9 @@ export default {
           contact: this.recordData.contact.join(","),
           type: this.recordData.type.join(","),
           timing: this.recordData.recordDate,
-          place: this.recordData.place,
-          observeCon: this.recordData.recordTit,
-          recordCon: this.recordData.recordContent,
+          place: encodeURIComponent(this.recordData.place),
+          observeCon: encodeURIComponent(this.recordData.recordTit),
+          recordCon: encodeURIComponent(this.recordData.recordContent),
           imgList: this.recordData.recordImg.join(","),
           term: this.recordData.term,
           pid: 1
@@ -334,9 +334,9 @@ export default {
           contact: this.recordData.contact.join(","),
           type: this.recordData.type.join(","),
           timing: this.recordData.recordDate,
-          place: this.recordData.place,
-          observeCon: this.recordData.recordTit,
-          recordCon: this.recordData.recordContent,
+          place: encodeURIComponent(this.recordData.place),
+          observeCon: encodeURIComponent(this.recordData.recordTit),
+          recordCon: encodeURIComponent(this.recordData.recordContent),
           imgList: this.recordData.recordImg.join(","),
           term: this.recordData.term,
           pid: 1

+ 1 - 1
src/components/pages/kindStudentEva/test/diary.vue

@@ -412,7 +412,7 @@ export default {
         .then(res => {
           this.isLoading = false;
           this.tableData = res.data[0];
-          console.log("this.tableData", this.tableData);
+          // console.log("this.tableData", this.tableData);
           this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
           // console.log(" 获取筛选数据", res.data[0]);
         })

+ 9 - 3
src/components/pages/kindStudentEva/test/score.vue

@@ -180,8 +180,11 @@ export default {
     }
   },
   watch: {
-    year(newVal, oldVal){
-      this.saveSRJson2(oldVal)
+    year(newVal, oldVal) {
+      // console.log(oldVal);
+      if (oldVal) {
+        this.saveSRJson2(oldVal);
+      }
     }
   },
   methods: {
@@ -190,7 +193,7 @@ export default {
     },
     switchTerm() {
       // this.searchStudentScore();
-      console.log('变化了');
+      console.log("变化了");
     },
     searchStudentScore() {
       this.isLoading = true;
@@ -307,6 +310,7 @@ export default {
         j: JSON.stringify(this.scoreJson),
         t: val
       };
+      // console.log("2", JSON.stringify(this.scoreJson));
       this.ajax
         .get(this.$store.state.api + "addSRScore", params)
         .then(res => {
@@ -323,6 +327,8 @@ export default {
         j: JSON.stringify(this.scoreJson),
         t: this.year
       };
+      // console.log("1", JSON.stringify(this.scoreJson));
+
       this.ajax
         .get(this.$store.state.api + "addSRScore", params)
         .then(res => {