lxf há 1 ano atrás
pai
commit
9895668323

+ 4 - 1
src/views/shengde/group/spectaculars/dailyBoard/index.vue

@@ -433,6 +433,7 @@ export default {
       API.getDifList(this.queryParams).then(
         (res) => {
           this.TCData = res.data.data
+          let num = 0
           if (this.TCData.list && this.TCData.list.length > 0) {
             for (let i = 0; i < this.TCData.list.length; i++) {
               let codes = ''
@@ -446,7 +447,8 @@ export default {
                   return acc
                 }, {})
                 for (let text in list) {
-                  if (list[text] % 2 != 0) {
+                  if (text && list[text] % 2 != 0) {
+                    num++
                     if (codes) {
                       codes = codes + ', ' + text
                     } else {
@@ -458,6 +460,7 @@ export default {
               this.TCData.list[i].codes = codes
             }
           }
+          this.TCData.count = num
           this.topCenter = false
         },
         (err) => {