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 -9
View File
@@ -81,7 +81,8 @@
division,
format,
formatDate,
debounce
debounce,
getStatErrorMessage
} from '@/js_sdk/uni-stat/util.js'
import fieldsFactory from './fieldsMap.js'
export default {
@@ -309,9 +310,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
})
@@ -349,9 +350,9 @@
this.tableData = []
this.tableData = data
}).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
})
@@ -403,9 +404,9 @@
this.channelData = channels
})
.catch((err) => {
// B3-2:渠道下拉失败不污染主错误态,仅清空下拉并保留 console 兜底
this.channelData = []
console.error(err)
// err.message 错误信息
// err.code 错误码
}).finally(() => {})
}