mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-15 22:06:50 +08:00
style(login): 优化登录页面布局和样式
- 调整登录页面标题样式,增加 logo 图片尺寸和样式 - 添加版权所有链接,可跳转至公司官网 - 修复智能代理儿童组件中的日志和概览页面问题 - 优化图表标题样式,移除多余的换行符 - 增加时间选择器的 change 事件处理,动态更新图表标题
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div class="p10">
|
||||
<el-select v-model="times" style="width: 200px" size="medium">
|
||||
<el-select
|
||||
v-model="times"
|
||||
style="width: 200px"
|
||||
size="medium"
|
||||
@change="changeTime"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:value="item.value"
|
||||
@@ -12,6 +17,7 @@
|
||||
style="flex-wrap: wrap"
|
||||
>
|
||||
<REcharts
|
||||
:key="item.options.title.subtext"
|
||||
v-for="item in list"
|
||||
:options="item.options"
|
||||
style="width: calc(50% - 10px);height: 300px"
|
||||
@@ -190,7 +196,7 @@ export default {
|
||||
{
|
||||
options: {
|
||||
title: {
|
||||
text: '用户满意度\n',
|
||||
text: '用户满意度',
|
||||
textStyle: {
|
||||
fontSize: 13
|
||||
},
|
||||
@@ -229,7 +235,7 @@ export default {
|
||||
{
|
||||
options: {
|
||||
title: {
|
||||
text: '费用消耗\n',
|
||||
text: '费用消耗',
|
||||
textStyle: {
|
||||
fontSize: 13
|
||||
},
|
||||
@@ -313,6 +319,28 @@ export default {
|
||||
},
|
||||
filters: {},
|
||||
methods: {
|
||||
changeTime(value) {
|
||||
let label = this.findLabel(value)
|
||||
this.list = this.list.map(item => {
|
||||
return {
|
||||
options: {
|
||||
...item.options,
|
||||
title: {
|
||||
...item.options.title,
|
||||
subtext: label
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
console.log(this.list)
|
||||
},
|
||||
// 查找label
|
||||
findLabel(value) {
|
||||
return this.options.find(item =>
|
||||
item.value === value ? value : this.value
|
||||
).label
|
||||
},
|
||||
async getEcharts() {
|
||||
// let dailyConversationsApi = await dailyConversations({
|
||||
// id: '27f6f211-6c74-4de8-9424-c1ba28d365c2'
|
||||
|
||||
Reference in New Issue
Block a user