From 578928d66720a75e6d06611324532dcb711e079c Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期三, 22 一月 2025 10:36:16 +0800 Subject: [PATCH] 统计重复问题 --- src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue b/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue index 59efb69..23cd988 100644 --- a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue +++ b/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue @@ -4,8 +4,8 @@ <div class="flex-0 flex-items-center mb-1 flex-wrap"> <template v-if="visibleParams && visibleParams.length > 0 && showFilter"> <component - class="flex-0 m-2 first-of-type:ml-0 " - :class="{ 'hidden': isMap && showMode2 === DisplayModeType2.Map }" + class="flex-0 m-2 first-of-type:ml-0" + :class="{ hidden: isMap && showMode2 === DisplayModeType2.Map }" v-model="visibleParams[index].value" v-for="(item, index) in visibleParams as any" :key="item.id" @@ -201,10 +201,13 @@ const isTotalTable = computed(() => checkIsTotalTable(props.data)); +const checkHasAddRateCol = (current) => { + return current.find((item) => item.title === '姣斾緥' && item.type === 'text'); +}; const getTableCols = (propsData) => { const current = propsData?.cols ?? []; - if (checkIsTotalTable(propsData)) { + if (checkIsTotalTable(propsData) && !checkHasAddRateCol(current)) { current.push({ title: '姣斾緥', type: 'text', @@ -225,7 +228,8 @@ const getTableValues = (propsData) => { const agg_count_col = propsData?.agg_count_col; const current = (propsData?.values ?? []) as Array<any[]>; - if (checkIsTotalTable(propsData)) { + + if (checkIsTotalTable(propsData)&& !current.find(item=>item[0]==='鍚堣') ) { const last = current[current.length - 1]; const lastItemIndex = last?.length > 0 ? last.length - 1 : 0; valueColIndex = agg_count_col ?? lastItemIndex; @@ -1155,11 +1159,10 @@ const chartDlgIsShow = ref(false); const equipCurveMapRow = ref(null); const showCurve = (row) => { - if(isSharePage.value) return; - if(!row) return; + if (isSharePage.value) return; + if (!row) return; equipCurveMapRow.value = row; chartDlgIsShow.value = true; - }; const closeInfoWindow = () => { closeChartDlg(); -- Gitblit v1.9.3