Commit 2d111c87 by 前端

惠州展厅

1 parent 73843273
......@@ -2,11 +2,11 @@
* @Description:
* @Author: huyue
* @Date: 2023-07-06 11:46:13
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:16:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:14:52
-->
<template>
<div class="text-box" :style="{'font-size': fontSize + 'px', 'text-align': textAlign}">{{ title }}</div>
<div class="text-box" :style="{ 'font-size': fontSize + 'px', 'text-align': textAlign }">{{ title }}</div>
</template>
<script>
......@@ -20,7 +20,7 @@ export default {
},
fontSize: {
type: Number,
default: 24
default: 20
},
textAlign: String
},
......@@ -40,7 +40,7 @@ export default {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
letter-spacing: 0;
background: linear-gradient(to right, #01A4F9, #6DF5F9); /* 从左到右渐变 */
background: linear-gradient(to right, #01a4f9, #6df5f9); /* 从左到右渐变 */
-webkit-background-clip: text; /* Safari/Chrome支持该属性 */
color: transparent; /* 将文本颜色设置为透明 */
padding-top: 5px;
......
......@@ -205,7 +205,7 @@ export default {
height: 100%;
box-sizing: border-box;
position: relative;
padding: 1.78vh 160px;
padding: 7.78vh 160px;
gap: 0 16px;
display: flex;
......@@ -231,7 +231,7 @@ export default {
position: absolute;
top: 42%;
left: 50%;
height: 32px;
height: 42px;
transform: translate(-50%, -50%);
// width: 154px;
// height: 32px;
......@@ -413,8 +413,8 @@ export default {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 24px;
height: 32px;
line-height: 32px;
height: 42px;
line-height: 42px;
text-align: center;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
......
......@@ -2,14 +2,14 @@
* @Description:
* @Author: huyue
* @Date: 2024-07-09 10:35:58
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 14:16:38
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:50:49
-->
<template>
<div class="AI-box">
<BoxTitle :title="'AI对话调用次数及覆盖门店'" :fontSize="18"></BoxTitle>
<BoxTitle :title="'AI对话调用次数及覆盖门店'" :fontSize="15"></BoxTitle>
<img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" />
<BarLineChart ref="AITalkRef" height="15.83vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
<BarLineChart ref="AITalkRef" height="16.83vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
</div>
</template>
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-01-26 16:23:12
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:10:27
* @FilePath: \glsk-data-view-scene\src\views\lifeSceneDataPage\components\ActivityRate.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="rate-box">
<BoxTitle :title="'各活动类型占比'" :fontSize="16"></BoxTitle>
<pie-chart :id="chart.id" :keys="chart.keys" :list="activityListData" :formatter="'total'" :formatterName="'累计营销活动'" :formtUnit="'场'" :height="chart.height" :colors="chart.colors"></pie-chart>
<BoxTitle :title="'各活动类型占比'" :fontSize="14"></BoxTitle>
<pie-chart
:id="chart.id"
:keys="chart.keys"
:list="activityListData"
:formatter="'total'"
:formatterName="'累计营销活动'"
:formtUnit="'场'"
:height="chart.height"
:colors="chart.colors"
></pie-chart>
<Legend class="legend" :list="activityListData" :legentList="legentList" :colors="chart.colors"></Legend>
</div>
</template>
<script>
import { activityListData } from "../const/index"
import { activityListData } from '../const/index'
export default {
name: 'ActivityRate',
......
......@@ -39,8 +39,8 @@ function getBarLineOptions(obj) {
],
grid: {
left: '3%',
right: '2%',
top: '20%',
right: '0%',
top: '25%',
bottom: '6%',
containLabel: true
},
......@@ -53,15 +53,16 @@ function getBarLineOptions(obj) {
show: true,
position: 'top',
color: '#fff',
formatter: (params) => {
formatter: params => {
return utils.numAddSymbol(params.value)
}
},
itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
color: function (params) {
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#00C8FF'
}, // 柱图渐变色
......@@ -72,8 +73,8 @@ function getBarLineOptions(obj) {
{
offset: 1, // 指100%处的颜色
color: '#0069F2'
}]
)
}
])
}
}
},
......
......@@ -2,12 +2,12 @@
* @Description: 右下
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-07-12 10:47:23
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:12:54
-->
<template>
<div class="big-module-marketing-box" @click="openDia">
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle>
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="12"></BoxTitle>
<div>基于大模型能力,快速生成个性化的活动标题、营销文案和活动海报,提升门店营销效率。</div>
<div v-show="isLoading" class="loadding">
<div class="wrap">
......@@ -98,7 +98,7 @@ export default {
console.log(111)
},
closeDialog() {
console.log(7777777);
console.log(7777777)
this.dialogShow = false
}
},
......@@ -123,6 +123,7 @@ export default {
margin-top: 1.4vh;
.top-title {
margin-bottom: 1.93vh;
padding-top: 15px;
}
img {
width: 19.33vw;
......
......@@ -2,12 +2,12 @@
* @Description:
* @Author: huyue
* @Date: 2024-07-09 10:35:58
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:44:05
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:10:06
-->
<template>
<div class="big-module-box">
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="16"></BoxTitle>
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="14"></BoxTitle>
<BarChart class="bar-chart" ref="bigModuleChartRef" :height="'25.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
</div>
</template>
......@@ -25,7 +25,7 @@ export default {
},
mounted() {
let _this = this;
let _this = this
_this.$nextTick(function () {
_this.$refs.bigModuleChartRef.drawBar()
})
......
......@@ -2,12 +2,12 @@
* @Description: 3D
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 10:43:14
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:09:50
-->
<template>
<div class="hot-box">
<BoxTitle class="hot-title" :title="'提问热词'" :fontSize="16"></BoxTitle>
<BoxTitle class="hot-title" :title="'提问热词'" :fontSize="14"></BoxTitle>
<div class="tagcloud"></div>
</div>
</template>
......@@ -64,7 +64,7 @@ export default {
}
&::after {
content: '';
display:block;
display: block;
width: 0.73vw;
height: 2.04vh;
position: absolute;
......@@ -84,8 +84,8 @@ export default {
span {
font-size: 10px;
color: #5894FF;
background-image: -webkit-linear-gradient(left, #d8ffed, #53FAFF);
color: #5894ff;
background-image: -webkit-linear-gradient(left, #d8ffed, #53faff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
......
......@@ -2,12 +2,12 @@
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:14:45
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:09:11
-->
<template>
<div class="near-thread-box">
<BoxTitle :title="'近12个月的线索推送情况'" :fontSize="18"></BoxTitle>
<BoxTitle :title="'近12个月的线索推送情况'" :fontSize="15"></BoxTitle>
<!-- <img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" /> -->
<BarChart ref="nearThreadChartRef" :height="'28.77vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
</div>
......@@ -26,8 +26,8 @@ export default {
},
mounted() {
let _this = this;
_this.$nextTick(function(){
let _this = this
_this.$nextTick(function () {
_this.$refs.nearThreadChartRef.drawBar()
})
},
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @LastEditors: huyue
* @LastEditTime: 2024-09-23 11:37:42
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:42:55
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -114,14 +114,14 @@ function getBarReverseOptions(obj, colorList) {
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 8
fontSize: 6
}
},
yAxis: {
type: 'category',
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
fontSize: '0.6em'
},
splitLine: {
show: false
......@@ -176,14 +176,16 @@ function getBarReverseOptions(obj, colorList) {
color: function (params) {
// var colorItem = []
return {
colorStops: [{
colorStops: [
{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}]
}
]
}
}
}
......@@ -212,7 +214,7 @@ function getBarReverseOptions1(obj, colorList) {
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 8
fontSize: 6
}
},
yAxis: {
......@@ -269,22 +271,24 @@ function getBarReverseOptions1(obj, colorList) {
padding: [0, 2, 2, 4],
lineHeight: 16
},
formatter: function(params) {
formatter: function (params) {
return params.value + ' ' + params.data.ratio + '%'
}
},
// barBorderRadius: [0, 2, 2, 0], // 柱体圆角
color: function(params) {
color: function (params) {
// var colorItem = []
return {
colorStops: [{
colorStops: [
{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}]
}
]
}
}
}
......@@ -318,8 +322,10 @@ function getLineOptions(obj) {
// },
borderWidth: 0,
padding: 0,
formatter: function(item) {
return `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">${name}:${utils.numAddSymbol(item[0].value)}</div></div>`
formatter: function (item) {
return `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">${name}:${utils.numAddSymbol(
item[0].value
)}</div></div>`
}
},
xAxis: {
......@@ -419,9 +425,11 @@ function lineAndBarOptions(list) {
// color: 'rgba(255,255,255,1)',
// fontSize: 10
// },
formatter: function(item) {
formatter: function (item) {
const items = list[item[0].dataIndex]
return `<div style="background-color: rgba(0, 0, 3, 0.8);font-size: 9px;border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9) 1;padding: 10px;border-radius: 4px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(item[0].value)}<br>
return `<div style="background-color: rgba(0, 0, 3, 0.8);font-size: 9px;border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9) 1;padding: 10px;border-radius: 4px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(
item[0].value
)}<br>
当月新增:${utils.numAddSymbol(item[1].value)}<br>
${items.tongbi ? `同比增长:${items.tongbi}%` : ''}
</div>
......@@ -539,7 +547,7 @@ function lineAndBarOptions(list) {
data: increNum,
itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
color: function (params) {
const colorList = [
// ['#2AD191', '#00A89E', '#061422'],
['#00c7ff', '#009cf8', '#006af2'],
......@@ -547,8 +555,9 @@ function lineAndBarOptions(list) {
]
var colorItem = []
colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1]
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: colorItem[0]
}, // 柱图渐变色
......@@ -559,8 +568,8 @@ function lineAndBarOptions(list) {
{
offset: 1, // 指100%处的颜色
color: colorItem[2]
}]
)
}
])
}
}
}
......
......@@ -93,7 +93,7 @@ export default {
// border: 4px solid rgba(18, 117, 248, 0.5);
box-sizing: border-box;
// margin: 20px calc((100vw - 1560px) / 2);
margin: 20px auto;
margin: 200px auto;
position: relative;
display: flex;
justify-content: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!