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
@@ -55,7 +55,8 @@
getTimeOfSomeDayAgo,
division,
format,
debounce
debounce,
getStatErrorMessage
} from '@/js_sdk/uni-stat/util.js'
import fieldsMap from './fieldsMap.js'
export default {
@@ -253,9 +254,9 @@
}
this.chartData = options
}).catch((err) => {
console.error(err)
// err.message 错误信息
// err.code 错误码
// B3-2:图表查询失败必须落 errorMessage + 清空 chartData(图表组件已接 errorMessage)
this.errorMessage = getStatErrorMessage(err)
this.chartData = {}
}).finally(() => {
this.loading = false
})
@@ -330,9 +331,9 @@
this.tableData = []
this.tableData = tableData
}).catch((err) => {
console.error(err)
// err.message 错误信息
// err.code 错误码
// B3-2:主表查询失败必须落 errorMessage + 清空 tableData(finally 置 loading=false)
this.errorMessage = getStatErrorMessage(err)
this.tableData = []
}).finally(() => {
this.loading = false
})
@@ -384,9 +385,9 @@
this.channelData = channels
})
.catch((err) => {
// B3-2:渠道下拉失败不污染主错误态,仅清空下拉并保留 console 兜底
this.channelData = []
console.error(err)
// err.message 错误信息
// err.code 错误码
}).finally(() => {})
}