ソースを参照

[FE] 首页TOP4修改

chenxr3 4 年 前
コミット
f83da7e637
共有1 個のファイルを変更した6 個の追加1 個の削除を含む
  1. 6 1
      security-protection-platform/src/modules/dashboard/index.vue

+ 6 - 1
security-protection-platform/src/modules/dashboard/index.vue

@ -221,7 +221,12 @@ export default {
221 221
    },
222 222
    init24Top() {
223 223
      this.topData = dasapi.queryAlarmAnalysisTopList().then(res => {
224
        this.topData = res.data
224
        this.topData = []
225
        for (var i = 0; i < 4; i++) {
226
          if (res.data[i]) {
227
            this.topData.push(res.data[i])
228
          }
229
        }
225 230
      })
226 231
    },
227 232
    initAttendanceData() {