调用统计
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<p class="color1">{{ totalInfo['昨日'] || 0 }}</p>
|
<p class="color1">{{ totalInfo['昨日'] || 0 }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ai-title slot="title" :title="`AI调用分析(${totalEcount}次数)`">
|
<ai-title slot="title" :title="`AI调用分析(${totalEcount}次)`">
|
||||||
<template #rightBtn>
|
<template #rightBtn>
|
||||||
<el-row type="flex" align="middle">
|
<el-row type="flex" align="middle">
|
||||||
<span class="shortcut" v-for="(item,i) in timeCheck" :key="i" :class="{active:type==i}"
|
<span class="shortcut" v-for="(item,i) in timeCheck" :key="i" :class="{active:type==i}"
|
||||||
@@ -40,25 +40,21 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</ai-title>
|
</ai-title>
|
||||||
<el-row type="flex" class="mar-t4 gap-20">
|
<el-row type="flex" class="mar-t4 gap-20 chart-content">
|
||||||
<div class="chartBox fill">
|
<div class="chartBox fill">
|
||||||
<b>AI调用趋势图</b>
|
<b>AI调用趋势图</b>
|
||||||
<div>
|
<div id="trendChart" style="width: 100%;" v-if="trendData.length" class="chart"></div>
|
||||||
<div id="trendChart" style="height: 280px; width: 100%;" v-if="trendData.length"></div>
|
<ai-empty v-else style="height: 200px; width: 100%;" id="empty"/>
|
||||||
<ai-empty v-else style="height: 200px; width: 100%;" id="empty"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="chartBox fill">
|
<div class="chartBox fill">
|
||||||
<b>AI调用群聊排行榜</b>
|
<b>AI调用群聊排行榜</b>
|
||||||
<div>
|
<ai-table v-if="tableData.length"
|
||||||
<ai-table v-if="tableData.length"
|
:tableData="tableData"
|
||||||
:tableData="tableData"
|
:col-configs="colConfigs"
|
||||||
:col-configs="colConfigs"
|
:isShowPagination="false"
|
||||||
:isShowPagination="false"
|
style="margin-top: 6px; width: 100%;">
|
||||||
style="margin-top: 6px; width: 100%;">
|
</ai-table>
|
||||||
</ai-table>
|
<ai-empty v-else style="height: 200px; width: 100%;" id="empty"/>
|
||||||
<ai-empty v-else style="height: 200px; width: 100%;" id="empty"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -196,11 +192,12 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.info.ranking.map((item, index)=> {
|
this.info.ranking.map((item, index)=> {
|
||||||
if(index < 5) {
|
if(index < 100) {
|
||||||
item.rank = index+1
|
item.rank = index+1
|
||||||
this.tableData.push(item)
|
this.tableData.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -398,6 +395,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep .ai-detail__content--wrapper {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.chart-content {
|
||||||
|
height: calc(100% - 140px);
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep .ai-table {
|
||||||
|
height: calc(100% - 40px);
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
.chartBox {
|
.chartBox {
|
||||||
background: #F9F9F9;
|
background: #F9F9F9;
|
||||||
box-shadow: 0px 4px 6px -2px rgba(15, 15, 21, 0.1500);
|
box-shadow: 0px 4px 6px -2px rgba(15, 15, 21, 0.1500);
|
||||||
@@ -405,10 +414,11 @@ export default {
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
.chart {
|
.chart {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 300px;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user