|
@@ -249,24 +249,32 @@ function handleApply() {
|
|
|
const getStatisticsData = async () => {
|
|
const getStatisticsData = async () => {
|
|
|
const configList = await dictStore.getConfigList('mini_program_index_sumary')
|
|
const configList = await dictStore.getConfigList('mini_program_index_sumary')
|
|
|
if (configList.length > 0) {
|
|
if (configList.length > 0) {
|
|
|
- // 将字符串分割后转换为数字类型
|
|
|
|
|
- statisticsData.value = configList[0].substance.split(',').map((item) => Number(item))
|
|
|
|
|
|
|
+ // 获取统计数据是否显示配置
|
|
|
|
|
+ const statisticsDataShowConfig = configList.find(
|
|
|
|
|
+ (item) => item.groupname === 'mini_program_index_sumary_show',
|
|
|
|
|
+ )
|
|
|
|
|
+ statisticsDataShow.value = statisticsDataShowConfig?.substance === '1'
|
|
|
|
|
+ // 统计数据项
|
|
|
|
|
+ const statisticsDataConfig = configList.find(
|
|
|
|
|
+ (item) => item.groupname === 'mini_program_index_sumary_data',
|
|
|
|
|
+ )
|
|
|
|
|
+ statisticsData.value = statisticsDataConfig?.substance.split(',').map((item) => Number(item))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 获取统计数据是否显示配置
|
|
|
|
|
-const getStatisticsDataShow = async () => {
|
|
|
|
|
- const configList = await dictStore.getConfigList('mini_program_index_sumary_show')
|
|
|
|
|
- if (configList.length > 0) {
|
|
|
|
|
- // 将字符串分割后转换为数字类型
|
|
|
|
|
- statisticsDataShow.value = configList[0].substance === '1'
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// // 获取统计数据是否显示配置
|
|
|
|
|
+// const getStatisticsDataShow = async () => {
|
|
|
|
|
+// const configList = await dictStore.getConfigList('mini_program_index_sumary_show')
|
|
|
|
|
+// if (configList.length > 0) {
|
|
|
|
|
+// // 将字符串分割后转换为数字类型
|
|
|
|
|
+// statisticsDataShow.value = configList[0].substance === '1'
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
getUserList()
|
|
getUserList()
|
|
|
getStatisticsData()
|
|
getStatisticsData()
|
|
|
- getStatisticsDataShow()
|
|
|
|
|
|
|
+ // getStatisticsDataShow()
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|