Commit 2d111c87 by 前端

惠州展厅

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