feat(B批缝隙): B3残留catch补齐/B7-1 add成环/B4-5 key/B5-2 scores索引/门禁62-0-0

This commit is contained in:
12914
2026-09-14 02:18:23 +08:00
parent 4111cba637
commit f47bd75e78
18 changed files with 168 additions and 100 deletions
+10 -6
View File
@@ -59,6 +59,7 @@
formatDate,
maxDeltaDay,
debounce,
getStatErrorMessage
} from '@/js_sdk/uni-stat/util.js'
import fieldsMap from './fieldsMap.js'
export default {
@@ -232,7 +233,9 @@
}
this.chartData = options
}).catch((err) => {
console.error(err)
// B3-2:图表查询失败必须落 errorMessage + 清空 chartData(图表组件已接 errorMessage)
this.errorMessage = getStatErrorMessage(err)
this.chartData = {}
})
} else {
// 周、月范围的处理
@@ -319,9 +322,10 @@
})
})
}).catch((err) => {
console.error(err)
// err.message 错误信息
// err.code 错误码
// B3-2:主表查询失败必须落 errorMessage + 清空 tableData + loading=false(三态落定)
this.errorMessage = getStatErrorMessage(err)
this.tableData = []
this.loading = false
})
},
@@ -424,9 +428,9 @@
this.channelData = channels
})
.catch((err) => {
// B3-2:渠道下拉失败不污染主错误态,仅清空下拉并保留 console 兜底
this.channelData = []
console.error(err)
// err.message 错误信息
// err.code 错误码
}).finally(() => {})
}