Commit 728d7669 by 胡悦

修改运营数据样式

1 parent ae364ff9
...@@ -99,7 +99,13 @@ img { ...@@ -99,7 +99,13 @@ img {
.inline { .inline {
display: inline-block; display: inline-block;
} }
.icon-title {
display: inline-block;
width:0.94vw;
height: 0.93vh;
background: url(../images/operation//icon-title.png) no-repeat;
background-size: 100%;
}
.title { .title {
font-size: 0.75vw; font-size: 0.75vw;
font-weight: 400; font-weight: 400;
...@@ -112,11 +118,14 @@ img { ...@@ -112,11 +118,14 @@ img {
.title-bg { .title-bg {
display: inline-block; display: inline-block;
height: 1.71vh; height: 1.71vh;
padding-left: 0.83vw; padding-left: 0.21vw;
transform: rotate(-360deg); // transform: rotate(-360deg);
background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%); // background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%);
} }
} }
.operational-box {
background-color: #071735;
}
.container { .container {
height: 8.54vh; height: 8.54vh;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-06 11:46:13 * @Date: 2023-07-06 11:46:13
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-07 18:01:41 * @LastEditTime: 2024-01-26 17:16:49
--> -->
<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>
...@@ -43,5 +43,7 @@ export default { ...@@ -43,5 +43,7 @@ export default {
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; /* 将文本颜色设置为透明 */
text-align: center;
padding-top: 5px;
} }
</style> </style>
...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
&-item { &-item {
padding: 0.89vh 0.53vw; padding: 0.89vh 0.53vw;
margin-right: 1.11vw; margin-right: 1.11vw;
background: #061422; background: #071735;
box-shadow: inset 0 0 20px 0 #3d57ff69; // box-shadow: inset 0 0 20px 0 #3d57ff69;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:14:25
-->
<template> <template>
<div class="statistics"> <div class="statistics">
<div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{'width': 100 / list.length + '%'}"> <div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{ width: 100 / list.length + '%' }">
<div class="statistics-top"> <div class="statistics-top">
<div class="statistics-name">{{item.name}}</div> <div class="statistics-name">{{ item.name }}</div>
<div class="statistic-text">{{numAddSymbol(item.value)}}{{ item.unit }}</div> <div class="statistic-text">{{ numAddSymbol(item.value) }}{{ item.unit }}</div>
</div>
</div>
</div> </div>
</template> </div>
</div>
<script> </template>
export default {
name: 'StatisticsBox', <script>
props: { export default {
list: { name: 'StatisticsBox',
type: Array props: {
} list: {
// bottomType: { type: Array
// type: String, }
// default: 'default' // bottomType: {
// } // type: String,
}, // default: 'default'
data() { // }
return { },
} data() {
}, return {}
},
mounted() {},
mounted() {},
methods: {}
} methods: {}
</script> }
</script>
<style lang="scss" scoped>
.statistics { <style lang="scss" scoped>
display: flex; .statistics {
height: 8.15vh; display: flex;
color: #E8E8E8; height: 8.15vh;
&-item { color: #e8e8e8;
width: 10.26vw; &-item {
padding: 1.48vh 1.04vw; width: 10.26vw;
margin-right: 0.42vw; padding: 1.48vh 1.04vw;
background-image: url(../../../assets/images/statistic-bg.png); margin-right: 0.42vw;
background-size: 100% 100%; background-image: url(../../../assets/images/statistic-bg.png);
&:last-child { background-size: 100% 100%;
margin-right: 0; &:last-child {
} margin-right: 0;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
}
</style>
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-02-27 11:29:02 * @Date: 2023-02-27 11:29:02
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-17 14:14:50 * @LastEditTime: 2024-01-26 20:08:52
--> -->
<template> <template>
<div class="left"> <div class="left">
<div class="top box"> <div class="top">
<box-title title="企业客户总览"></box-title> <box-title title="企业客户总览"></box-title>
<view-tabs /> <view-tabs />
<view-surface /> <view-surface />
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div slot="3"><Store :height="defaultHeight"></Store></div> <div slot="3"><Store :height="defaultHeight"></Store></div>
</view-pie-group> </view-pie-group>
</div> </div>
<div class="bottom box"> <div class="bottom">
<box-title title="客户数字化业务"></box-title> <box-title title="客户数字化业务"></box-title>
<OverSize></OverSize> <OverSize></OverSize>
</div> </div>
...@@ -67,15 +67,19 @@ export default { ...@@ -67,15 +67,19 @@ export default {
overflow: hidden; overflow: hidden;
.top { .top {
height: 52.2vh; height: 52.4vh;
width: 100%; width: 100%;
// padding: 0 16px; // padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-1.png) no-repeat;
background-size: 100%;
} }
.bottom { .bottom {
height: 34.15vh; height: 34.15vh;
margin-top: 1.95vh; margin-top: 1.95vh;
box-sizing: content-box; box-sizing: content-box;
background: url(../../assets/images/operation/bg-3.png) no-repeat;
background-size: 100%;
} }
} }
</style> </style>
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 10:52:23 * @Date: 2022-06-23 10:52:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-17 18:02:44 * @LastEditTime: 2024-01-26 20:08:16
--> -->
<template> <template>
<div class="right"> <div class="right">
<div class="top box"> <div class="top">
<box-title title="营销增值服务业务"></box-title> <box-title title="营销增值服务业务"></box-title>
<Business></Business> <Business></Business>
<Project></Project> <Project></Project>
...@@ -87,14 +87,17 @@ export default { ...@@ -87,14 +87,17 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.top { .top {
height: 32.68vh; height: 34.15vh;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-2.png) no-repeat;
background-size: 100% 100%;
} }
.bottom { .bottom {
height: 53.66vh; height: 53.66vh;
margin-top: 1.95vh; margin-top: 1.95vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-4.png) no-repeat;
background-size: 100% 100%;
&-content { &-content {
padding: 0 0.83vw; padding: 0 0.83vw;
} }
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-22 16:49:20 * @LastEditTime: 2024-01-26 20:59:02
* @FilePath: \dj-data-view\src\views\user\analyse.vue * @FilePath: \dj-data-view\src\views\user\analyse.vue
* @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
--> -->
<template> <template>
<div class="analyse"> <div class="analyse">
<div class="title title-icon"> <div class="title title-icon">
<!-- <span class="icon"></span> --> <span class="icon"></span>
<div class="title-h3">客户价值分析</div> <div class="title-h3">客户价值分析</div>
<div class="go" @click="goAnalyse"> <div class="go" @click="goAnalyse">
<img src="@/assets/images/go.png" /> <img src="@/assets/images/go.png" />
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
return { return {
analysisList: {}, analysisList: {},
isShow: true, isShow: true,
colorList: ['#5C56FF', '#22D8FF'], colorList: ['#00C8FF', '#0069F2'],
dialogShow: false dialogShow: false
} }
}, },
...@@ -68,7 +68,12 @@ export default { ...@@ -68,7 +68,12 @@ export default {
} }
.icon { .icon {
display: inline-block; display: inline-block;
width:0.94vw;
height: 0.93vh;
transform: rotate(90deg); transform: rotate(90deg);
background: url(../../../assets/images/operation//icon-title.png) no-repeat;
background-size: 100%;
margin-top: 7px;
} }
.title { .title {
display: block; display: block;
...@@ -78,12 +83,13 @@ export default { ...@@ -78,12 +83,13 @@ export default {
// margin: 4px 4px; // margin: 4px 4px;
// height:10.98vh; // height:10.98vh;
font-size: 10px; font-size: 10px;
background-image: linear-gradient(180deg, #003F57 0%, #111056 54%, #071735 100%); margin-left: 5px;
// transform: rotate(90deg);
} }
.go { .go {
width: 0.65vw; width: 0.65vw;
height: 0.65vw; height: 0.65vw;
margin: 3px 0; margin: 3px 5px;
cursor: pointer; cursor: pointer;
} }
} }
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-08-16 14:34:58 * @Date: 2023-08-16 14:34:58
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:53:20 * @LastEditTime: 2024-01-26 20:39:48
--> -->
<template> <template>
<div> <div class="operational-box">
<div class="title title-icon"> <div class="title title-icon">
<span class="icon"></span> <span class="icon-title"></span>
<span class="title-bg">区域分布</span> <span class="title-bg">区域分布</span>
</div> </div>
<div class="container flex"> <div class="container flex">
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
chart: { chart: {
id: 'area', id: 'area',
keys: ['name', 'num'], keys: ['name', 'num'],
colors: ['#FF6E76', '#16E193', '#FDF006', '#EB6001', '#34AFFF', '#BF98FF'], colors: ['#16E193', '#EB6001', '#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate' formatter: 'rate'
}, },
areaData: [] areaData: []
...@@ -44,3 +44,7 @@ export default { ...@@ -44,3 +44,7 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped>
</style>
<template> <template>
<div class="area"> <div class="area">
<div class="title-icon"> <div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">区域分布</span> <span class="title-bg">区域分布</span>
</div> </div>
<div class="container"> <div class="container">
...@@ -17,7 +18,7 @@ export default { ...@@ -17,7 +18,7 @@ export default {
}, },
data() { data() {
return { return {
colorList: ['#22D8FF', '#223FA9', '#071735'] colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
} }
}, },
props: { props: {
...@@ -35,10 +36,10 @@ export default { ...@@ -35,10 +36,10 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff; color: #ffffff;
.title-bg { // .title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%); // background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw; // padding-left: 0.83vw;
} // }
} }
} }
</style> </style>
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
--> -->
<template> <template>
<div> <div class="operational-box">
<div class="title title-icon"> <div class="title title-icon">
<span class="icon"></span> <span class="icon-title"></span>
<span class="title-bg">品牌分布</span> <span class="title-bg">品牌分布</span>
</div> </div>
<div class="container flex"> <div class="container flex">
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
chart: { chart: {
id: 'brand', id: 'brand',
keys: ['name', 'num'], keys: ['name', 'num'],
colors: ['#FF6E76', '#16E193', '#FDF006', '#EB6001', '#34AFFF', '#BF98FF'], colors: ['#16E193', '#EB6001', '#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate' formatter: 'rate'
}, },
brandData: [] brandData: []
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:00:45
-->
<template> <template>
<div class="brand"> <div class="brand">
<div class="title-icon"> <div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">品牌分布</span> <span class="title-bg">品牌分布</span>
</div> </div>
<div class="container"> <div class="container">
...@@ -17,7 +25,7 @@ export default { ...@@ -17,7 +25,7 @@ export default {
}, },
data() { data() {
return { return {
colorList: ['#2AD191', '#0E958D', '#071735'] colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
} }
}, },
props: { props: {
...@@ -35,10 +43,10 @@ export default { ...@@ -35,10 +43,10 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff; color: #ffffff;
.title-bg { // .title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%); // background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw; // padding-left: 0.83vw;
} // }
} }
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-28 10:37:35 * @LastEditTime: 2024-01-26 20:10:23
* @FilePath: \dj-data-view\src\views\saas\business.vue * @FilePath: \dj-data-view\src\views\saas\business.vue
* @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
--> -->
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.business-wrap { .business-wrap {
height: 14.15vh; height: 14.15vh;
margin: 0.98vh 0.83vw; margin: 2.98vh 0.83vw 0.98vh;
// margin-bottom: 0.98vh; // margin-bottom: 0.98vh;
// margin-top: 0.98vh; // margin-top: 0.98vh;
justify-content: space-between; justify-content: space-between;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:05:08
-->
<template> <template>
<div class="category-box box"> <div class="category-box">
<div class="title-icon"> <div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">品类业务</span> <span class="title-bg">品类业务</span>
</div> </div>
<div class="category-container flex"> <div class="category-container flex">
...@@ -21,7 +29,7 @@ export default { ...@@ -21,7 +29,7 @@ export default {
return { return {
chart: { chart: {
id: 'category', id: 'category',
colors: ['#EB6001', '#34AFFF', '#16E193', '#BF98FF'], colors: ['#6578FF', '#34AFFF', '#EB6001', '#16E193', '#BF98FF'],
formatter: 'rate' formatter: 'rate'
} }
} }
...@@ -39,14 +47,15 @@ export default { ...@@ -39,14 +47,15 @@ export default {
.category-box { .category-box {
overflow: hidden; overflow: hidden;
height: 13.9vh; height: 13.9vh;
background-color: #071735;
.title-icon { .title-icon {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
color: #ffffff; color: #ffffff;
.title-bg { // .title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #06142200 100%); // background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #06142200 100%);
padding-left: 0.83vw; // padding-left: 0.83vw;
} // }
} }
.category-container { .category-container {
height: 11.34vh; height: 11.34vh;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:52:55
-->
<template> <template>
<div class="legend"> <div class="legend">
<div class="legend-item flex" :style="{width: width,height: height}" v-for="(item, index) in dataList" :key="index"> <div class="legend-item flex" :style="{width: width,height: height}" v-for="(item, index) in dataList" :key="index">
...@@ -50,7 +57,7 @@ export default { ...@@ -50,7 +57,7 @@ export default {
height: 8.54vh; height: 8.54vh;
margin-left: 0.42vw; margin-left: 0.42vw;
.legend-item { .legend-item {
background: #0A214D; // background: #0A214D;
align-items: center; align-items: center;
font-size: 7px; font-size: 7px;
color: #FFFFFF; color: #FFFFFF;
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
} }
.headline { .headline {
height: 5.61vh; height: 5.61vh;
background: #0A214D; background: #092A46;
font-weight: 600; font-weight: 600;
font-size: 10px; font-size: 10px;
color: #e8e8e8; color: #e8e8e8;
...@@ -173,6 +173,9 @@ export default { ...@@ -173,6 +173,9 @@ export default {
height: 6.34vh; height: 6.34vh;
margin-bottom: 0; margin-bottom: 0;
} }
&:nth-child(2) {
background-color: rgba(11, 101, 142, 0.28);
}
} }
&-title { &-title {
width: 2.78vw; width: 2.78vw;
...@@ -229,7 +232,7 @@ export default { ...@@ -229,7 +232,7 @@ export default {
} }
} }
.bg-1 { .bg-1 {
background: #072A23; background: rgba(11, 101, 142, 0.28);
.clew-line-text { .clew-line-text {
border-bottom: 1px solid #0a2d26; border-bottom: 1px solid #0a2d26;
height: 4.88vh; height: 4.88vh;
...@@ -239,9 +242,9 @@ export default { ...@@ -239,9 +242,9 @@ export default {
// } // }
} }
.bg-2 { .bg-2 {
background: #280935; background: #071735;
.clew-line-text { .clew-line-text {
border-bottom: 1px solid #390b4b; // border-bottom: 1px solid #390b4b;
height: 3.17vh; height: 3.17vh;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-22 17:18:53 * @LastEditTime: 2024-01-26 20:22:00
* @FilePath: \dj-data-view\src\views\saas\project.vue * @FilePath: \dj-data-view\src\views\saas\project.vue
* @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
--> -->
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
justify-content: space-between; justify-content: space-between;
.project-item { .project-item {
width: 49.6%; width: 49.6%;
background: #071735; background: #0E2141;
.project-left { .project-left {
width: 2.8vw; width: 2.8vw;
padding: 0px 0.4vw; padding: 0px 0.4vw;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-08-16 14:35:35 * @Date: 2023-08-16 14:35:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:56:30 * @LastEditTime: 2024-01-26 20:40:20
--> -->
<template> <template>
<div> <div class="operational-box">
<div class="title title-icon"> <div class="title title-icon">
<span class="icon"></span> <span class="icon-title"></span>
<span class="title-bg">门店类型</span> <span class="title-bg">门店类型</span>
</div> </div>
<div class="container flex"> <div class="container flex">
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
chart: { chart: {
id: 'store', id: 'store',
keys: ['name', 'num'], keys: ['name', 'num'],
colors: ['#34AFFF', '#16E193', '#FDF006', '#EB6001'], colors: ['#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate' formatter: 'rate'
}, },
storeData: [] storeData: []
......
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
.user-tab { .user-tab {
width: 100%; width: 100%;
height: 9.02vh; height: 9.02vh;
margin: 1.22vh 0 0.98vh 0; margin: 2.22vh 0 0.98vh 0;
.statistics { .statistics {
display: flex; display: flex;
color: #fff; color: #fff;
...@@ -169,8 +169,8 @@ export default { ...@@ -169,8 +169,8 @@ export default {
&-item { &-item {
padding: 0.49vh 0.53vw; padding: 0.49vh 0.53vw;
margin-right: 0.56vw; margin-right: 0.56vw;
background: #061422; background: #071735;
box-shadow: inset 0 0 20px 0 #3d57ff69; // box-shadow: inset 0 0 20px 0 #3d57ff69;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-26 10:22:41 * @Date: 2022-10-26 10:22:41
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-16 16:28:43 * @LastEditTime: 2024-01-26 20:37:51
* @FilePath: \dj-data-view\src\components\ViewChart.vue * @FilePath: \dj-data-view\src\components\ViewChart.vue
* @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
--> -->
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
.line-chart { .line-chart {
width: 25.14vw; width: 25.14vw;
height: 100%; height: 100%;
background: #071735; // background: #071735;
margin-right: 0.56vw; margin-right: 0.56vw;
} }
.pie-chart { .pie-chart {
...@@ -70,6 +70,19 @@ export default { ...@@ -70,6 +70,19 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
/deep/ {
.user-box {
width: 13.12vw;
}
.user-box:nth-child(1),
.user-box:nth-child(3) {
margin-right: 0.21vw;
}
.user-box:nth-child(1),
.user-box:nth-child(2) {
margin-bottom: 0.46vh;
}
}
} }
} }
</style> </style>
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 11:28:03 * @Date: 2022-06-23 11:28:03
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-16 16:44:38 * @LastEditTime: 2024-01-26 20:54:33
--> -->
<template> <template>
<div class="line-group"> <div class="line-group">
<template v-for="(i, index) in items"> <template v-for="(i, index) in items">
<div class="box" :key="index" :style="[{ height: height }, { 'margin-bottom': hideMargin ? 0 : '1vh' }]"> <div class="chat-box" :key="index" :style="[{ height: height }, { 'margin-bottom': hideMargin ? 0 : '1vh' }]">
<slot :name="i"></slot> <slot :name="i"></slot>
</div> </div>
</template> </template>
...@@ -41,4 +41,7 @@ export default { ...@@ -41,4 +41,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.chat-box {
background-color: #071735;
}
</style> </style>
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-08-16 14:46:00 * @Date: 2023-08-16 14:46:00
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:49:36 * @LastEditTime: 2024-01-26 17:49:50
--> -->
<template> <template>
<div class="pie-group"> <div class="pie-group">
<template v-for="(i, index) in items"> <template v-for="(i, index) in items">
<div class="box" :key="index"> <div :key="index">
<slot :name="i"></slot> <slot :name="i"></slot>
</div> </div>
</template> </template>
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-28 10:50:59 * @LastEditTime: 2024-01-26 20:57:07
* @FilePath: \dj-data-view\src\components\ViewSurface.vue * @FilePath: \dj-data-view\src\components\ViewSurface.vue
* @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
--> -->
<template> <template>
<div class="surface"> <div class="surface">
<LineBar ref="lineBarCharts" domId="surfaceChart" boxHeight="23.5vh" :dataList="dataList"></LineBar> <LineBar ref="lineBarCharts" domId="surfaceChart" boxHeight="22.78vh" :dataList="dataList"></LineBar>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-08-16 14:44:03 * @Date: 2023-08-16 14:44:03
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-18 17:04:54 * @LastEditTime: 2024-01-26 17:40:27
--> -->
<template> <template>
<div class="tabs flex"> <div class="tabs flex">
<div class="tab" :style="{width: `calc((100% - ${(tabs.length - 1) * 0.56 + 0.83 * 2}vw) / ${tabs.length})`}" v-for="item in tabs" :key="item.key"> <div class="tab" :style="{width: `calc((100% - ${(tabs.length - 1) * 0.56 + 0.83 * 2}vw) / ${tabs.length})`}" v-for="item in tabs" :key="item.key">
<div v-if="item.key != 'retention'" class="tab-text">{{ numAddSymbol(dataList[item.key]) }}</div>
<div v-else class="tab-text">{{ toFixNum(dataList[item.key]) }}</div>
<div class="tab-title">{{ item.title }}</div> <div class="tab-title">{{ item.title }}</div>
<div v-if="item.key != 'retention'" class="tab-text text-linear">{{ numAddSymbol(dataList[item.key]) }}</div>
<div v-else class="tab-text text-linear">{{ toFixNum(dataList[item.key]) }}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -61,18 +61,22 @@ export default { ...@@ -61,18 +61,22 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.tabs { .tabs {
padding: 1.22vh 0.83vw 0.98vh; padding: 1.22vh 0.83vw 0;
// padding: 20px 1.67vw; // padding: 20px 1.67vw;
height: 8.05vh; height: 7.78vh;
width: 100%; width: 100%;
// box-sizing: border-box; // box-sizing: border-box;
// justify-content: space-between; // justify-content: space-between;
.tab { .tab {
box-sizing: border-box; box-sizing: border-box;
padding: 0.98vh 0.56vw; padding: 1.98vh 0.56vw 0;
background: #061422; height: 100%;
box-shadow: inset 0 0 10.42px 0 #3d57ff69; // background: #061422;
// box-shadow: inset 0 0 10.42px 0 #3d57ff69;
margin-right: 0.56vw; margin-right: 0.56vw;
background: url(../../../assets/images/operation/tab-bg.png) no-repeat;
background-size: 100%;
text-align: center;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
...@@ -87,6 +91,7 @@ export default { ...@@ -87,6 +91,7 @@ export default {
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
line-height: 30px; line-height: 30px;
color: #fff;
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @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: huyue
* @LastEditTime: 2023-08-28 15:28:28 * @LastEditTime: 2024-01-26 20:59:35
* @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
*/ */
...@@ -56,9 +56,9 @@ function getBarOptions(obj, colorList) { ...@@ -56,9 +56,9 @@ function getBarOptions(obj, colorList) {
{ {
type: 'bar', type: 'bar',
symbol: 'circle', symbol: 'circle',
// backgroundStyle: { backgroundStyle: {
// color: '#6578FF' color: 'rgba(36, 74, 243, 0.39)'
// }, },
itemStyle: { itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角 barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) { color: function (params) {
...@@ -265,7 +265,7 @@ function getLineOptions(obj) { ...@@ -265,7 +265,7 @@ function getLineOptions(obj) {
type: 'line', type: 'line',
symbol: 'circle', symbol: 'circle',
itemStyle: { itemStyle: {
color: '#F5AA01' color: '#56FEFE'
}, },
// 平滑曲线 // 平滑曲线
smooth: true, smooth: true,
...@@ -281,11 +281,11 @@ function getLineOptions(obj) { ...@@ -281,11 +281,11 @@ function getLineOptions(obj) {
colorStops: [ colorStops: [
{ {
offset: 0, offset: 0,
color: 'rgba(254, 84, 0, 0.3)' color: 'rgba(86, 254, 254, .24)'
}, },
{ {
offset: 1, offset: 1,
color: 'rgba(254, 84, 0, 0.01)' color: 'rgba(86, 254, 254, 0.01)'
} }
] ]
} }
...@@ -320,7 +320,7 @@ function lineAndBarOptions(list) { ...@@ -320,7 +320,7 @@ function lineAndBarOptions(list) {
// }, // },
formatter: function(item) { formatter: function(item) {
const items = list[item[0].dataIndex] const items = list[item[0].dataIndex]
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="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(item[0].value)}<br>当月新增:${utils.numAddSymbol(item[1].value)}<br>上月总门店数:${utils.numAddSymbol(items.yesterdaytotalNum)}<br>上月月新增:${utils.numAddSymbol(items.yesterdayincreNum)}</div></div>` return `<div style="backdrop-filter: blur(4px);background-color: rgba(0, 0, 3, 0.85);border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9, #43dfe3) 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(items.yesterdaytotalNum)}<br>上月月新增:${utils.numAddSymbol(items.yesterdayincreNum)}</div></div>`
} }
}, },
xAxis: [ xAxis: [
...@@ -390,13 +390,33 @@ function lineAndBarOptions(list) { ...@@ -390,13 +390,33 @@ function lineAndBarOptions(list) {
name: 'line', name: 'line',
type: 'line', type: 'line',
symbol: 'circle', symbol: 'circle',
itemStyle: {
color: '#F5AA01'
},
// 平滑曲线 // 平滑曲线
smooth: true, smooth: true,
showSymbol: false, showSymbol: false,
data: totalNum data: totalNum,
itemStyle: {
color: '#56FEFE'
},
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
}
}, },
{ {
name: 'bar', name: 'bar',
...@@ -412,8 +432,9 @@ function lineAndBarOptions(list) { ...@@ -412,8 +432,9 @@ function lineAndBarOptions(list) {
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'],
['#22D8FF', '#223FA9', '#061422'] ['#00c7ff', '#009cf8', '#006af2'],
['#00c7ff', '#009cf8', '#006af2']
] ]
var colorItem = [] var colorItem = []
colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1] colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!