Commit 316e8ebb by 胡悦

修改

1 parent 6ee0d41f
...@@ -105,6 +105,7 @@ function getBarLineOptions(obj) { ...@@ -105,6 +105,7 @@ function getBarLineOptions(obj) {
name: 'bar2', name: 'bar2',
type: 'bar', type: 'bar',
stack: 'one', stack: 'one',
min: 100,
label: { label: {
show: true, show: true,
position: 'top', position: 'top',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-07 14:04:52 * @Date: 2023-07-07 14:04:52
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-10 15:33:57 * @LastEditTime: 2023-07-11 16:04:06
*/ */
import * as echarts from 'echarts' import * as echarts from 'echarts'
function getBarLineOptions(obj) { function getBarLineOptions(obj) {
...@@ -95,65 +95,66 @@ 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 return barLineOption
......
...@@ -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-07-11 15:47:34 * @LastEditTime: 2023-07-11 15:58:32
* @FilePath: \dj-data-view\src\components\ViewTitle.vue * @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件 * @Description: 页面头部组件
--> -->
...@@ -142,7 +142,8 @@ export default { ...@@ -142,7 +142,8 @@ export default {
&-item { &-item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; // justify-content: center;
padding-left: 1.39vw;
height: 4.44vh; height: 4.44vh;
box-sizing: border-box; box-sizing: border-box;
margin-right: 0.56vw; margin-right: 0.56vw;
...@@ -160,6 +161,7 @@ export default { ...@@ -160,6 +161,7 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
text-align: left;
} }
&.active { &.active {
background-image: url('../assets/images/first-tab-bg.png'); background-image: url('../assets/images/first-tab-bg.png');
......
...@@ -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-07-11 15:51:08 * @LastEditTime: 2023-07-11 15:55:27
* @FilePath: \dj-data-view\src\components\ViewTitle.vue * @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件 * @Description: 页面头部组件
--> -->
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<img style="height: 2.89vh" src="@/assets/images/logo.png" alt="logo" /> <img style="height: 2.89vh" src="@/assets/images/logo.png" alt="logo" />
</div> </div>
<div class="tab"> <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> <div class="tab-title">{{ firstTab.label }}</div>
<img class="arrow-down" @click.stop="openSelect" src="@/assets/images/title-arrow.png" alt=""> <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> <SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox>
...@@ -130,6 +130,8 @@ export default { ...@@ -130,6 +130,8 @@ export default {
position: relative; position: relative;
width: 16.94vw; width: 16.94vw;
box-sizing: border-box; box-sizing: border-box;
justify-content: flex-start;
padding-left: 1.39vw;
&.active { &.active {
background-image: url('../assets/images/first-tab-bg.png'); background-image: url('../assets/images/first-tab-bg.png');
background-repeat: no-repeat; background-repeat: no-repeat;
...@@ -138,10 +140,9 @@ export default { ...@@ -138,10 +140,9 @@ export default {
} }
.arrow-down { .arrow-down {
position: absolute; position: absolute;
position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
right: 0.9vw; right: 1.39vw;
margin-left: 0.28vw; margin-left: 0.28vw;
width: 1.39vw; width: 1.39vw;
height: 2.22vh; height: 2.22vh;
......
...@@ -6,12 +6,7 @@ ...@@ -6,12 +6,7 @@
* @LastEditTime: 2023-07-06 10:10:40 * @LastEditTime: 2023-07-06 10:10:40
--> -->
<template> <template>
<div class="layout"> <div class="layout">顶顶顶顶顶
<view-container>
<template #content>
众筹
</template>
</view-container>
</div> </div>
</template> </template>
......
...@@ -7,11 +7,7 @@ ...@@ -7,11 +7,7 @@
--> -->
<template> <template>
<div class="layout"> <div class="layout">
<view-container> 阿斯顿发射点
<template #content>
<Charts></Charts>
</template>
</view-container>
</div> </div>
</template> </template>
......
...@@ -3,15 +3,11 @@ ...@@ -3,15 +3,11 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:05:18 * @LastEditTime: 2023-07-11 16:18:46
--> -->
<template> <template>
<div class="layout"> <div>
<view-container>
<template #content>
内部数据 内部数据
</template>
</view-container>
</div> </div>
</template> </template>
......
...@@ -3,15 +3,11 @@ ...@@ -3,15 +3,11 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:04:55 * @LastEditTime: 2023-07-11 16:18:22
--> -->
<template> <template>
<div class="layout"> <div>
<view-container> <ViewDate></ViewDate>
<template #content>
运营数据c
</template>
</view-container>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!