Commit 316e8ebb by 胡悦

修改

1 parent 6ee0d41f
......@@ -105,6 +105,7 @@ function getBarLineOptions(obj) {
name: 'bar2',
type: 'bar',
stack: 'one',
min: 100,
label: {
show: true,
position: 'top',
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-07 14:04:52
* @LastEditors: huyue
* @LastEditTime: 2023-07-10 15:33:57
* @LastEditTime: 2023-07-11 16:04:06
*/
import * as echarts from 'echarts'
function getBarLineOptions(obj) {
......@@ -95,65 +95,66 @@ function getBarLineOptions(obj) {
)
}
}
},
{
name: 'bar3',
type: 'bar',
label: {
show: true,
position: 'top',
color: '#fff'
},
data: [],
itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#FFC200'
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: '#F2C101'
},
{
offset: 1, // 指100%处的颜色
color: '#061422'
}]
)
}
}
},
{
name: 'bar4',
type: 'bar',
label: {
show: true,
position: 'top',
color: '#fff'
},
data: [],
itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#E65C01'
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: '#E65C17'
},
{
offset: 1, // 指100%处的颜色
color: '#061422'
}]
)
}
}
}
// {
// name: 'bar3',
// type: 'bar',
// label: {
// show: true,
// position: 'top',
// color: '#fff'
// },
// data: [],
// show: false,
// itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
// color: function(params) {
// return new echarts.graphic.LinearGradient(
// 0, 0, 0, 1, [{ // 代表渐变色从正上方开始
// offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
// color: '#FFC200'
// }, // 柱图渐变色
// {
// offset: 0.5, // 指100%处的颜色
// color: '#F2C101'
// },
// {
// offset: 1, // 指100%处的颜色
// color: '#061422'
// }]
// )
// }
// }
// },
// {
// name: 'bar4',
// type: 'bar',
// label: {
// show: true,
// position: 'top',
// color: '#fff'
// },
// data: [],
// itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
// color: function(params) {
// return new echarts.graphic.LinearGradient(
// 0, 0, 0, 1, [{ // 代表渐变色从正上方开始
// offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
// color: '#E65C01'
// }, // 柱图渐变色
// {
// offset: 0.5, // 指100%处的颜色
// color: '#E65C17'
// },
// {
// offset: 1, // 指100%处的颜色
// color: '#061422'
// }]
// )
// }
// }
// }
]
}
return barLineOption
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-07-11 15:47:34
* @LastEditTime: 2023-07-11 15:58:32
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件
-->
......@@ -142,7 +142,8 @@ export default {
&-item {
display: flex;
align-items: center;
justify-content: center;
// justify-content: center;
padding-left: 1.39vw;
height: 4.44vh;
box-sizing: border-box;
margin-right: 0.56vw;
......@@ -160,6 +161,7 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
&.active {
background-image: url('../assets/images/first-tab-bg.png');
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-07-11 15:51:08
* @LastEditTime: 2023-07-11 15:55:27
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件
-->
......@@ -12,7 +12,7 @@
<img style="height: 2.89vh" src="@/assets/images/logo.png" alt="logo" />
</div>
<div class="tab">
<div class="tab-item first-tab" :class="currentMenu == 'home' ? 'active' : ''" @click.self="jump('home')">
<div class="tab-item first-tab" :class="currentMenu == 'home' ? 'active' : ''" @click.prevent="jump('home')">
<div class="tab-title">{{ firstTab.label }}</div>
<img class="arrow-down" @click.stop="openSelect" src="@/assets/images/title-arrow.png" alt="">
<SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox>
......@@ -130,6 +130,8 @@ export default {
position: relative;
width: 16.94vw;
box-sizing: border-box;
justify-content: flex-start;
padding-left: 1.39vw;
&.active {
background-image: url('../assets/images/first-tab-bg.png');
background-repeat: no-repeat;
......@@ -138,10 +140,9 @@ export default {
}
.arrow-down {
position: absolute;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 0.9vw;
right: 1.39vw;
margin-left: 0.28vw;
width: 1.39vw;
height: 2.22vh;
......
......@@ -6,12 +6,7 @@
* @LastEditTime: 2023-07-06 10:10:40
-->
<template>
<div class="layout">
<view-container>
<template #content>
众筹
</template>
</view-container>
<div class="layout">顶顶顶顶顶
</div>
</template>
......
......@@ -7,11 +7,7 @@
-->
<template>
<div class="layout">
<view-container>
<template #content>
<Charts></Charts>
</template>
</view-container>
阿斯顿发射点
</div>
</template>
......
......@@ -3,15 +3,11 @@
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:05:18
* @LastEditTime: 2023-07-11 16:18:46
-->
<template>
<div class="layout">
<view-container>
<template #content>
内部数据
</template>
</view-container>
<div>
内部数据
</div>
</template>
......
......@@ -3,15 +3,11 @@
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:04:55
* @LastEditTime: 2023-07-11 16:18:22
-->
<template>
<div class="layout">
<view-container>
<template #content>
运营数据c
</template>
</view-container>
<div>
<ViewDate></ViewDate>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!