Commit b48e8f92 by pengshun

feat: 对话分析页面调整

parent f63ea6ae
No preview for this file type
......@@ -15,7 +15,7 @@
<if test="reqVO.question != null and reqVO.question != ''">
AND question LIKE CONCAT('%', #{reqVO.question}, '%')
</if>
<if test="reqVO.chatTime != null and reqVO.chatTime.size() == 2">
<if test="reqVO.chatTime != null and reqVO.chatTime.length == 2">
AND chat_time BETWEEN #{reqVO.chatTime[0]} AND #{reqVO.chatTime[1]}
</if>
</where>
......
......@@ -17,7 +17,7 @@
<span class="num">{{ statsData?.totalCount || 0 }}</span>
<span :class="['growth', (statsData?.percentQAPrevious || 0) >= 0 ? 'up' : 'down']">
{{ (statsData?.percentQAPrevious || 0) >= 0 ? '↑' : '↓' }}
{{ Math.abs(statsData?.percentQAPrevious || 0) }}%
{{ Math.abs(statsData?.percentQAPrevious || 0).toFixed(2) }}%
</span>
</div>
<div class="compare-text">较前一{{ config.compareUnit }}</div>
......@@ -31,7 +31,7 @@
<span class="num">{{ statsData?.transferCount || 0 }}</span>
<span :class="['growth', (statsData?.percentTransPrevious || 0) >= 0 ? 'up' : 'down']">
{{ (statsData?.percentTransPrevious || 0) >= 0 ? '↑' : '↓' }}
{{ Math.abs(statsData?.percentTransPrevious || 0) }}%
{{ Math.abs(statsData?.percentTransPrevious || 0).toFixed(2) }}%
</span>
</div>
<div class="compare-text">较前一{{ config.compareUnit }}</div>
......@@ -109,7 +109,7 @@ const displayWords = computed(() => {
// 周期配置
const periodConfigs: Record<string, any> = {
today: { label: '日', compareUnit: '日', tagType: 'primary' },
today: { label: '日', compareUnit: '日', tagType: 'primary' },
week: { label: '本周', compareUnit: '周', tagType: 'success' },
month: { label: '本月', compareUnit: '月', tagType: 'warning' }
}
......@@ -126,8 +126,10 @@ const getTimeRangeByPeriod = (period: string): [string, string] => {
switch (period) {
case 'today':
start = now.startOf('day') // 当天 00:00:00
end = now.endOf('day') // 当天 23:59:59
// start = now.startOf('day') // 当天 00:00:00
// end = now.endOf('day') // 当天 23:59:59
start = now.subtract(1, 'day').startOf('day')
end = now.subtract(1, 'day').endOf('day')
break
case 'week':
start = now.startOf('isoWeek') // 本周一 00:00:00
......
......@@ -37,7 +37,7 @@
</div>
<div class="analysis-dashboard mt-12px" v-show="analysisExpanded[item.id]">
<div v-if="item.intentInsight" class="analysis-item">
<!-- <div v-if="item.intentInsight" class="analysis-item">
<el-tag type="info" effect="plain" size="small">意图洞察</el-tag>
<span class="analysis-content">{{ item.intentInsight }}</span>
</div>
......@@ -47,7 +47,7 @@
<ul class="diagnosis-list">
<li v-for="(msg, i) in item.reviewDiagnosis" :key="i">{{ msg }}</li>
</ul>
</div>
</div> -->
<div v-if="item.optimizeSuggest" class="analysis-item">
<el-tag type="success" effect="plain" size="small">优化建议</el-tag>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment