Browse Source

重置数据

lex-xin 4 years ago
parent
commit
bd2aedf036
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/matchManager/index.vue

+ 5 - 0
src/views/matchManager/index.vue

@@ -303,6 +303,11 @@ export default {
       studentCompetitionPage(cleanDeep(obj)).then(res => {
         if (res.code == 200) {
           this.pageInfo.total = res.data.total;
+          let rows = res.data && res.data.rows ? res.data.rows : []
+          rows.forEach(row => {
+            row.score = row.score == -1 ? null : row.score
+            row.prizeLevel = row.prizeLevel == -1 ? null : row.prizeLevel
+          });
           this.tableList = res.data.rows
         }
       })